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, biapar, Willr, Ingo, swaiba, simon_w

Accessing Included Template from Decorator


2 Posts   442 Views


10 August 2011 at 12:45pm Community Member, 197 Posts

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


10 August 2011 at 7:37pm Community Member, 288 Posts

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