Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

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

#76 2005-02-19 19:39:20

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

Re: [archived] tcm_crumbs

If only the two of you cared to read what I’ve written above.

Offline

#77 2005-02-19 20:26:00

tee
New Member
From: Norway
Registered: 2004-09-19
Posts: 9

Re: [archived] tcm_crumbs

> Etz Haim wrote:

> If only the two of you cared to read what I’ve written above.

I read what you wrote. Maybe I’m just stupid, but I didn’t get it to work.

I want the crumbs to display like this:

home > section > category > article title

All I got was:

home > section

when using format “scc”.


Proud VCII

Offline

#78 2005-02-19 21:12:04

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

Re: [archived] tcm_crumbs

You can’t put <txp:tcm_ crumbs /> before <txp:article /> or its variants (article_custom, chh_article_custom) in your pages. Do it the other way and it will work.

Offline

#79 2005-02-19 22:23:44

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

Re: [archived] tcm_crumbs

kirk & tee – you are using the plugin within the article form, right?

Offline

#80 2005-02-19 22:47:29

ubernostrum
Member
From: Lawrence, KS
Registered: 2004-05-05
Posts: 238
Website

Re: [archived] tcm_crumbs

Does it have to be one of those specific forms, or can it be any form with type ‘article’?

I’m curious just because I’m thinking of trying to get titles working in the crumbs on my site, and there’s no way I could fit it into the page’s main article tag right now.


You cooin’ with my bird?

Offline

#81 2005-02-19 22:54:45

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

Re: [archived] tcm_crumbs

it needs to be in the article form (at least for now) because the $thisarticle variable only exists within the article form.

If you are going to use it on an individual article form, you can avoid this formatting problem pretty simply just by making a new article form with just the crumbs in it, and having two txp_article tags on the page. the one with the crumbs will just use the same $_GET values as the other one, so it will work with the article title.

Offline

#82 2005-02-19 23:33:24

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

Re: [archived] tcm_crumbs

tmacwrig: I disagree. You may as well put it after the article body in your page, as long as it is placed after txp:article or the relevant, so that $thisarticle has already been loaded. I’m doing this and it works just fine.

Offline

#83 2005-02-20 10:09:35

kirk
New Member
From: LA
Registered: 2005-01-20
Posts: 8

Re: [archived] tcm_crumbs

I did what Etz Haim said and it works. The problem is that I’m gonna have to figure out a way to put the crumbs on top of the page while having the tag itself go after the article tag. That’ll be hard.

Any suggestions?

Thanks,
Kirk

Offline

#84 2005-02-20 12:17:56

ubernostrum
Member
From: Lawrence, KS
Registered: 2004-05-05
Posts: 238
Website

Re: [archived] tcm_crumbs

Why not try out the new breadcrumb functionality in RC3 and ee how that goes?


You cooin’ with my bird?

Offline

#85 2005-02-20 13:38:20

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

Re: [archived] tcm_crumbs

Kirk: Already said: CSS absolute positioning.

Offline

#86 2005-02-20 17:21:10

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

Re: [archived] tcm_crumbs

Etz you are right about putting it after the article tag… for some reason I thought $thisarticle was unset after the article was displayed.

kirk- you can just do the two-article-form trick if you’re doing that on individual article pages.

Offline

#87 2005-02-20 19:06:27

tee
New Member
From: Norway
Registered: 2004-09-19
Posts: 9

Re: [archived] tcm_crumbs

I followed the advice and it works now. Thanks!

Tips to the next version:
- better documentation.
- lots of examples is nice.
- some users aren’t familiar with all the “tricks of the trade”, please have them in mind as well. it’s easy to be informative.

Thanks for an exellent plugin!


Proud VCII

Offline

#88 2005-03-08 02:43:39

kirk
New Member
From: LA
Registered: 2005-01-20
Posts: 8

Re: [archived] tcm_crumbs

I tried putting the tcm tag in an article tag.
The problem is that in addition to the crumbs, it also returns the comments and the comment box for the particular article.

Offline

#89 2005-03-08 03:00:55

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

Re: [archived] tcm_crumbs

arg, i forgot about that problem back when i was doing that with my photoblog. i really don’t have much time right now (about 6 hours of homework… in high school? wtf?), but the solution probably lies in writing a quick function that emulates the article tag but removes the part which says

<pre> if ($preview && $parentid) { $article = discuss($parentid).$article; }

if (($Annotate or $com_count) && !$preview) { if($use_comments) { $article .= discuss($ID); } }
</pre>

Offline

#90 2005-03-12 10:46:36

ss
Member
Registered: 2004-03-31
Posts: 20

Re: [archived] tcm_crumbs

tmacwrig – thanks for this plugin.

Etz Haim – thanks for making sense out of it for me ;-)

Offline

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

Board footer

Powered by FluxBB