ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Which pages use which templates?

June 15, 2012 12:08pm

Subscribe [3]
  • #1 / Jun 15, 2012 12:08pm

    brianhoffman

    16 posts

    We would like to create a report that lists which template is used by which page. Now, I realize this is a somewhat nebulous request, since EE doesn’t have the concept of a page, per se. However, a site is full of links and those links create/reference pages. Our motivation is that if we are thinking of changing a template, we want to know which pages it will effect.

    Has anyone done this before or does anyone have any ideas how to do it? The only idea I’ve come up with so far that seems to do even close to what we want is to crawl the site and list the URLs, each of which will specify a page/template relationship. There are a few pages we have that aren’t linked from our site, but we could probably pick those up manually.

    Thanks,
    Brian

  • #2 / Jun 15, 2012 1:05pm

    Rob Allen

    3114 posts

    I wouldn’t think that’s 100% possible since an entry could appear in several templates, eg a home page feature, listing/category page or single entry page.

    If your channels are broadly tied to corresponding template_group/template you could output a simple sitemap:

    {exp:channel:entries limit="999"}
    {comment_url_title_auto_path}
    {/exp:channel:entries}

    That would give you a list of URL’s according to what’s set up in your Channel preferences.

  • #3 / Jun 18, 2012 10:36am

    Shane Eckert

    7174 posts

    Hey brianhoffman,

    It sounds like Rob has got you on the right track.

    I am going to move this over to the Community Help Forum where you may get a few more suggestions, but I think Rob’s suggestion is going to be as close to what you are looking to do as you may get as far as a list. Correlating that list to the template group/template ... that I am not sure how you would do.

    Thank you,

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases