Custom html.tpl.php for a module handling ajax calls

Hi all.

I'using an ajax call so i created a module to handle the url that will generate the data.

I created a template for just this module with the hook_theme function.

Everything works fine, but i wanted to remove all the head section and retrieve only the text rendered by my custom template.

So I searched the way to use a custom html.tpl.php but I didn't found any solution.

Can you help me please.

Thanks.

Adding a span tag around the main menu links in Drupal 7

Hello folks,

I've attempted to place span tags around my main menu links by using the following code:

function spacecowboy_links__system_main_menu($variables) {
  $output = '';
  foreach ($variables['links'] as $link) {
    $output .= l('<span>'. check_plain($link['title']) .'</span>', $link['href'], $link);
  }
  return $output;
}

However it outputs like this:

<div id="top-menu-bar">
<a href="/" class="active">&lt;span&gt;Home&lt;/span&gt;</a>
<a href="/members/signal" title="">&lt;span&gt;Members&lt;/span&gt;</a>
<a href="/articles" title="">&lt;span&gt;Articles&lt;/span&gt;</a>
<a href="/performance">&lt;span&gt;Performance&lt;/span&gt;</a>
<a href="/faq" title="">&lt;span&gt;Faq&amp;#039;s&lt;/span&gt;</a></div>

The problems I have with this is that it strips out the unordered and list tags (and the menu class names) and the opening and closing tags show up as &gt and &lt ...

All I really want is my output like this:

limit the number of published nodes on a page, and providing links to the other remaining nodes

hi
Can anyone direct me to a module that will limit the amount of published nodes on page per page basis. If i have say thirty published nodes of differing content types all promoted to the front page and i only want to display five nodes per page say. So, six pages in total, with links pointing to the remaining pages. Something like:
$q = SELECT * FROM node WHERE node="published" LIMIT 0 5 (this is merely an illustration, not accurate code.).

Hierarchical Select

new to drupal.
I would like to use Hierarchical Select on the creating content page to let users to assign categories.

for example, when the user select topt category, the corresponding sub-categories will sppear on teh drop down list.

Can I just enable this feature on the default drupal create article page? how do I do that? or do I need to creat an article form with this Hierarchical Select funtion to let user add content?

btw, I am using drupal 7.

Scriptaculous Effects such as Slide Down / Blind Down

I have searched the drupal website and google and cannot find a module or a guide on how to implement an ajax style window shade / drop down.

What I am trying to do is expand a list.

ie Website would look like this:
Project 1
Project 2
Project 3

When 'Project 1' is clicked on:
Project 1
We did a great job on this project, etc.
Tony had this to say "Use these guys..."
Project 2
Project 3

Are there ajax modules that would do something like this? If not, what is the best way to implement in Drupal 7?

Manually adding a view

Can someone help me create a script that installs (or checks for a view to be installed) upon a theme installation? I am creating a theme in Drupal 7 that will require a specific view with some default data, but am not sure how to go about this.

Thanks in advance!

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x