Slideshow

Manage Twitter Bootstrap carousels with additional content.

Back to Slideshow Support

forums7529
forums7529

Could you please explain how the slideshows can be used within Rainlab Static Pages ?

I tried adding the following code to Plugin.php, but it resulted in an error when trying to reference the snippet within my page.

public function registerPageSnippets() { return [ 'Flosch\Slideshow\Components\Slideshow' => 'slideshow' ]; }

Flosch
Flosch

Hey,

I never used it within the Static Pages plugin, I will try that tomorrow and let you know!

forums7529
forums7529

Thank you so much, that would be appreciated.

Flosch
Flosch

Hey Nick,

Sorry for the delay, I am not sure to understand how exactly does the Static Pages plugin works ; But you do not seem to be able to include components inside a static page.

Why not use a regular CMS Page instead ?

It seems to be possible to manage menu items pointing to either CMS pages and Static Pages, so I do not think using a regular CMS page is a problem here, unless you have a specific case to deal with?

daftspunky
daftspunky

Including the registerPageSnippets code above in the plugin registration file will allow the component to act as a snippet. It should be a straight forward process as per the static page documentation.

What happens when we try this?

1-5 of 5