This forum is for assistance with theme development.

getting current DEPTH of term?

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.

Thanks :)

Link/Button for poll result

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 ?

Tnx.

M.

Applying template for a particular page or link

Hi,

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.

Vikas batra

Help needed with making additional variables available using _phptemplate_variables

Hello

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:

Subtheming without overwriting

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 ?

Images in Theme

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:

<img src="<?php print  base_path() . drupal_get_path('theme', 'zen') .'/images/commando_r.jpg' ?>">

but this still hardcodes the name of my theme. Is there a better way?

beren

Pages

Subscribe with RSS Subscribe to RSS - Theme development