Hi all folks, I'd like to theme latest node in my home page different than older nodes. I started editing node.tpl.php file, but I need a snippet to extract from database just the last node, in order to put him in a customized css class using the if / elseif PHP code.
I apologize for my bad English. Hope you can help me.
Thanks!
Currently I have the primary links outputting in the following fashion:-
<ul class="links primary-links"><li class="first menu-1-1-2"><a href="/" title="Back to the homepage." class="menu-1-1-2">Home</a></li>
<li class="menu-1-2-2"><a href="/blog" title="General ramblings and the occasional article." class="menu-1-2-2">Blog</a></li>
<li class="menu-1-3-2"><a href="/explore" title="Who I am and what I do!" class="menu-1-3-2">Explore</a></li>
<li class="menu-1-4-2"><a href="/work" title="Some of my past works of art." class="menu-1-4-2">Work</a></li>
<li class="menu-1-5-2"><a href="/projects" title="Current projects I am working on." class="menu-1-5-2">Projects</a></li>
<li class="last menu-1-6-2"><a href="/contact" title="Get in touch via e-mail, IM or telephone" class="menu-1-6-2">Contact</a></li>
</ul>
which is fine but i want to change it so the title/description of the link is also displayed under the link name like this:-
Hi
Go to Home> Administrator > Content Management and when we visit to content types we can see "Add Content Type" tab.
I want to rename the "Add content type" tab as "Add" and "list" as "Show".
Can any 1 explain me.
Thanks
Heshan
I'm building a module/block for a custom theme. Depending on the request uri the color changes and a random themepicture is shown.
The easiest thing is to put an extra class in the body tag to let css do the theming things offcourse. Changing phptemplate_body_class is no problem but what is the best way to get a variable from my module/block into page.tpl.php?