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

Tracing Templates


Go to End


2 Posts   1112 Views

Avatar
zenmonkey

Community Member, 545 Posts

30 July 2010 at 3:23am

I just installed the blog module on my site and the system appears to be rendering the BreadCrumbs from a different template now instead of my base. I thought it was pulling the blog one so I changed the name and its still reading teh wrong template. Is there any way for me to trace the template path. debug_request only shows me the path for main page templates not any of the includes

Thanks for help

Avatar
Willr

Forum Moderator, 5523 Posts

30 July 2010 at 3:52pm

You can enable paths to be included in the actual output of the template by using SSViewer::set_source_file_comments(true); in your config file. You'll need to be in dev mode and run a ?flush=1 for this to work but that will tell you the path.

Have you looked directly at the blogholder.ss template. It could be including BreadCrumbs rather than your 'Breadcrumb' since it is case sensitive AFAIK.