/
[cms] Section agnostic template

[cms] Section agnostic template

In-Portal has 2 types of pages:

  • Virtual - multiple pages share same template file on disk, which called "design template". Content comes from page content blocks plus any other used unit.

  • Physical - only 1 page per template file on disk. Content comes from template file itself plus any other used unit.

Template can use or ignore a category, that is given into url (e.g. /path/to/category/path/to/template.html). However fact, that template can shows identical information no matter what category is given in url breaks Google Seo rule (single page can't have 2 urls to it).

I'm proposing to add <SECTION_AGNOSTIC/> text to page meta comment, which usually looks like this:

<!--## <NAME>Page Name</NAME> <DESC>Page Description</DESC> <SECTION>Path||To||Section</SECTION> ##-->

With proposed change applies any attempts to visit url with both category & template present would lead to 404 page, but only if found template is marked as "section agnostic".

section_agnostic_templates_feat.patch

Related Discussions

Related Tasks

https://in-portal.atlassian.net/browse/INP-1229