Jump to content

Pages - Breadcrumbs that reflect pages structure


RaZor Edge
 Share

Recommended Posts

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:

 

 

Link to comment
Share on other sites

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>

 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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