Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
How do I disable comments from specific node types? I would like to have
the comment facitity only for forum nodes. I am using drupal version
4.6.3.
I did see the post at Possible to disable comments on some node types globally?. I tried out configuring individual settings at ?q=admin/node/configure/types (by making comments disabled for all node types excep forums), but, unfortunately it didnt work for me. I could still see "add new comment" links. May be it was for version 4.5.*??
I've been playing with the code in the image module for quite some time now to change the order in which the galleries are displayed. I have yet to figure it out. I know it has to be possible to change it in the sql that pulls out the gallery tids but i just manipulate it to do so. What I would like is for the last created gallery to be on top and the first created gallery on the bottom of the list. Any help, direction etc. would be greatly appreciated. Thanks very much.
I want to add style sheets to my theme depending on the value of $layout. I want to add styles to the $styles variable available to page.tpl.php but I'm not sure where I can call the theme_stylesheet_import() function (or is it theme_add_style() function??) from. Should I do this inside template.php? Should I write my own function that adds the appropriate style tags to the existing $styles variable and return that to be printed in page.tpl.php?? Should I put the php logic in page.tpl.php itself and output the appropriate HTML?
How about link items that don't link to anything (just act as category placeholders)? I want to have a "links" menu on my site and have various links as submenus, but I have to create a page for it to link to (which would probably say "Select a link on your right" and would be useless). Is that currently possible?