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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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