Deciding which template set to use in catalogues view

Post

Posted
Rating:
#4879 (In Topic #984)
Joe
I've noticed that when viewing catalogues, categories, as well as entries, the 'templates' view within Composr's page rendering tool shows duplicate templates. It tries to pull templates from the default template set and also the exact same template but from another set.

Example: let's say we have a catalogue with codename faqs.

Viewing the catalogue shows these templates:

Code

templates/CATALOGUE_DEFAULT_CATEGORY_EMBED.tpl (1)
templates/CATALOGUE_DEFAULT_CATEGORY_SCREEN.tpl (1)
templates/CATALOGUE_DEFAULT_FIELDMAP_ENTRY_FIELD.tpl (1)
templates/CATALOGUE_DEFAULT_FIELDMAP_ENTRY_WRAP.tpl (1)
templates/CATALOGUE_DEFAULT_GRID_ENTRY_FIELD.tpl (1)
templates/CATALOGUE_DEFAULT_TABULAR_ENTRY_FIELD.tpl (1)
templates/CATALOGUE__catalogue_category_FIELDMAP_ENTRY_FIELD.tpl (1)
templates/CATALOGUE__catalogue_category_FIELDMAP_ENTRY_WRAP.tpl (1)
templates/CATALOGUE__catalogue_category_GRID_ENTRY_FIELD.tpl (1)
templates/CATALOGUE__catalogue_category_TABULAR_ENTRY_FIELD.tpl (1)
templates/CATALOGUE_faqs_CATEGORY_EMBED.tpl (1)
templates/CATALOGUE_faqs_CATEGORY_SCREEN.tpl (1)
templates/CATALOGUE_help_support_FIELDMAP_ENTRY_WRAP.tpl (20)

Strangely, it's also referencing a template from another catalogue of mine (the last one, help_support)

Is this normal or should it only display one template set?

Post

Posted
Rating:
Item has a rating of 5 Item has a rating of 5 Item has a rating of 5 Item has a rating of 5 Item has a rating of 5 (Liked by Joe)
#4883
It's normal to see the overridden templates on that screen, even if they don't exist. It's useful as a feature to know you can set them.
I've tried to explain the page rendering tools better:
https://github.com/ocproducts/composr/commit/2ae4b7a54ea8248153b631d5fd565e9533897a59

As for catalogues you're not meant to see there, wow you found a performance issue. Fixed in:
https://github.com/ocproducts/composr/commit/d12a659960803e7548c329f1a314dfe7b2de89b2
0 guests and 0 members have recently viewed this.