7911 Posts in 1354 Topics by 930 members
DataObjectManager Module
SilverStripe Forums » DataObjectManager Module » Show resources from inside a child page
Discuss the DataObjectManager module, and the related ImageGallery module.
Moderators: martimiz, UncleCheese, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 899 Views |
-
Show resources from inside a child page

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! -
Re: Show resources from inside a child page

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.
-
Re: Show resources from inside a child page

13 July 2009 at 8:34pm
How could I miss that.
Thanks for your reply.
| 899 Views | ||
|
Page:
1
|
Go to Top |

