Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Customising the CMS /

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

Show "Previews" of pages on home page

Go to End

2 Posts   1620 Views


Community Member, 20 Posts

4 September 2009 at 3:41am

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

Community Member, 1 Post

13 September 2009 at 3:38pm

Edited: 13/09/2009 3:43pm

The answer to this issue can be found in the following post

Edit: Wrong post! Look here