Jump to:

5450 Posts in 1672 Topics by 1197 members

Customising the CMS

SilverStripe Forums » Customising the CMS » Show "Previews" of pages on home page

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

Page: 1
Go to End
Author Topic: 1162 Views
  • jacobsjensen
    Avatar
    Community Member
    20 Posts

    Show "Previews" of pages on home page Link to this post

    Hi,
    First off all this is not a question about auto-generated previews!!

    I've got this site where I want 3 boxes on my home page. These 3 boxes should be content set on 3 different sub or first-level pages by the administrator ind the CMS (Not only children of the home/parent page).
    The box content should be filled in on it's own tab called "Page preview", on pages having the page type needed that is. On this tab you could choose an image and write some text in a HTMLeditor field and a preview title field. Maybe a custom link text and url would be nice too otherwise just the url for the page on which we are defining the preview.

    From the home page or any other page using the "Holder" page type, it should be possible to choose 3 pages to show previews from. Even better, would be to choose more than 3 pages, which the CMS then randomly shows 3 of at a time.

    I just use the number 3 because it's what I need, but it should be easy to alter...

    Any ideas on how to build this?

    I've attached a clipping of the page how I wan't it to be in the frontend - not that I can't write that myself, just to make it easier to understand what I want.. (I know the boxes are the same on the clipping, but they should off course be different)

    Attached Files
  • Casey
    Avatar
    Community Member
    1 Post

    Re: Show "Previews" of pages on home page Link to this post

    The answer to this issue can be found in the following post http://silverstripe.org/general-questions/show/255659?start=0

    Edit: Wrong post! Look here
    http://www.silverstripe.org/themes-2/show/265050#post265050

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