Ticket #508 (closed enhancement: fixed)
[PATCH] aSlideshowSlot: Add slideshowTemplate option to slideshow
| Reported by: | stereoscott | Owned by: | agilbert |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | apostrophePlugin | Version: | |
| Keywords: | Cc: | ||
| Symfony version: | 1.4 |
Description
A great enhancement would be to add a new option to a slideshow slot to select a custom template for use in place of the _slideshow.php wrap, not just the individual rendering snipped that the itemTemplate option gives us now.
If I wanted different types of slideshows, or just to create my own but still leave in the default as an option, I have to copy and paste all the code from _normalView.php, just to override the aSlideshowSlot component.
So, the attached patch adds a new option, 'slideshowTemplate', which defaults to 'slideshow'. If a custom template is specified, then that component will be loaded from the aSlideshowSlotComponent rather than the executeSlideshow(). I also refactored a block of code in the component to make adding additional components easier.


