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.

General Questions /

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

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

Accessing Included Template from Decorator

Go to End

2 Posts   665 Views


Community Member, 197 Posts

10 August 2011 at 12:45pm

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 %>


Community Member, 288 Posts

10 August 2011 at 7:37pm

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