By Tau on
Hi, I'm trying to implement this technique http://www.usingdrupal.com/node/20 into the drupal 6 menu system.
The problem is that, at least to me, the all new drupal menu system is far too different from the 5th version. I tryed looking on the drupal API but still can't find a way out. Anyone there know what's the right function to customize on template.tpl.php?
Finally, I just want to add another span selector, it shouldn't be all that rocket science...
I'm building a blank new theme, but my starting points are:
-the Garland theme;
-the blueprint css framework.
Thanks in advance!
Comments
i'm having trouble too !!
johan van grieken (mediumcool.be)
i want to achieve the same thing but no one seems to be able to help....
Two things spring to mind
Two things spring to mind right off the bat:
===
Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime. -- Lao Tzu
"God helps those who help themselves." -- Benjamin Franklin
"Search is your best friend." -- Worldfallz
General
From my last encounter with drupal, I find that using the most basic theme is a better way to start. Even though zen is recommended as a base, I found it easier to start with something ultra simple like foundation. Even then I got rid of a whole bunch of stuff in the css.
that may be true, but the
that may be true, but the technique in the article referenced by the user was for zen-- it's not necessarily (and likely isn't) interchangeable with another theme. the best way to troubleshoot is to getting working as described, then adapt it to another theme.
===
Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime. -- Lao Tzu
"God helps those who help themselves." -- Benjamin Franklin
"Search is your best friend." -- Worldfallz
Adding a span tag inside menu links
I struggled with this for a while too, and finally found the answer here: http://drupal.org/node/221382
Basically, make sure you have this code in your page.tpl.php file:
And add this code in your template.php file. (I'm using PHPTemplate, modify the 'phptemplate_links' function name as needed)
Don't forget to empty your cache. I found that temporarily adding this function at the top of the template.php file resolves having to constantly clear the cache. (from drupal dojo)
The main problem with the Drupal 5 code is that the tags get printed as part of the link text, and not html. That's resolved by specifying
and using check_plain
Hope that helps.
This helped a lot, thank
This helped a lot, thank you. I especially like the drupal_rebuild_theme_registry() tip.
Andre'
You don't need an extra span
You don't need an extra span tag to do sliding doors, drupal.org tabs are sliding doors with no redundant spans. Over riding the theme function is 100% unnecessary.
See the article regarding this on alistapart - http://www.alistapart.com/articles/slidingdoors2/
Pimp your Drupal 8 Toolbar - make it badass.
Adaptivetheme - theming system for people who don't code.
thanks for this!
thanks for this!
Yes you do
This is a really old thread but has come up numerous times when searching on this very topic. I just wanted to say there are advantages to using a span wrapper. This allows to consistent UX when theming :active and :focus states.