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.
I was wondering how one goes about configuring the slide show? Is there a way to change what images it displays besides going into the code and changing the url of the image you want used?
i.e. make it display the most recently submitted images
Thanks!
Comments
Comment #1
skounis CreditAttribution: skounis commentedHi
slide show is hard coded into page.tpl
You can add more slides adding elements into
and
.
If you prefer something more automated you can configure your code to produce above html elements.
For example in some implementations we have create a view-block (views) that grab the information we need (aka recently submitted pages) and render it like the above snip. Then we have create a region into the page.tpl (where now the slide show code is) and put this block there.
Comment #2
skounis CreditAttribution: skounis commentedComment #3
Rhino CreditAttribution: Rhino commentedI really like the look and position of this slider ... SO there is a way to add (for example) most recently uploaded images (+link to that node?) I don't quite grok your comment above.
Comment #4
skounis CreditAttribution: skounis commentedHi Rhino, let me make my comment more clear:
You have, first, to create a view that collects information you want. Views modules is required. Then you can expose your view as block. Finally you have to write a .tpl.php file for your view based block that will produce html code slide show needs. The last one is the difficult part.
Here is an example close to that i mention above. There is an iteration over the attached files of all promoted posts. If one of the attached files filename match a specific pattern it used for the post. Otherwise a default image is used. All promoted post are part of the slideshow. The filter that collects promoted post is part of the view.
Comment #5
skounis CreditAttribution: skounis commentedComment #6
Rhino CreditAttribution: Rhino commentedIt's all so much clearer now! Thanks so much.
Comment #7
skounis CreditAttribution: skounis commentedThank you too for your interest in this theme. I mark this issue as fixed. If you have any issue open it again
Comment #8
skounis CreditAttribution: skounis commentedComment #9
azeller19 CreditAttribution: azeller19 commentedHow do you change the transition effects for the slideshow? I want to fade between slides rather than shuffle.
Thank you! Love this theme!