Posted by marxjohnson on July 24, 2011 at 11:46am
2 followers
Jump to:
| Project: | S5 presentation player |
| Version: | 6.x-1.x-dev |
| Component: | Code - s5_textfield |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
The when creating a slideshow using the textfield method, there's no link to view the slideshow on the page, you need to manually edit the URL.
However, it's pretty easy to create a block that'll give you the link, if you've got the PHP filter enabled, it just needs to contain this code:
<?php
echo '<a href="http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'].'/s5/">View as Slideshow</a>';
?>And you can set it to display on node/* pages.
Comments
#1
I like this idea; I've been looking at the Drupal Print module for ideas on how to handle slideshow UI. It would make sense to have buttons/links at the bottom of a node. If URL aliases are being used, it might be nice to be able to tack on the slideshow suffix to the alias (or do it as a prefix the way Print module does it) and have that be what the buttons link to.