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.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Show resources from inside a child page


Go to End


3 Posts   1849 Views

Avatar
Richie

Community Member, 18 Posts

10 July 2009 at 12:20am

I'm trying out the FileDataObjectManager but ran into a problem. In the CMS I created a page called 'project01' [page-type: Resource Page] as a child of the (root) page 'projects' [page-type: Page]. Now when I point to projects/project01 this page loads the template 'Page.ss' and not 'ResourcePage.ss'.
But when I drag 'project01' one level up (root) the right template is loaded and the Resources(files) are showing. What am I missing here? Thanks!

Avatar
Distinct

Community Member, 10 Posts

13 July 2009 at 8:17pm

what do you mean by 'point to'. if you're trying to navigate to http://www.website.com/projects/project01/ then that is displaying the projects page, and that has page-type: Page as you said. if you goto http://www.website.com/project01/ it'll display the child page, the cms hierarchy doesn't follow through to url's in silverstripe.

Avatar
Richie

Community Member, 18 Posts

13 July 2009 at 8:34pm

How could I miss that.
Thanks for your reply.