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

Hi

slide show is hard coded into page.tpl

<.....snip....>
            <div class="image_reel">
                <a href="#"><img src="<?php print drupal_get_path('theme', 'magazeenlite')?>/images/slideshow/slide3.jpg" alt="" /></a>
                <a href="#"><img src="<?php print drupal_get_path('theme', 'magazeenlite')?>/images/slideshow/slide1.jpg" alt="" /></a>
                <a href="#"><img src="<?php print drupal_get_path('theme', 'magazeenlite')?>/images/slideshow/slide2.jpg" alt="" /></a>
            </div>
        </div>
        <div class="paging">
            <a href="#" rel="1">1</a>
            <a href="#" rel="2">2</a>
            <a href="#" rel="3">3</a>
        </div>
<.....snip....>

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.

Assigned:Unassigned» skounis
Status:Active» Postponed (maintainer needs more info)

I 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.

Hi 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.

<?php
/**
* @file views-view-list.tpl.php
* Default simple view template to display a list of rows.
*
* - $title : The title of this group of rows.  May be empty.
* - $options['type'] will either be ul or ol.
* @ingroup views_templates
*/
?>

<div class="main_view">
<div class="window">
<div class="image_reel">
<?php
$filepath
= file_directory_path();
$basepath = base_path();
foreach (
$rows as $id => $row){
$result = $vars['view']->result;
$view = views_get_current_view();
$nid = $view->result[$id]->nid;
$post_promo_image="";
$post_promo_image $basepath . $filepath .'/default.png';
$exp = "post-promo-image";
$files = upload_load(node_load($nid));
foreach (
$files as $file) {
if (
$file->list) {
   
$href = $file->filepath;
   
$uploaded_file_name = $file->filename;
    if (
strstr($uploaded_file_name,$exp)) {
       
$post_promo_image = $href;
    }
}
}
?>

<a href="?q=node/<?php print $nid; ?>"><img src="<?php print $post_promo_image; ?>"/></a>
<?php } ?>
</div>
<div class="descriptions">
<?php
foreach ($rows as $id => $row){
$result = $vars['view']->result;
$view = views_get_current_view();
$nid = $view->result[$id]->nid;
?>

<div class="desc"><?php print node_load($nid)->title;?></div>
<?php } ?>
</div>
</div>
<div class="paging">
<?php
foreach ($rows as $id => $row){ ?>

<a href="#" rel="<?php print $id+1; ?>"><?php print $id+1; ?></a>
<?php } ?>
</div>
</div>

Component:Code» Documentation

It's all so much clearer now! Thanks so much.

Status:Postponed (maintainer needs more info)» Fixed

Thank you too for your interest in this theme. I mark this issue as fixed. If you have any issue open it again

Status:Fixed» Closed (fixed)

Version:6.x-1.0» 7.x-1.1
Status:Closed (fixed)» Active

How do you change the transition effects for the slideshow? I want to fade between slides rather than shuffle.
Thank you! Love this theme!