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.
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:
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?
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.