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.

Template Questions /

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

Show Contents of Unpublished Pages


Go to End


2 Posts   1868 Views

Avatar
spierala

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,
florian

Avatar
Juanitou

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