Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By solipsist on
I'd like to theme $tabs using the following ALA technique:
http://drupal.org/node/31704
Does anyone know how this could be done? I'm using a PHPTemplate theme.
Thanks!
Comments
try this..
Hi Solipsist..
One quick way of doing it is as follows, using the example of your primary links:
I have recently inserted a handbook page for phptemplate based themes that shows you how to convert your primary links to an unordered list
If you know how to use CSS (cascading style sheets) styles, it should be a breeze for you to copy-n-paste that example and edit it for the Alistapart tabs you linked.
I hope that helps.
Dub
Currently in Switzerland working as an Application Developer with UBS Investment Bank...using Drupal 7 and lots of swiss chocolate
Thank you for
Thank you for posting!
Primary and secondary links aren't my problem here. It is styling the stuff that is stored in the $tabs variable (<? print $tabs ?>). Now I looked at its markup, which looks like this:
It has exactly the same kind of markup as the one used in that ALA article which means I can use my own stylesheet to apply the Slidings Doors technique. I just need to create the two background images.
So I found the solution thanks to some hints from people in the support IRC channel. Extremely helpful people in there btw!
So anyway, I'm posting this hoping it helps someone else.
--
Jakob Persson - blog
Leancept – Digital effect and innovation agency
I found this function, it
I found this function, it does exactly what I need:
http://drupaldocs.org/api/4.6/function/theme_menu_local_tasks
--
Jakob Persson - blog
Leancept – Digital effect and innovation agency