[support] FW: Dynamic horizontal taxonomy menu with xTemplate

Joe Murray joe.murray at jmaconsulting.biz
Wed Jan 4 00:12:17 UTC 2006


Thought I'd cross-post here to since it's a functionality issue as well, and
I'm not sure how populated the themes list is at this point.
 
Joe
 

  _____  

From: Joe Murray [mailto:joe.murray at jmaconsulting.biz] 
Sent: January 3, 2006 6:13 PM
To: 'themes at drupal.org'
Cc: 'chrisb at openconcept.ca'; 'Greg Bennett'
Subject: Dynamic horizontal taxonomy menu with xTemplate


I'm working with some graphic designers who are still coming up to speed on
Drupal. We're trying to create a horizontal menu with data from a taxonomy.
It's three deep. Ideally the first level would be horizontal, the second and
third would be vertical, ie, the menu options drop down, and then if there
is a third level it comes out and drops down again.
 
After looking at a number of options (eg. jsdoMenu, rewriting our xTemplate
them in phpTemplate, hardcoding menu, etc) we decided we would try to get
Nick Lewis' phpTemplate menu
(http://www.dynamicdrive.com/dynamicindex1/hvmenu/index.htm) working in
xTemplate. Not sure this is feasible... Anyway, we've got the css stuff
working but want to find a hack that would allow us to run a php snippet in
the appropriate place in the template.
 
Under the existing <tr> for the logo and primary and secondary menus we were
thinking of doing something like:
<tr><td colspan="2" class="topmenu">test<?php

$TheMenu = theme_menu_tree(17);

print $TheMenu; 

?> </td></tr>

Can we create a {mymenu} that would run this code snippet?

Or is there a different way we can do this using xTemplate?

Advice welcome. (Yeah, we should have figured out menuing before doing theme
in xTemplate, but we're newbies...)

Cheers,
 
Joe Murray, PhD
President, JMA Consulting
57 Grandview Ave, Toronto, Ontario, Canada  M4K 1J1
416.466.1281, 416.466.1277 (f)
joe.murray at jmaconsulting.biz 
Skype: josephpmurray
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20060104/c1205d93/attachment.htm


More information about the support mailing list