Jump to:

3444 Posts in 1030 Topics by 871 members

Template Questions

SilverStripe Forums » Template Questions » Show Contents of Unpublished Pages

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

Page: 1
Go to End
Author Topic: 1211 Views
  • spierala
    Avatar
    Community Member
    80 Posts

    Show Contents of Unpublished Pages Link to this post

    Hell all,

    i faked the contents of a Page with an Accordion using several Pages and its content. Each Item of the Accordion gets its data from a seperate page. Unfortunately these Pages are also found by google - not just the Page containing the accordion. Now i thought i could just unpublish these pages. But now the content isn´t accessible anymore via <% control AllChildren %>$Content<% end_control %>

    Is there some control to access Content of unpublished Pages?

    Many thanx in advance,
    florian

  • Juanitou
    Avatar
    Community Member
    323 Posts

    Re: Show Contents of Unpublished Pages Link to this post

    Hi Florian.

    Well, what you could expect if you unpublish them? AllChildren is meant to get all published children, regardless of their Behaviour > Show in menus property. Just tick that off.

    If I got you well.
    Juan

    EDIT: I read your message a little less hastily and I guess you are already aware of this Behaviour > Show in menus property. Maybe what you need is to convert those pages, which doesn’t need an URL, into DataObjects.

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