Jump to:

23487 Posts in 18996 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » Flexbile Contentpublishing - but how?!

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 748 Views
  • Breastfed
    Avatar
    Community Member
    44 Posts

    Flexbile Contentpublishing - but how?! Link to this post

    Hello

    i am very happy with SS so far - but now i am stuck at a point where i dont know how easy and flexible Content can be published.

    There is a Content Website and the Owner of the Site wants to give his Visitors and bunch of Content.
    So he needs a Text Editor, a Gallery, a Downloadlist, Tables etc.

    Sometimes he only needs Text and Downloads - Sometimes all and so on.

    But how can he decide what he is using for his Content?

    I can not say "PLease Customer XY use the WYGIWYS Editor to publish your 11 Picutres of the Anniversy of your Company".

    So - how can i put different Contentsituations inside a certain Page?

    Attached is an image which can be seen as an Example.

    Would love to get some input,
    thanks!

    Attached Files
  • banal
    Avatar
    Community Member
    901 Posts

    Re: Flexbile Contentpublishing - but how?! Link to this post

    There are (as always) different solutions for you problem. I'd probably solve it like this:
    Create a specialized Page class for all your content types (eg. GalleryPage, TextPage, DownloadPage). Create a Holder-Page class that allows only the previously mentioned Pages as children.
    The Holder-Page will be the page that's being displayed. All children of this page will be the content parts of that page:

    HolderPage
    +-- TextPage
    +-- GalleryPage
    +-- TextPage
    +-- DownloadPage

    In the template you simply iterate through all children and output their contents.
    The last problem to solve is that the content-part pages should not be accessible directly. You could add a redirect to their parent in that case, so the visitor will always land on the HolderPage.

    This system will be quite flexible, since the content-editor can add as many content-parts to the holder-page as he wants. I'd probably also create some special icons for the content-pages so that they can be distinguished easily from normal pages.

    On a side note: Maybe the whole thing could be solved with the DataObjectManager Module. You could ask UncleCheese in his thread if that would be possible: http://www.silverstripe.org/all-other-modules/show/253878

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