This forum is for assistance with theme development.

Specific collapsible fieldsets open by default?

Okay, so my question is, how to control specific collapsible fieldsets to be opened by default on page load? I saw that initially these fieldsets have the class name 'collapsed' and after opening them by clicking on the legend this class name disappears. I could try hacking the css to make it non-collapsed but I'd need only some of these fieldsets opened only. I am using category.module and when a user submits content to my site, I want him to see the dropdown list of categories instead of skipping it and posting to the first (lightest-weighted) category.

what is the theme of Drupal.org now?

what is the name of drupal.org current theme?

----------------------------------------
Mehdi a socialist and communist from Iran.

terms as headings of the page

Hello Friends!
I want to print terms at the top the page as heading. I wrote a small query (copied from nicklewis.org ) in my page.tpl.php as ;

Detect term

I would like to detect certain taxonomy term inside page.tpl.php.

Like:

if (node has the "term")
    do something
endif

Thank you in advance

node_url or node->path

for theming my flexinode I used:

$doc_link = eregi_replace("^node.","",db_result(db_query("SELECT src FROM {url_alias} WHERE dst = '%s_doc'", substr($node_url,1))));

somewhere. First I used $node->path but this was emtpy using an anonymous user. then I changed using node_url but now on my hosted site this is empty as well.

Do I have to initialize them somehow?
What is the right way to get the url from a node, working for all users?

More Teaser Themeing in CCK

So thus far Content Templates have been serving me quite well in terms of getting the output of my CCK content types to look as I want it to. But now I'm running into something that I have no clue how to do. I know I can create a .tp.php file to theme a particular node type (how I did it before Contemplate) but I don't recall (and couldn't find) any way to theme the title of a teaser, or really a teaser at all. I am basically looking to dump the teaser and display one of my Imagefields in the teaser. What I've got so far (with Contemplate) is the Imagefield with a title above it.

Pages

Subscribe with RSS Subscribe to RSS - Theme development