To participate you must create an account on apostrophenow.org. If you have already done so, click Login.

Ticket #508 (closed enhancement: fixed)

Opened 18 months ago

Last modified 13 months ago

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

Attachments

slideshowTemplatePatch.diff Download (1.7 KB) - added by anonymous 18 months ago.
Patch that adds a 'slideshowTemplate' option to a slideshow slot (different than an itemTemplate)

Change History

Changed 18 months ago by anonymous

Patch that adds a 'slideshowTemplate' option to a slideshow slot (different than an itemTemplate)

Changed 13 months ago by johnnyoffline

  • status changed from new to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.