Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#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
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
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 » default » 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
#37 2004-10-08 08:04:55
- davidm
- Member

- From: Paris, France
- Registered: 2004-04-27
- Posts: 719
Re: [archived] tcm_crumbs
Thank you for this great plugin !
Works like a charm, and the way you customized it is user-oriented… what more could we ask ?
THX !
I have used it for this site
Last edited by davidm (2004-10-12 00:21:08)
.: Retired :.
Offline
#38 2004-10-10 13:39:42
- papalozarou
- Member
- Registered: 2004-07-05
- Posts: 45
Re: [archived] tcm_crumbs
I have managed to get it to output the links in enclosed in lis by altering the code slightly:
<pre>
$data .= “<li><a href=\”“.$pretext[‘pfr’].”?c=”.$thisarticle[‘category2’].”\”>”;
$data .= $thisarticle[‘category2’];
$data .= “</a></li>”;
</pre>
But what i need is to be able to move the separator character to within the preceeding li item, but not as a link:
<pre>
<li><a href=”/alinkhere”>Section name</a> » </li>
</pre>
Anyone know how to do that?
Last edited by papalozarou (2004-10-10 13:40:27)
Offline
Re: [archived] tcm_crumbs
Okay, finally, there’s a new version to this. It’s here, but keep in mind that it’s an alpha release – a rewrite from the ground up with flexibilityX2, but there might be some bugs floating around.
Directions are in the plugin.
Offline
#40 2004-10-11 06:41:23
- aesop1
- Archived Plugin Author
- Registered: 2004-09-19
- Posts: 142
Re: [archived] tcm_crumbs
FYI Tom:
After installing your plugin (running on IIS, WinXp, PHP 5.01 CGI), I got this error:
Parse error: syntax error, unexpected ‘"’ in c:\Inetpub\wwwroot\textpattern\textpattern\publish.php(769) : eval()’d code on line 1982
Of course, this might be just particular to my system, but I thought you might like to know.
Offline
Re: [archived] tcm_crumbs
aesop – that should be fixed, it was probably due to some careless f+replace with single quotes.
Offline
#42 2004-10-12 15:34:14
- aesop1
- Archived Plugin Author
- Registered: 2004-09-19
- Posts: 142
Re: [archived] tcm_crumbs
Cool. Great plugin—I’ll install it and see if I can finally replace my little hack job.
Offline
Re: [archived] tcm_crumbs
Um, just wondering if there is any reason this plug-in would not work if droped into a form OR hardcoded into a page????
Yes, it is installed and turned on, but it out puts absolutely nothing….
Ugh.
To even the least of these…
Offline
Re: [archived] tcm_crumbs
and you’ve followed the instructions on how to format the output?
Offline