This forum is for assistance with theme development.

override function "l"

Hi. I'm a bit new with Drupal.
I'm doing a theme for my site. i have overriding some functions (theme_list, theme_pager and so on). but i wonder if it is possible to override function "l". i can see function l at common.inc, but i don't need class="active" for my purposes.
When i working with a paginator l function returns class="active" for the current page, but i don't need that in my theme. is there any way to override this function only for my custom theme?
thank you.

classified ad and user profile field

Hello every one

I`m working developed my website, i`m using classified module and user profile module. When a user make a register, they asking for their profile for instance field address and field Occupation. I want both of those profile field appeared in his classified ads node, everytime he make classified, Anyone can help me ??? sorry for my bad english, i used contemplate module, and still not working, thx b4

Drupal 5.x themes on Drupal 4.7.x

Sorry if this sounds like a stupid question - I'm kinda new with Drupal.

Is it possible to use Drupal 5.x themes on Drupal 4.7.x? If not - is there a way to convert themes to 4.7.x?

Thanks

How to know from node.tpl.php which block is used?

I need to display node in two different blocks on my page (with different styling, etc.)

I've created a custom block (with View module) and would like to change the way the content is displayed.
But how to distinguish in node.tpl.php that the 'custom block' is used? I can't find any variable...

(I need default node.tpl.php page view in different block on my page so adding new content type and new node-.tpl.php file is not good too)

I can style my node with css (visibility: hidden) but maybe more elegant way (and more bandwidth-friendly) is possible?

Tom

Primary and Secondary Horizontal Menus

Hi there,

I really like the style of the top navigation bar as seen here: http://www.nzherald.co.nz/ and would fit the layout of my site well.

So basically what I need is a primary menu that shows all of the main sections of the site, and the secondary menu that displays the subsections of what ever primary menu item is selected.

Can anyone shed some like on how this would be acheived in Drupal? Am I better of writing a snippet? (Only learning this now), or has someone seen a module/snippet like this?

how to use drupal_add_js() for footer region

hi

im trying to find out how to place an javascipt to the footer region

drupal_add_js( $scriptpath .'myscript.js','module','footer');

hm. footer is defined as an region und there is an $footer variable in my page.tpl.php

what am i missing ?

thanks

Pages

Subscribe with RSS Subscribe to RSS - Theme development