This forum is for assistance with theme development.

Custom variables do not show up in tpl

I have created a custom theme where i add some variables

function blackresponse_preprocess_node(&$vars) {
...
$vid = db_query("SELECT vid FROM ip_taxonomy_vocabulary WHERE machine_name LIKE '%video%' ")->fetchField();
	$catnames = taxonomy_get_tree($vid, 0, 1, TRUE);
	$vars['cats'] = $catnames;

I can see the vars in my firePHP logging.
However, the $vars array is empty in my node--video.tpl.php.

Do I need to pass it somehow ?

How to change the HTML output of a view?

Hello,

I've got one view which displays 5 fields in an "Unformatted list".

<div class="pic"><img src=""></div>
<div class="name">The Name</div>
<div class="date">The date</div>
<div class="category">The Category</div>
<div class="address">The Address</div>

how would it be possible to add a wrapper around name, date, category?

how to suggestion a taxonomy term

when access the url taxonomy/term/1
I can print the suggestion file is:
Array
(
[0] => page__taxonomy
[1] => page__taxonomy__term
[2] => page__taxonomy__term__%
[3] => page__taxonomy__term__1
)
-----
I add several nodes to the content type ,name is product.and bind to the field taxonomy term/1.

so the term/1 will show the nodes just added.
question is:
Is there a way to suggestion the taxonomy/term/1 to page__product?
like node page ,like below:

specific gallery

Hi all, how can i create gallery like this? http://www.vineyards-homes.at/de/galerie

1. create content type
2. create views

But exists some module or tutorial?

Thanks.

Responsive Menu Module : Need help please!

Hello!

I am using this module: https://drupal.org/project/responsive_menus

Now. It is set up and looks great! However! When I hover over an link that has child items, it does not expand until I go the parent page. What am I doing wrong?

Thanks.

Image handling in panels for a theme

Hi all, I'm currently battling Drupal trying to theme a Node for a "Project" which consists of a body of text on the left side of the screen and three images on the right half of the screen. Two of the images are square and need to appear next to each other with the rectangular one displaying below them. This sounds really easy in theory, but in practice I'm finding it difficult. I had it working with Floats but I would much rather use display:inline-block as this is better practice. However, I cannot for the life of me get display inline-block to work.

Pages

Subscribe with RSS Subscribe to RSS - Theme development