Jump to content

Pages - Breadcrumbs that reflect pages structure


RaZor Edge

Recommended Posts

Posted

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:

 

 

Posted

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>

 

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...