Jump to:

23472 Posts in 18941 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » Accessing Included Template from Decorator

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 432 Views
  • DeklinKelly
    Community Member
    197 Posts

    Accessing Included Template from Decorator Link to this post

    I created a module called "HTMLSitemap" and it works similarly to the Google XML Sitemap module, however it creates an HTML sitemap.

    I want to include the navigation inside my template.

    None of these work:

    <% include Navigation %>
    <% include Parent.Navigation %>
    <% control Parent %><% include Navigation %><% end_control %>

  • MarcusDalgren
    Community Member
    288 Posts

    Re: Accessing Included Template from Decorator Link to this post

    I'm guessing you have a Navigation.ss in your Includes-folder? AFAIK that's all Include does, it looks in the Includes folder for a file with the name you <% include %>

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.