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:

Template Questions /

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

Show Contents of Unpublished Pages

Go to End

2 Posts   1585 Views


Community Member, 80 Posts

15 April 2010 at 4:24am

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,


Community Member, 323 Posts

15 April 2010 at 8:38am

Edited: 15/04/2010 8:41am

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.

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.