We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 31770
    • 5 Posts
    Hi,
    is it possible in modx to set default template for some folder ?
    An example:
    I’ve got structure like that...
    + News [tplNewsList]
    + ArticleDetail [tplNewsDetail]
    + Another one [tplNewsDetail]
    + Photos [tplPhotosList]
    + PhotoDetail [tplPhotosDetail]
    + Another one [tplPhotosDetail]
    + Calendar [tplCalendarList]
    + EventDetail [tplCalendarDetail]
    + Another one [tplCalendarDetail]

    As you can see, the containers (News, Photos, Calendar) have templates for listing children...

    It would be nice, to set default template for News = tplNewsDetail...
    And then, when I create new document in folder News, default template for this new document will be tplNewsDetail...

    Thanks a lot...
    VJ
      • 25663 MODX Staff
      • 12,272 Posts
      There’s a couple of solutions for this, but TobyL just released a plugin to replace Inherit Parent Template a few days ago that will fit your requirements perfectly.

      http://modxcms.com/Inherit-Selected-Template-2248.html
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me