Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-10-16 03:36:54

variaas
Plugin Author
From: Chicago
Registered: 2005-01-16
Posts: 402
Website

asv_breadcrumb

<a href=“http://www.amitvaria.com/thoughts/asv_breadcrumb”>My Post</a>
<a href=“http://www.amitvaria.com/file_download/14”>download</a>

asv_breadcrumb
last updated 10/15/2006

Description
I created this plugin due to issues I was having with <code><txp:breadcrumb /></code>. It addresses issues with <code>txp:breadcrumb /</code>and expands on the usability. I started with the function for <code>txp:breadcrumb /</code> written for TXP 4.0.4 RC1. This function had addressed issue with changing the label for the home link. But it wouldn’t show the category when viewing an individual article. This has been addressed in this plugin. Please review the attributes below to also see new features. I tried to build it so that by default it should mimic txp:breadcrumb.

Attributes
wraptag – This sets the tag that is wrapped around the entire breadcrumb. By default it is ‘p’.
sep – This sets the seperator between each breadcrumb. By default it is ‘&amp;#160;&amp;#187;&amp;#160’.
link – This sets whether to create a link to the pieces in the breadcrumb. By default it is ‘y’.
label – This sets the text for your homepage. By default it is the sitename defined in your preferences.
title – This sets to show the title or the name. ‘y’ will show show the title, and blank will show the name. By default it is blank.
class – This sets the class to be used for the entire breadcrumb. By default it is blank.
linkclass – This sets the class for each individual link. By default it is ‘noline’
showsection – This sets whether to include the section name in the breadcrumb. By default it is true.
homepage – This sets whether to show a home link on the home page or nothing at all. By default it is ‘n’ and will not show the home page link.
catsep – If you have an article with two categories this will seperate the two category trees. By default it is ‘/’.

Change Log
10/15/2006- v1.0 – asv_breadcrumb is created

Last edited by variaas (2006-10-16 03:38:48)

Offline

#2 2007-03-07 10:47:28

shotoshi
Member
Registered: 2005-10-08
Posts: 48
Website

Re: asv_breadcrumb

Amit, this plugin looks great, just what I need but the links above don’t seem to
work.

Offline

#3 2007-03-07 15:54:38

variaas
Plugin Author
From: Chicago
Registered: 2005-01-16
Posts: 402
Website

Re: asv_breadcrumb

shotoshi – sorry about that

You can grab all my plugins from – http://asv-plugins.googlecode.com/svn/trunk/

Offline

#4 2007-05-08 08:27:15

Logoleptic
Plugin Author
From: Kansas, USA
Registered: 2004-02-29
Posts: 482

Re: asv_breadcrumb

You may want to update the listing at Textpattern Resources to match your new download location.

Offline

#5 2007-05-24 23:27:16

rossharvey
Member
From: Earth. Sometimes.
Registered: 2005-03-16
Posts: 233
Website

Re: asv_breadcrumb

Anyone have a compiled version of this? It’s a shame the default TXP breadcrumbs cannot show the ‘home’ link, pretty standard requirement (for design consistency).

Offline

#6 2007-05-24 23:29:11

variaas
Plugin Author
From: Chicago
Registered: 2005-01-16
Posts: 402
Website

Re: asv_breadcrumb

Sorry I should update links …. http://asv-plugins.googlecode.com/svn/releases/asv_breadcrumb/asv_breadcrumb_v1.0.txt

Last edited by variaas (2007-05-24 23:29:24)

Offline

#7 2007-05-24 23:30:39

rossharvey
Member
From: Earth. Sometimes.
Registered: 2005-03-16
Posts: 233
Website

Re: asv_breadcrumb

variaas wrote:

Sorry I should update links …. http://asv-plugins.googlecode.com/svn/releases/asv_breadcrumb/asv_breadcrumb_v1.0.txt

Perfect timing – thanks.

Edit: FYI showsection is set to false by default, contrary to the help file instructions

Last edited by rossharvey (2007-05-24 23:36:35)

Offline

#8 2007-06-02 04:31:44

riot
Member
Registered: 2005-10-09
Posts: 22

Re: asv_breadcrumb

I can’t seem to get the homepage=“y” attribute to function right. Is this the correct use: <txp:breadcrumb class=“breadcrumbs” wraptag=“p” homepage=“y” /> ?

That doesn’t seem to work for me, it returns a blank <.p /> tag

Offline

#9 2007-06-02 05:48:31

variaas
Plugin Author
From: Chicago
Registered: 2005-01-16
Posts: 402
Website

Re: asv_breadcrumb

@riot
try using single quotes. I hastily created this plugin and after revisiting it recently I’ve noticed several inconsistencies. I’ll do more unit testing tomorrow.

@rossharvey
You’re semi-right. Due to a bug in my coding the default of showsection is false. I will correct this and republish the plugin.

Offline

#10 2007-06-02 05:59:55

variaas
Plugin Author
From: Chicago
Registered: 2005-01-16
Posts: 402
Website

Re: asv_breadcrumb

@riot – I just realized something. Make sure your tag is for asv_breadcrumb not just breadcrumb.

<txp:asv_breadcrumb class=“breadcrumbs” wraptag=“p” homepage=“y” />

Offline

#11 2007-06-02 13:48:08

riot
Member
Registered: 2005-10-09
Posts: 22

Re: asv_breadcrumb

If I use what you posted this is what it outputs: <“p” class=”“breadcrumbs”” />

Offline

#12 2008-12-24 22:28:52

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

Re: asv_breadcrumb

i nested my all my categories in another category called “products”.

this plugin gets as close as i want, but i want it to not display that top-level category “products” in the breadcrumb. also it outputs the name of the category by its article category title, rather than article category name which is more elegant. let me know if anyone knows how i can fix the output.

also i agree the new link should be fixed on textpattern resources.

Offline

Board footer

Powered by FluxBB