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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Data Model Questions /

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

Pre-defined elements on a Page


Go to End


1126 Views

Avatar
bartvanirsel

Community Member, 96 Posts

30 March 2010 at 12:35am

Hi,

I have a question which can be more seen as a system design question for Silerstripe.
I posted the question in the templates part before but i probably didn't get an answer because it's only partly about templates.

Situation:
All the pages in my site contain predefined items. With items i mean content with certain css values or flash in them
which can not be easiliy administered using tinymce. An item for example can be a full width image with Sifr text on top,
a flash movie in a flash movie player, 5 images next to each other, one image with text next to it which is Sifred etc.

All the elements are predefined and i need to be able to order them and administer them when i select the page in Silverstripe.

Posible solution?
Should i use Widgets for this? As they are orderable and could contain all the predefined items?
Is it better to let a page contain sub data model items which are visible in the site tree? (could be re-ordered there)
Or is the best solution to extend Page and add some kind of options for administiring and reordering the predefined items in there?

Hope you understand the question; if not let me know!

Best regards,

Bart