I am using 6.x-2.x-dev (2011-Apr-22). I have setup and configured the module using vsd-upright-10p template and it works fine.

When I try to disable the pager from Views ->Dynamic display block settings->Uncheck the Use pager box and then clear views cache and the system cache. The pager still appears.

Thanks

CommentFileSizeAuthor
#9 views_slideshow_ddblock-1143760-9.patch1.99 KBsp3boy

Comments

raincloud’s picture

I have the same problem, only I use the 7.x-1.0-beta1 and Drupal 7. After unchecking the "Use pager" option in ddblock configuration, the pager displays as a simple html unordered list. So it is no more themed (I use upright10p) but is still in html.

ppblaauw’s picture

Assigned: Unassigned » ppblaauw
Status: Active » Needs work

For view_slideshow_ddblock will need to add $pager_toggle variable to the available settings for the slideshow themes.
For ddblock drupal 7 the $pager_toggle variable is already available to the slideshow themes.

For both the ddblock module and the views_slideshow_ddblock module:
In the content_[theme_name].tpl.php file of all themes a check needs to be added if the $pager_toggle variable is checked

For example:

<?php if ($settings['pager_position'] == "top") : ?>
 <?php print $pager_content ?>
<?php endif; ?> 

needs to be changed into

<?php if ($settings['pager_toggle'] && $settings['pager_position'] == "top") : ?>
 <?php print $pager_content ?>
<?php endif; ?> 

Will apply patches for this soon

raincloud’s picture

This did the trick (the change in *tpl.php) ! In the meantime, another temporary solution was to add at the bottom of css file:
.none, .number-pager-pre-top {
display:none;
}

ppblaauw’s picture

Title: Cannot disable pager » Cannot disable pager (Fixed)
Status: Needs work » Fixed

Added pager_toggle variable to dev version and version 2.0
$pager_toggle variable can now be used in slideshow themes to disable the pager.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

sp3boy’s picture

Title: Cannot disable pager (Fixed) » Cannot disable pager
Status: Closed (fixed) » Active

I have installed 6.x-2.x-dev and changed the views-slideshow--ddblock-cycle-block-content-vsd-upright-60p.tpl.php as instructed. No pager thumbnails are output, however the main slides remain invisible also. I think this is due to a javascript error that is "myScrollable is undefined .../sites/default/modules/contrib/views_slideshow_ddblock/js/views_slideshow_ddblock.js?r Line 285"

Inspecting the $pager_toggle theme template variable in the .tpl.php, it is always null irrespective of how the view is configured, suggesting a problem with the preprocessing?

ppblaauw’s picture

Status: Active » Postponed (maintainer needs more info)

If you don't want to use a pager, you can use the vsd-upright-10p, vsd-upright-20p, vsd-upright-30p, vsd-upright-40p and vsd-upright-50p slideshow themes.
The vsd-upright-60p uses a scrollable pager and the javascript code wants to target the scrollable pager.
That is why you get the javascript error.

Hope this helps you further, please let me know.

sp3boy’s picture

Are you saying the option to disable the pager will cause an error unless I use a template that doesn't have a pager anyway? That implies that the disable option has no practical use.

My client wanted the upright-60 layout, with the row of circular icons but simply without the row of thumbnail images, so the presence of an option on the View config to disable the thumbnail pager appeared to be ideal.

sp3boy’s picture

StatusFileSize
new1.99 KB

For what it's worth I think the attached patch resolves the problem whereby the $pager_toggle theme template variable in the .tpl.php is always null.

ppblaauw’s picture

Status: Postponed (maintainer needs more info) » Fixed

SP3boy

Thanks for the patch

Committed to dev version.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.