Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Archives
  3. » [archived] tcm_crumbs

#25 2004-08-25 05:20:05

tmacwrig
Archived Plugin Author
Registered: 2004-03-06
Posts: 204
Website

Re: [archived] tcm_crumbs

I’m bug-testing the new version right now.

The problem with classes and ids was just about making the code kind of bloated, but I think I’ve mostly eliminated that problem – the new version is shorter than the old.

and about the undefined functions, that’s just a “Notice” – it’s not actually an error, just a style call – and if it’s talking about defining vars, well… noone defines vars in php…

Offline

#26 2004-08-26 20:13:54

tmacwrig
Archived Plugin Author
Registered: 2004-03-06
Posts: 204
Website

Re: [archived] tcm_crumbs

don’t hold your breath. I just copied and pasted the wrong code into the wrong window, and it seems that just deleted the plugin. And I can’t find my backup.

YU*)(%#*()#*()%#*()%*#()%*()&*%(&

Offline

#27 2004-08-27 01:48:15

Jennifer
Member
From: Michigan
Registered: 2004-02-25
Posts: 74
Website

Re: [archived] tcm_crumbs

Oh, man. :( I’m so sorry.

Offline

#28 2004-09-27 21:14:56

Andrew
Plugin Author
Registered: 2004-02-23
Posts: 730

Re: [archived] tcm_crumbs

tmacwrig wrote:And I can’t find my backup.

And that is why we need to be able to export raw plugins from within textpattern admin. If you get back on the wagon w/ this one, semantic markup is nice; can you modify this to give an option to output a <code>&lt;ul&gt;</code>?

Last edited by compooter (2004-09-27 21:18:05)

Offline

#29 2004-09-29 17:46:47

Andrew
Plugin Author
Registered: 2004-02-23
Posts: 730

Re: [archived] tcm_crumbs

Hmm… for some reason it can’t access <code>$thisarticle</code>, thus making it unable to output/check categories.

Offline

#30 2004-09-29 21:27:08

tmacwrig
Archived Plugin Author
Registered: 2004-03-06
Posts: 204
Website

Re: [archived] tcm_crumbs

you put in the article form, right? and are you using article, or article_custom or one of the alternatives?

Offline

#31 2004-09-29 21:50:42

Andrew
Plugin Author
Registered: 2004-02-23
Posts: 730

Re: [archived] tcm_crumbs

[ legend: page | form ]

<br>
Page hierarchy: default > body > breadcrumbs

Page: default

Contains: <code><txp:output_form form=“body” /></code>

Form: body

Type: article

Contains: <code><txp:output_form form=“breadcrumbs” /></code>

Form: breadcrumbs

Type: article

Contains:

<pre> <p id=“breadcrumbs”> <txp:tcm_crumbs mode=“scc” notitle=“0” hometitle=“Home” /> </p>
</pre>

I’m guessing I have something a little confused still as far as Textpattern goes, in regards to pages/forms & their relationship to articles. But perhaps not & its just a bug. Either way, this is how it’s being spit out. Articles are being pulled in via the “body” form using txp:article.

Last edited by compooter (2004-09-29 21:57:44)

Offline

#32 2004-10-04 18:28:18

wilshire
Plugin Author
From: Akron, Ohio
Registered: 2004-08-27
Posts: 656
Website

Re: [archived] tcm_crumbs

I can’t seem to get this working properly. Here’s what I’ve got:
<code>
<txp:tcm_crumbs mode=“scc” notitle=“0” replacements=“tech:Technology;ops:Operations” />
</code>
but my crumb just shows Home >> ops or Home >> tech

I also don’t get any category output. Any ideas? Thanks for the help.

Last edited by wilshire (2004-10-04 18:30:18)

Offline

#33 2004-10-04 18:32:48

wilshire
Plugin Author
From: Akron, Ohio
Registered: 2004-08-27
Posts: 656
Website

Re: [archived] tcm_crumbs

well, looks like posting to the forum helped to solve my problem without evening getting a response.

seems as though by doing a c&p I ended up with smart quotes in my form that caused the tag to break. when i then copied my tag code into the forum I ended up with some funky ascii codes in my post and then the lightbulb came on.

so much for c&p saving me time…

Offline

#34 2004-10-04 23:33:52

Andrew
Plugin Author
Registered: 2004-02-23
Posts: 730

Re: [archived] tcm_crumbs

Is there any reason why tcm_crumbs wouldn’t be outputting crumbs when browsing a category from the root? i.e. http://domain.com/?c=category

I’m using mode=“scc”

Last edited by compooter (2004-10-05 16:30:47)

Offline

#35 2004-10-05 17:53:32

Andrew
Plugin Author
Registered: 2004-02-23
Posts: 730

Re: [archived] tcm_crumbs

Ok I’m an idiot. Nevermind what I wrote before regarding categories.

My question now is if I’m displaying breadcrumbs on the homepage — conditionally only if there is a category present — currently it shows this:

Home &raquo; default &raquo; CSS

How to avoid it doubling up on the home section & remove the ‘default’?

Offline

#36 2004-10-05 18:01:26

Andrew
Plugin Author
Registered: 2004-02-23
Posts: 730

Re: [archived] tcm_crumbs

Ok here are the changes I made to make it not display ‘default’ and not display anything in the event that you’re viewing the homepage without any category selected (resulting in only a ‘Home’ link). Pretext is being used because I’m also having troubles with $thisarticle.

line ~50

<pre>if ($showhome=="yes" && !($pretext['s']=='default' && empty($_GET['c']))) {</pre>

line ~60

<pre>if ( ($mode=="s" || $mode=="sc" || $mode=="scc") && $pretext['s']!="default") {</pre>

Last edited by compooter (2004-10-05 18:23:58)

Offline

  1. Index
  2. » Archives
  3. » [archived] tcm_crumbs

Board footer

Powered by FluxBB