Hi,
I would like to know if there is a simple way to theme node listing at page.tpl.php
in page.tpl.php there is print $content and it will give you a list of nodes. However, it's kind of plain and boring.
I was wondering if there is a way theme the list? Like customize teaser, display author's picture, mouse hover on changing background and etc.
I know is achievable with "views" but just want to know if there is a way to theme it without using any modules.
To get a visual of what I'm talking about, just go to travelzoo.com vacation listings.
One more question, when I edit node.tpl.php. For example, modify submitted, date, and etc.
The node listing on page.tpl.php also get changed. Is there a way to theme them separately?
Node itself, and node listing another.
Thanks very much,
Comments
The place to theme a node is
The place to theme a node is node.tpl.php and it can present different views based on if the node is being displayed as a teaser or not. Note you can also theme/control the layout with comptemplate, display suite and panels (each provide different approaches with different features).
thanks. I would like to theme
thanks.
I would like to theme page.tlp.php when the list of nodes is displayed.
The node list is being called by "$content" and i was wondering how can I theme $content?
thanks again
When $content is a list you
When $content is a list you theme the items by there own templates, in this case node.tpl.php (or one of the oter alternatives). page.tpl.php has not knowledge of how $content was built.