Textpattern Forum

You are not logged in. Register | Login | Help

#1 2005-05-11 23:25:41

Etz Haim
Plugin Author
From: Karlstad, Sweden
Registered: 2005-01-24
Posts: 262
Website

[plugin] [ORPHAN] etz_crumbs

This was originally a hack of the tcm_crumbs plugin, offering a few advancements:

  • Adding slash at the end of section URLs, so that they become the canonical URLs zem_redirect would produce.
  • It supports wanted a site hierarchy with categories under sections.
  • It displays the category and section titles instead of the names, making use of this TXP feature.
  • It supports nested categories.

Usage:

Put <txp:etz_crumbs /> in your page template(s) or article form(s).

Valid Options:

  • home: show an item to “home” (valid options: 0 or 1, defaults to 1)
  • section: display current section (valid options: 0 or 1, defaults to 1)
  • category: use category 1 or 2 for crumbs (valid options: 0, 1, or 2, defaults to 0 = no category)
  • atitle: show the article title in the breadcrumbs (valid options: 0 or 1, defaults to 0)
  • hometitle: custom title for link to home
  • separator: seperator between sections and categories, etc. (defaults to “ » “)
  • expand expand nested categories (valid options: 0 or 1, defaults to 1)

Download version 0.7 now! (Requires Textpattern 4.0.2 and above)
Download version 0.4 (Legacy, tcm_crumbs derivative. Requires Textpattern 4.0.1 and above and the stw_category_tree plugin.)

This software is both free as in beer and free as in freedom. If you like it or think it’s useful, you may consider bying me something from my wishlist.

Last edited by Etz Haim (2005-11-26 18:43:42)

Offline

#2 2005-05-14 15:39:47

Mary
Sock Enthusiast
From: Canada
Registered: 2004-06-27
Posts: 6,235

Re: [plugin] [ORPHAN] etz_crumbs

Whoops on my part:
Missing argument error, because I did not account for other plugins calling mine. A simple fix, and I’ll release an update as soon as possible (hopefully today), I’m just waiting for one other thing for it, so I’m not releasing an update every couple days (or at least, so I can reduce the number of them).

The site url crumb is correct, but the section url is missing a slash: “http://localhost/txparticle/”


My email address has changed recently. If you need to contact me, use the forum contact form.

Offline

#3 2005-05-14 16:09:21

Etz Haim
Plugin Author
From: Karlstad, Sweden
Registered: 2005-01-24
Posts: 262
Website

Re: [plugin] [ORPHAN] etz_crumbs

I don’t get it. I’m using version .2 of your plugins and etz_crumbs works like a charm. See for yourself:

http://www.agitprop.gr/article/18/hijab

The breadcrumb menu is the one that reads “агит проп » ά

Offline

#4 2005-05-14 16:33:05

Mary
Sock Enthusiast
From: Canada
Registered: 2004-06-27
Posts: 6,235

Re: [plugin] [ORPHAN] etz_crumbs

Works, but additionally causes an error message if you’re running with full error reporting. :) I’ve just posted the updated versions. :)


My email address has changed recently. If you need to contact me, use the forum contact form.

Offline

#5 2005-05-15 20:38:40

Etz Haim
Plugin Author
From: Karlstad, Sweden
Registered: 2005-01-24
Posts: 262
Website

Re: [plugin] [ORPHAN] etz_crumbs

Plugin updated (v0.2) to support nested categories.

Version 0.2 (and above) demo

Last edited by Etz Haim (2006-01-14 23:11:37)

Offline

#6 2005-05-16 08:45:23

davidm
Member
From: Paris, France
Registered: 2004-04-27
Posts: 719

Re: [plugin] [ORPHAN] etz_crumbs

I loved tcm_crumbs, and will definitely use this variant !
Another cool plugin, Etz :-))


.: Retired :.

Offline

#7 2005-05-19 17:19:01

Etz Haim
Plugin Author
From: Karlstad, Sweden
Registered: 2005-01-24
Posts: 262
Website

Re: [plugin] [ORPHAN] etz_crumbs

News: On the changeset 373 log, kusor reports:

Display section/category titles on public site pages instead of names.
Populate categories DB title fields on _update.php.
Get title displayed trees for categories.
(Thanks osei; this is your patch with steroids).

Since When this kind of functionality has become built-in, etz_crumbs will soon lose the upm_section_title and upm_category_title dependencies.

Last edited by Etz Haim (2005-05-19 20:24:46)

Offline

#8 2005-05-24 16:07:18

Alexsis
New Member
From: Russia
Registered: 2005-03-13
Posts: 5

Re: [plugin] [ORPHAN] etz_crumbs

Etz Haim:
how work your plugin whith russian? how i can use a URL-friendly category/section name and a title in russian?
ith example pls.

Last edited by Alexsis (2005-05-24 16:09:37)

Offline

#9 2005-06-04 17:09:23

soulship
Member
From: Always Sunny Charleston
Registered: 2004-04-30
Posts: 669
Website

Re: [plugin] [ORPHAN] etz_crumbs

Good stuff Etz,

I finally got around to using it. I am using

&raquo

&#187

as dividers, I dont guess there’s any way on using a bullet is there?

Thanks!

Offline

#10 2005-06-04 17:31:11

soulship
Member
From: Always Sunny Charleston
Registered: 2004-04-30
Posts: 669
Website

Re: [plugin] [ORPHAN] etz_crumbs

Hmmm. The plugin is not printing cats for some reason. I get:

<code><a href=”/”>home</a> &#187 <a href=”/print/”></a> &#187 <a href=”/print/?c=Pricing”></a> &#187 Full Color Booklets 5-1/2 × 8-1/2</code>
<code><div class=“post”><h1><div class=“perm”><a href=“http://domain.com/Print/26/full-color-booklets-5-12-x-8-12-2” >blah</a></div></h1></code>

I am using spc_section-alias, to give nice & long names to some sections, I am assuming this may be the problem?

Last edited by soulship (2005-06-04 17:32:34)

Offline

Board footer

Powered by FluxBB