Jump to:

5554 Posts in 1742 Topics by 1227 members

Customising the CMS

SilverStripe Forums » Customising the CMS » adding image slideshow - one tiny question please

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1175 Views
  • webdeb
    Avatar
    Community Member
    22 Posts

    adding image slideshow - one tiny question please Link to this post

    Include the slideshow in your templates by adding <% include Slideshow %>????? where????? do you mean in themes folder in Page.ss? if so, why not say so?

    Can someone please tell me which folder and which file requires this added, and where exactly. I had the same problem with the max skitter slide show, I went to the trouble of installing and loading but no pics were showing, so I went back and discovered this instruction which I didnt know where to put the code. So had to abandon that install too. I am using cloudy theme, it is not a template, so which template file??
    please help!! I have spent 3 weeks installing silverstripe, and keep coming to a dead stop with over half the modules, due to insufficient instructions.

  • novaweb
    Avatar
    Community Member
    115 Posts

    Re: adding image slideshow - one tiny question please Link to this post

    Hi Webdeb,

    I'm going to be dead honest here, It's probably not realistic people are able to help you at this stage as often we need specific details in order to debug problems. That being said:

    Assuming you've installed SilverStripe and then the module, you'll need to do the following.

    I am going to assume you are using "gallery" for argument's sake. Inside gallery/code will be GalleryPage.php. This will contain your Slideshow function.

    Your problem is, your website knows about the gallery being installed, but your theme has no idea what a gallery page is! In order for SilverStripe modules to work correctly, you need to have matching Templates for each page type. eg:

    GalleryPage.php uses template /themes/mytheme/templates/Layout/GalleryPage.ss
    GalleryPageHolder.php uses template /themes/mytheme/templates/Layout/GalleryPageHolder.ss

    By default, SilverStripe tries to cascade the page using the default /themes/mytheme/templates/Layout/Page.ss template. You could try putting <% include Slideshow %> under $Content, that may work.

    SilverStripe is an open source, community driven effort. Yes sometimes it lacks documentation in some areas, however the areas lacking documentation are usually from community submitted modules authored by people such as ourselves.

    Perhaps if you do get the Slideshow working, your next step would be to write a short instruction manual on the module, including what i've written above, then committing it back to the project so no-one runs in to this issue for this particular module in the future. That's all part of the open source process.

    Let me know how you get on.

    Nova

  • webdeb
    Avatar
    Community Member
    22 Posts

    Re: adding image slideshow - one tiny question please Link to this post

    Put <% include Slideshow %> in the Page.ss, under $Content, in /themes/mytheme/templates/Layout/Page.ss. I added the max skitter code in the same place and now that is working too.

    Yes thank you novaweb, that worked immediately! Choice!.

  • novaweb
    Avatar
    Community Member
    115 Posts

    Re: adding image slideshow - one tiny question please Link to this post

    No Worries webdeb glad it helped.

    1175 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.