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


Reply


2 Posts   447 Views

Avatar
DeklinKelly

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

Avatar
MarcusDalgren

Community Member, 288 Posts

10 August 2011 at 7:37pm

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