Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2016-04-29 11:11:16

MichaelvdBerg
New Member
Registered: 2016-04-29
Posts: 3

Show article title in the breadcrumbs

Hi everyone,

I am working with a Textpattern website at this moment. I add the breadcrumbs code (<txp:breadcrumb label=“Home” link=“1”/>) but it’s shows only the homepage and the category of the article.

Does anybody know how I can get the article name of the page. For example the url www.domainname.com/news/article-one/
I got know Home >> News but I want: Home >> News >> Article one

Please help me if you know how to set this up. If you need more info, please let me know :)

Offline

#2 2016-04-29 13:35:25

NicolasGraph
Plugin Author
From: France
Registered: 2008-07-24
Posts: 860
Website

Re: Show article title in the breadcrumbs

MichaelvdBerg wrote #298879:

I got know Home >> News but I want: Home >> News >> Article one

Hi, welcome Michael.
I didn’t use <txp:breadcrumb /> for a while but if you can’t get the article title with it, you can manually add <txp:title />. As it’s an article tag it should be added in a <txp:article> container tag or via your article form.

Last edited by NicolasGraph (2016-04-29 13:36:37)


Nicolas
Follow me on Twitter and GitHub!
Multiple edits are usually to correct my frenglish…

Offline

#3 2016-04-29 23:35:25

GugUser
Member
From: Quito (Ecuador)
Registered: 2007-12-16
Posts: 1,473

Re: Show article title in the breadcrumbs

You can use something like this:

<p><txp:breadcrumb title="1" wraptag="" /><txp:if_individual_article>» <txp:title /></txp:if_individual_article></p>

Offline

#4 2016-04-30 09:17:08

NicolasGraph
Plugin Author
From: France
Registered: 2008-07-24
Posts: 860
Website

Re: Show article title in the breadcrumbs

GugUser wrote #298883:

You can use something like this:

<p><txp:breadcrumb title="1" wraptag="" /><txp:if_individual_article>» <txp:title /></txp:if_individual_article></p>...

Yes, better.


Nicolas
Follow me on Twitter and GitHub!
Multiple edits are usually to correct my frenglish…

Offline

#5 2016-04-30 15:10:34

MichaelvdBerg
New Member
Registered: 2016-04-29
Posts: 3

Re: Show article title in the breadcrumbs

Hi NicolasGraph and GugUser,

Thank you for your help! It’s works perfect in the Textpattern website!
Have a great weekend =)

Cheers,

Michael

Offline

Board footer

Powered by FluxBB