Jump to:

23481 Posts in 18951 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » Tracing Templates

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

Page: 1
Go to End
Author Topic: 793 Views
  • zenmonkey
    Community Member
    528 Posts

    Tracing Templates Link to this post

    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

  • Willr
    Forum Moderator
    5503 Posts

    Re: Tracing Templates Link to this post

    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.

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.