Textpattern CMS support forum

You are not logged in. Register | Login | Help

#21 2005-11-04 15:45:41

maniqui
Moderator
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: glz_crumbs, simple breadcrumbs plugin

Meanwhile, for avoid “bad” values for title attribute in links, I have manually remove titles from the plug-in code.

And a tip for using glz_vars: when you put it at the very top of your page template, put it in the same line as your XML declaration, (if you are using one).

I mean, do this:
<code><txp:glz_vars /><txp:output_form form=“head” /></code>

and not this:
<code><txp:glz_vars />
<txp:output_form form=“head” /></code>

This second one will return the following warning:

“line 2 column 1 – Warning: removing whitespace preceding XML Declaration”

Edit: I see that isnt a requisite to put the glz_vars tag at the very very top of the page. You can use it between your DTD and your < head> tag.

BTW, I have to ask something about this: <blockquote>I know that by spreading vars across multiple plug-ins I made matters more complicated, but imagine glz_vars more of a lib for all glz_ plugins.</blockquote>

What exactly means that? Could it be “dangerous” (for other plug-ins) to spread vars with glz_vars?

Last edited by maniqui (2005-11-04 16:06:14)


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#22 2006-01-09 17:33:58

tinyfly
Member
From: Dallas, Texas
Registered: 2004-05-10
Posts: 462
Website

Re: glz_crumbs, simple breadcrumbs plugin

Can you make an option to show category 2 or not? Something like showcat2=“0” as well as showing the article title also like showarticle=“0”. I would like to be able to turn these off.

Offline

#23 2006-01-10 17:10:41

gerhard
Plugin Author
From: London, UK
Registered: 2005-06-29
Posts: 409
Website

Re: glz_crumbs, simple breadcrumbs plugin

Long time no posts. Sorry guys, have been terribly busy. :sigh:

maniqui
I will have to find some time and go through your ideas. You have some interesting proposals.

Could it be “dangerous” (for other plug-ins) to spread vars with glz_vars?

No, not at all. Just that glz_vars is a set of global variables I find handy to use (e.g. $siteurl instead of $GLOBALS['siteurl'] etc.). If you want to use the variables defined in glz_vars for your plugins or even for the website (e.g. global $siteurl; print $siteurl;), you are more than welcome.

Once again, sorry for taking ages to reply.

tinyfly

glz_crumbs v 0.3.1 :wink:

Offline

#24 2006-01-10 17:16:26

tinyfly
Member
From: Dallas, Texas
Registered: 2004-05-10
Posts: 462
Website

Re: glz_crumbs, simple breadcrumbs plugin

Excellent, Thanks

Offline

Board footer

Powered by FluxBB