Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#133 2005-11-06 15:43:28

nighthawk
Archived Plugin Author
From: Frankfurt, Germany
Registered: 2005-11-05
Posts: 87
Website

Re: [Archived] stw_category_tree

Hi,

the problem I have with your plugin is that it outputs the internal category names (no whitespaces, etc. – e.g. “go-here-now”), but not the names intended for visitors (e.g. “go here now”). Can you help?

Thanks,

- Björn

Offline

#134 2006-01-05 13:28:13

jameslomax
Member
From: UK
Registered: 2005-05-09
Posts: 448
Website

Re: [Archived] stw_category_tree

What code do you modify to enable an unlimited, or large size output, covering all your posts? I hope that makes sense/I understand this correctly….if not, this is what I mean: I’ve got a menu with category A, where there might be 30 or 40 articles, but currently – somehwere – the plug in is limiting the menu-display to a maximum of ten.

Offline

#135 2006-01-05 17:23:01

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

Re: [Archived] stw_category_tree

james, this plugin doesn’t output articles only categories. I assume you click on category A, which stw_category_tree outputs, then you are taken to the category page and txp:article or some other article listing plugin takes over. If it is txp:article you can add limit=“999” or whatever number to it, the default is 10.

Offline

#136 2006-01-05 22:48:15

jameslomax
Member
From: UK
Registered: 2005-05-09
Posts: 448
Website

Re: [Archived] stw_category_tree

OK thanks fly…worked it out/got some help.

Offline

#137 2006-01-06 18:57:07

jameslomax
Member
From: UK
Registered: 2005-05-09
Posts: 448
Website

Re: [Archived] stw_category_tree

OK here’s another one…..by default, the category menu displays the number of article entries alongside the title. So for example, if I have a category called ABC, and I’ve posted 10 articles in that category, what you see on th epage is ABC (10)

How can I make the ‘10’ invisible?
Thanks

Offline

#138 2006-01-06 19:21:46

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

Re: [Archived] stw_category_tree

try count=“false”

Offline

#139 2006-01-07 00:03:37

jameslomax
Member
From: UK
Registered: 2005-05-09
Posts: 448
Website

Re: [Archived] stw_category_tree

OK thanks….I just tried that but it must have been the wrong place for it, and it created errors. Its not clear where exactly you edit the plug in code.
Any ideas what line its on?

Offline

#140 2006-01-09 03:16:03

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

Re: [Archived] stw_category_tree

You don’t put it in the actual plug in code. You use it as an attribute to the stw_category_tree tag. So you would use <txp:stw_category_tree count="false" />, plus any other attributes, in your page template. Look at the help file for the plugin to see what attributes you can use.

Offline

#141 2006-02-09 16:20:18

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

Re: [Archived] stw_category_tree

Santheo,

Do you think you could add the attributes label and labeltag? That way I could have a heading for my list and it would show or not show based on killempties.

Offline

#142 2006-02-09 17:25:25

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: [Archived] stw_category_tree

Santheo…

could you add clean url support? just want to output http://tld.com/section/category and let sgb handle the rest

UPDATE The following altered function works for me;

<code>function stw_cat_link ($cat,$sec,$title) { global $url_mode; $path = hu.”?”; if (!empty($sec) && $sec != ‘default’) { $path = ($GLOBALS[‘permlink_mode’] == ‘messy’) ? $path.“s=”.urlencode($sec).”&” : hu.urlencode($sec).”/”; } return tag(htmlspecialchars($title),‘a’,’ href=”’.$path.urlencode($cat).’”’);
}</code>

Last edited by mrdale (2006-02-09 17:56:43)

Offline

#143 2006-02-14 13:36:11

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,615
GitHub Twitter

Re: [Archived] stw_category_tree

Jeff, what a great plugin!
How can i display only the future articles refers on your category tree ? Is it possible ?
Thanks for your answer.


Patrick.

Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.

Offline

#144 2006-02-14 14:09:48

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

Re: [Archived] stw_category_tree

Pat64, Sandor Weisz (aka Santheo) is the author of this plugin.

This plugin only shows categories not articles so there is no way to show future articles. Try textpatterns built in article tag or article_custom tag with the time attribute.

Offline

Board footer

Powered by FluxBB