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

andrenoronha’s picture

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

jemond’s picture

Thanks, I'll check it out.

durum’s picture

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.

andrenoronha’s picture

hey, I'm not sure if I understood you...
Could you explain it more?

========
André Luiz

durum’s picture

Hi André, thanks for reacting. I did it. I have overriden the theme_views_slideshow_main_section, theme_views_slideshow_breakout_teasers, and theme_views_slideshow_breakout_teaser functions in template.php file and it is ok.

ericpugh’s picture

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:

function theme_views_slideshow_main_section($id, $hidden_elements)

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

lias’s picture

I'd like more info too on this set up. Thanks.

i-sibbot’s picture

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.