Hi,
Is it possible to exclude one or more specified resources from Breadcrumb? (something like e.g &exclude=`23`)
I am trying to use Breadcrumb to generate the full URL of a current resource (the URL is important, not the clickable hyperlink) as a way of generating a hreflang path attribute. The code I am using is:
<link rel=”alternate” href=”http://www.mywebsite.com/fr/[[Breadcrumb? &showHidden=`0` &showUnPub=`0` &containerTpl=`@CODE:[[+crumbs]]` ¤tCrumbTpl=`@CODE:[[+link]]` &linkCrumbTpl=`@CODE:[[+crumb]]` ]]” hreflang=”fr-fr” />
and it comes very close, if I'm in the French version of the site, it generates:
<link rel=”alternate” href=”http://www.mywebsite.com/fr/fr/news/name-of-article” hreflang=”fr-fr” />
In this case, I am trying to exclude the extra '
fr/' (which is added by Breadcrumb because it's the parent container of the French language version of the site).
I need to do this so I can hard code the region but have the remainder of the URL automatically inserted for additional hreflang attributes, e.g.
<link rel=”alternate” href=”http://www.mywebsite.com/sp/news/name-of-article” hreflang=”sp-sp” />
<link rel=”alternate” href=”http://www.mywebsite.com/en/news/name-of-article” hreflang=”en-en” />
Or maybe there is an easier way with another plugin or something?
By the way, I hope this all makes sense : /