Jump to:

7939 Posts in 1472 Topics by 944 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, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 989 Views
  • Richie
    Avatar
    Community Member
    18 Posts

    Show resources from inside a child page Link to this post

    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!

  • Distinct
    Avatar
    Community Member
    10 Posts

    Re: Show resources from inside a child page Link to this post

    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.

  • Richie
    Avatar
    Community Member
    18 Posts

    Re: Show resources from inside a child page Link to this post

    How could I miss that.
    Thanks for your reply.

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