Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

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

#16 2004-08-16 18:07:04

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

Re: [archived] tcm_crumbs

that wouldn’t be a problem to build it in, but on what basis would you choose titles? would they be like “Return to Home”, “View Category”, or “View Section”?

Offline

#17 2004-08-16 18:28:36

obeewan
Archived Plugin Author
From: Stockholm, Sweden
Registered: 2004-08-12
Posts: 319
Website

Re: [archived] tcm_crumbs

the title attribute is always nice to have as an option whatever the plugin outputs .. same as the class and id attribute.

if i, not that i think my knowledge in php is good enough, would do a plugin it would have theese things as standard without even thinking ..

maybe for all plugin writers to consider?


Plugins: ob1_advanced_search 1.032b, ob1_search_score 1.0, ob1_pagination 2.5, ob1_title 4.1, ob1_modified 2.1

“Let your plans be dark and as impenetratable as night, and when you move, fall like a thunderbolt.”
— Sun Tzu

Offline

#18 2004-08-16 19:20:06

jasidog
Member
From: Scotland
Registered: 2004-05-17
Posts: 13
Website

Re: [archived] tcm_crumbs

That would be magic if you were willing to incorperate it tmacwrig. I actually meant to see if anyone had a pointer as to how i would include it myself. Didn’t feel i had the right to ask for additions to the plugin.

Yes those titles you mentined would be great.

The real reason i ask isn’t just because it’s nice though, it’s needed for accesability and those that want their pages to validate.

As to ID and class attributes they’re handy tools for sure but not necissary to my mind

Offline

#19 2004-08-23 21:58:06

nednieuws
Member
From: The Home of Heineken
Registered: 2004-08-21
Posts: 14

Re: [archived] tcm_crumbs

I can’t for the life of me figure out where the plug-in is used on the Demo site. Hints anyone?


Regards, Charles.

Offline

#20 2004-08-23 22:13:42

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

Re: [archived] tcm_crumbs

-nednieuws – it isn’t used on that site anymore, I guess I just didn’t integrate it among all of the changes. I’ll try to get the titles done later tonight if I can.

-jasidog – are titles required for Bobby or WCAG or something? I’ve never had a problem.

Offline

#21 2004-08-24 03:16:56

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

Re: [archived] tcm_crumbs

Where do post titles come in? I love this plugin, but I just can’t seem to understand it.

It displays template names, and that’s all. I don’t understand how to get page titles, or category names, or anything.

I know I should understand this, but I just can’t seem to get it.

Offline

#22 2004-08-24 03:36:14

Jeremie
Member
From: Provence, France
Registered: 2004-08-11
Posts: 1,578
Website

Re: [archived] tcm_crumbs

The variables are undefined. When you activate error_reporting, you see them all, and PHP complaining about it:

<code>Notice: Undefined variable: mode in /home/ludys/www/textpattern_g119/textpattern/publish.php(765) : eval()’d code on line 697

Notice: Undefined variable: showhome in /home/ludys/www/textpattern_g119/textpattern/publish.php(765) : eval()’d code on line 698

Notice: Undefined variable: separator in /home/ludys/www/textpattern_g119/textpattern/publish.php(765) : eval()’d code on line 699

Notice: Undefined variable: combine in /home/ludys/www/textpattern_g119/textpattern/publish.php(765) : eval()’d code on line 700

Notice: Undefined variable: replacements in /home/ludys/www/textpattern_g119/textpattern/publish.php(765) : eval()’d code on line 704

Notice: Undefined variable: data in /home/ludys/www/textpattern_g119/textpattern/publish.php(765) : eval()’d code on line 722

Notice: Undefined variable: hometitle in /home/ludys/www/textpattern_g119/textpattern/publish.php(765) : eval()’d code on line 723

Notice: Undefined variable: replacements in /home/ludys/www/textpattern_g119/textpattern/publish.php(765) : eval()’d code on line 737

Notice: Undefined variable: notitle in /home/ludys/www/textpattern_g119/textpattern/publish.php(765) : eval()’d code on line 764
</code>

Last edited by Jeremie (2004-08-24 03:36:29)

Offline

#23 2004-08-24 05:38:53

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

Re: [archived] tcm_crumbs

-Jeremie – don’t worry about that, those variables shouldn’t be defined if you don’t include them in the tag. it tests for that stuff if it’s working correctly.

-everyone – I’m rewriting the majority of the code so that it’s shorter and better. Not sure about classes or ids… and is there a textpattern function for generic links? I haven’t found one yet…

Offline

#24 2004-08-24 05:54:09

Jeremie
Member
From: Provence, France
Registered: 2004-08-11
Posts: 1,578
Website

Re: [archived] tcm_crumbs

I’m not worried, but if PHP is complaining something somewhere is wrong :)

About classes and id what’s the issue ? the breadcrumb should have both (attributes classe=”“ and id=”“) to apply to the container html element, a div I think since with MSIE you can’t make that a list and add CSS generated content.

Offline

#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

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

Board footer

Powered by FluxBB