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.
I have website with tree of taxonomy terms. Displaying layout (template) will depend on DEPTH of current page (term of tree).
How to detect DEPTH when I've opened some term/page from tree/vocabulary?
Please don't advise modules Sections, Taxonomy Theme... etc. I need correct Snippet.
Hi, I don't know if this is the correct Forum, but I need to create, in my template, a link/button where user can see the results of a poll.
How can I do it ?
I have to apply a particular template on a form that is generated dynamically, how can i do this , i created the form and now i want to change the template for that particular page/form.i have no idea regarding this,
can any body know the solution for this that how themes can be included for a particular form or page. what i have to write in coding so that when form is loaded template can also be loaded with that.
I'm in the need of some help with creating a new variable based on a node type.
I want to create a variable that catches all the nodes of a specific type (e.g., story, page, event...) and print only those node types.
Ideally, I'd like to " print $mystories " and only have my custom node type displayed in my theme's custom region.
I'm hoping someone could clue me in on what I need to do.
So far I've been unsuccessful with the following:
I'd like to make a theme which would only include differences from a base theme to easily upgrade the base.
I read a bit on the matter and to modify a theme, I would have to override functions. The problem with this approach is that if a new version of the base theme comes out which added/removed functions I'd have to update my theme to reflect those. Is there a way to modify/add/ignore part of a function without having to take over the whole thing ?
I'm building a theme starting from the Zen theme. I want to have some custom graphics in the header area near the logo. What's the best way to include these? I'd rather not have to hard code anything. I've poked around in some other themes to get ideas and this is the best I've come up with: