By jemond on
Hi Team,
I'm using Drupal 5.x. I've used the views_slideshow to add a slideshow block view to the site homepage. Working fine.
The content of the nodes in this block contains fields for title, submitted date, etc. I want to customize the appearance of the different node parts, so I thought I would need to create a .tpl.php file. But I can't figure out what theme file to create.
I want a theme file where I can arrange the output of the node parts.
Any idea?
rg
Comments
hey, i'm using the
hey, i'm using the Contemplate module to do that... it can modify the body and the teaser of a content type... and with a node.tpl.php you can only modify things around the content of the node.
========
André Luiz
Thanks, I'll check it out.
Thanks, I'll check it out.
Change?
Has anything changed since then?
I am seeking not only to format the teasers but also the hover list where they may be better next to teasers.
hey, I'm not sure if I
hey, I'm not sure if I understood you...
Could you explain it more?
========
André Luiz
Hi André, thanks for
Hi André, thanks for reacting. I did it. I have overriden the
theme_views_slideshow_main_section,theme_views_slideshow_breakout_teasers, andtheme_views_slideshow_breakout_teaserfunctions in template.php file and it is ok.Could you explain how to overide the theme functions?
I can't figure out how to modify these theme functions. I'm trying to simply change the main "teaser" area to a certain imagecache preset. In this function:
where are $hidden_elements coming from? Do I need to do a node_load on $id and then get the field needed?
Not sure how to do this.
thanks in advance.
Eric
Ditto
I'd like more info too on this set up. Thanks.
hmmm. Was just about to right
hmmm. Was just about to right a whole tutorial on it for you then realised your on Drupal 5. Shame. Drupal 6 and the corresponding views for that version is greatly improved and offers a list of possible names for tpl files to allow you to edit the markup correctly without messing with core files. Right dow to individual fields.... the you rescan the templates with a handy button to make sure your templates have been hooked. Downside is it's more files, up side is there tiny and allow your every type of modification you require.