Textpattern Forum

You are not logged in. Register | Login | Help

#31 2005-09-27 14:20:40

Niconemo
Member
From: Rhône-Alpes, France
Registered: 2005-04-18
Posts: 557

Re: [plugin] [ORPHAN] etz_crumbs

> Etz Haim wrote:

> To be honest, I’m using mine outside of the article form and inside a page template using some Textpattern trickery. I’m currently thinking of ways to make it work everywhere without requiring voodoo knowledge. ;) In the mean time, you can place your crumbs anywhere in your page using fixed CSS positioning.

It was not too hard to do what I wanted in the site that needed the plugin : the breadcrumb was exactly on the top of the articles so I could, with some condiationals, display it either in the page template, either in th article form… Thank you. I’ll remember the CSS positionning option for another site.


Nico

Offline

#32 2005-09-27 15:32:44

jstubbs
Moderator
From: Hong Kong
Registered: 2004-12-13
Posts: 2,149
Website

Re: [plugin] [ORPHAN] etz_crumbs

How do you style the breadcrumbs? I don’t see any option for that.


TXP Tips | @txptips | Me | @jonathanstubbs | Github

TXP Builders – finely-crafted code, design and txp @txpbuilders

Offline

#33 2005-09-27 16:01:02

Niconemo
Member
From: Rhône-Alpes, France
Registered: 2005-04-18
Posts: 557

Re: [plugin] [ORPHAN] etz_crumbs

It’s a CSS matter…
You can for example wrap the tag in a <div class="breadcrumb"> and define a .breadcrumb{} class in the CSS

Last edited by Niconemo (2005-09-27 16:01:49)


Nico

Offline

#34 2005-09-27 17:41:32

jstubbs
Moderator
From: Hong Kong
Registered: 2004-12-13
Posts: 2,149
Website

Re: [plugin] [ORPHAN] etz_crumbs

Ok, so is it better to place the tag within the page or a form? I found the same issue as Niconemo – the “default” showed up on the front page. You could say we don’t need breadcrumbs on the front page but its better to present it on all pages so users get familiar with it.

To put it on the front page would require making a new form/s instead of using the default article form. The other option is to place it in the page itself, but…..

1. If in the page do we need to add anything apart from the tag?

I will wrap the tag in a div for styling – thanks for the suggestion.


TXP Tips | @txptips | Me | @jonathanstubbs | Github

TXP Builders – finely-crafted code, design and txp @txpbuilders

Offline

#35 2005-09-27 23:40:39

jstubbs
Moderator
From: Hong Kong
Registered: 2004-12-13
Posts: 2,149
Website

Re: [plugin] [ORPHAN] etz_crumbs

OK, have experimented a little and find if I add the tag into the page it makes more sense, due to the fact that I have several forms to output articlle lists and single forms etc, not to mention that who wants to see “site > default” on the front page! (thats if the txp:etz_crumbs is in the default form)

However, if the tag is in the page, then the article title does not show up in the breadcrumb. Maybe I missed something here, but its 1.30am and its hard at this time :-)


TXP Tips | @txptips | Me | @jonathanstubbs | Github

TXP Builders – finely-crafted code, design and txp @txpbuilders

Offline

#36 2005-09-28 16:08:15

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

Re: [plugin] [ORPHAN] etz_crumbs

As of revision 965 kusor has included my patch to make the built-in <txp:breadcrumb /> title aware. All you have to do is specify <txp:breadcrumb title="1" /> and voila, the titles show up instead of the names. So, depending on your needs, you may not need etz_crumbs anymore.

This doesn’t mean that this plugin is or will become deprecated; it has a different behaviour from the built-in tag, plus it includes some other features, like support for nested categories. I still need etz_crumbs for my site(s), so I will continue supporting it.

Offline

#37 2005-09-28 17:37:43

jstubbs
Moderator
From: Hong Kong
Registered: 2004-12-13
Posts: 2,149
Website

Re: [plugin] [ORPHAN] etz_crumbs

OK. Does that mean we should download the latest revision on your linked page?

I am still working with etz_crumbs but would like to know how to use it in the page. It works if placed in a page but wil only display the site name > section. If inside an article in the “about” section, only the section displays. I would like it to display the article title too.

I know it works if in a form, but as mentioned earlier, I have so many forms that do different things it won’t work for me that way. For example, some articles in 2 sections are in list form. When I add etz_crumbs to that form, I get several breadcrumbs!

There may be a way around this with forms, but to me, placing etz_crumbs in the page makes more sense….


TXP Tips | @txptips | Me | @jonathanstubbs | Github

TXP Builders – finely-crafted code, design and txp @txpbuilders

Offline

#38 2005-09-28 21:19:38

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

Re: [plugin] [ORPHAN] etz_crumbs

jstubbs, both Niconemo and I have suggested a couple of ways (textpattern conditionals, fixed CSS positioning) to get the job done easily. You may want to learn how to use these techniques, but that’s beyond the scope of this thread. This thread deals exclusively with etz_crumbs and its support.

Please study this carefully, spend some time here, try to learn something about CSS on your own, and if you still have any questions, direct them to the more appropriate forums (i.e. “How do I…”). You are welcome to post here too for anything specific to this plugin.

Last edited by Etz Haim (2005-09-28 21:24:19)

Offline

#39 2005-10-01 04:56:45

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

Re: [plugin] [ORPHAN] etz_crumbs

OK. Due to popular demand, version .4 is out to fulfill some requests expressed in this thread. Changes include:

  • Works in article forms OR page templates ;) – no voodoo knowledge required,
  • doesn’t display anything in the frontpage,
  • where “yes” and “no” were used as attributes, forget them, use 1 and 0 instead, and
  • there’s the noexpand = "1" attribute too.

I hope you enjoy it!

Last edited by Etz Haim (2005-10-01 04:57:56)

Offline

#40 2005-10-04 11:16:50

grad
Member
From: Poznan, Poland
Registered: 2005-10-04
Posts: 24

Re: [plugin] [ORPHAN] etz_crumbs

Here are some requests for version 0.5 :)

  • The link to home (<code>showhome=“1”</code>) should point to URL set in site preferences (<code><txp:site_url /></code>) and all next links should be relative to this one. In 0.4 it points to root (<code><a href=”/”></code>) which is not always the case (e.g. installation in a subdirectory).
  • With <code>showhome=“0”</code> there should be no separator. In 0.4 it produces this: “> section”.
  • An option to switch off the link for the last crumb would be useful. In other words, while all crumbs are links the last one (the active item) would be just text.
  • Add option to add title attribute to links (<code><a … title=“title text”></code>). The title of each link should be the title for that item (section/category) with custom prefix (e.g. “Go to…”). It would produce e.g. <code><a … title=“Go to: section name”></code>

Thanks :)

Last edited by grad (2005-10-04 11:22:55)

Offline

Board footer

Powered by FluxBB