Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt November 11, 2024
RaZor Edge Posted December 5, 2016 Posted December 5, 2016 Hi, My website is using the Pages app as default. So I've got something like : Homepage, Section 1, Section 2, Section 3, Forum, etc On the Pages app, I have created folders reflecting this structure: /Folder1/Page1 /Folder1/Page2 etc.. (I've got also a default page showing for Folder1) So, the url show: Homepage/Folder1/Page1 But the breadcrumb show: Homepage / Page1 I would like it to be: Homepage / Folder1 / Page1 or even Folder1 / Page1 It seems to be done on IPS own website: https://invisionpower.com/4guides/ Can it be done without changing templates? It was also requested in this thread:
RaZor Edge Posted December 6, 2016 Author Posted December 6, 2016 Well, I'll go the easy way. I'll made a different template for each section and adjust the Breadcrum template in each : <li {{if $useMicrodata}} itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"{{endif}}> <a title="{lang="home"}" href='{setting="base_url"}' {{if $useMicrodata}}itemscope itemtype="http://schema.org/Thing" itemprop="item"{{endif}}> <span {{if $useMicrodata}}itemprop="name"{{endif}}><i class='fa fa-home'></i> {lang="home"}{{if count( \IPS\Output::i()->breadcrumb )}} <i class='fa fa-angle-right'></i>{{endif}}</span> </a> <meta itemprop="position" content="1"> </li>
Recommended Posts
Archived
This topic is now archived and is closed to further replies.