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.
Right now, when you click on "Comedy," it expands into the two stories. This is a good start, however, I wanted to know if it is possible to make it so that Comedy only expands when it is hovered over, OR if it could collapse when one of the stories is clicked on.
I'm pretty sure I need to change the .active state of something, I'm just not sure what...is it in drupal.css? What should I do?
How can I get a module to find the node id of the page in which it is being called?
For example, I have a module that lists recent posts according to the current page's vocabulary. So I want that module to know what node id the page is and find all its terms.
I want to call that module via the
body text
of that page using the PHP Input Format (I put the code in the body text box when creating content).
The problem -- all the links at the top of each teaser are wrong. They all point to node/40, which in this case, is not a node in this system. The read more links are correct, and I'm not doing any templating here. Any thoughts?