2009-06-03 09:02:13

the_ghost
Plugin Author
pi
Real name: Victor
From: Minsk, The Republic of Belarus
Known languages: Belorussian, English, Russian, German, Italian, France, Turkish
Website

Re: [Archived] stw_category_tree

midmood wrote:

Hi all,
Is there a way to exclude certain categories from the list?
I tried the Paul_U’s version of the plugin (the one merged with wow_menu), but it’s not working

AFAIK plugin has attr exclude, which allows to exclude certain categories. Did you look through help?

Last edited by the_ghost (2009-06-03 09:07:42)


Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

 

2009-06-03 09:23:24

midmood
Member
delta
Real name: Simone
From: Rome, Italy
Known languages: italian, english, french
Website

Re: [Archived] stw_category_tree

The help page don’t mention any “exclude” tag.
Anyway, I assumed the plugin accepted the same attributes as category_list do, so i tried to put the exclude clause in the code.
It didn’t worked, so I ask.

Can you imagine why i failed?

Offline

 

2009-06-03 09:47:59

the_ghost
Plugin Author
pi
Real name: Victor
From: Minsk, The Republic of Belarus
Known languages: Belorussian, English, Russian, German, Italian, France, Turkish
Website

Re: [Archived] stw_category_tree

Just rewised help/sources – there is attr hide, which contains ids of categories you don’t want to show. Ids could be obtained in extension tab. Look through help again. Here is link to stw_category_tree 1.1 version which has this attr 100% (exported plugin from my own site)


Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

 

2009-06-03 11:14:01

midmood
Member
delta
Real name: Simone
From: Rome, Italy
Known languages: italian, english, french
Website

Re: [Archived] stw_category_tree

Thank you for your attention, the_ghost :-)

I disabled the plugin, deleted it, then I installed the 1.1 version you linked me (Already installed the “official” one, linked in this thread.

this is the code I use to show the category tree:
<txp:stw_category_tree hide="78,79,80,81,82,83,84,85,86,87,88" section="negozio" count="()!" />

nothing happens… (headache :-)

EDIT: the plugin exclude only some of the categories i choose

Last edited by midmood (2009-06-03 11:17:08)

Offline

 

2009-06-03 11:42:18

the_ghost
Plugin Author
pi
Real name: Victor
From: Minsk, The Republic of Belarus
Known languages: Belorussian, English, Russian, German, Italian, France, Turkish
Website

Re: [Archived] stw_category_tree

Just tried at my test host. This attr really works with strange bugs – in some cases it hides ids, in some – not.


Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

 

2009-06-03 14:31:33

midmood
Member
delta
Real name: Simone
From: Rome, Italy
Known languages: italian, english, french
Website

Re: [Archived] stw_category_tree

Could be a conflict witha previous “wow_menu” installation which altered the database?

Furthermore I have some more debugging:

If you go here: www.violetab.com, you can see a ghost category tree (note that the actual category tree is on the left menu, scrolling.

I solved this problem setting pre {display:none} in my stylesheet, because the list is made of pre.

It’s just a workaroud, because I can still see the unwanted list flashing on the page during the loading, until the css hide it

Bye, thank you for your help
Simone

Last edited by midmood (2009-06-03 14:33:06)

Offline

 

2009-06-03 16:06:49

the_ghost
Plugin Author
pi
Real name: Victor
From: Minsk, The Republic of Belarus
Known languages: Belorussian, English, Russian, German, Italian, France, Turkish
Website

Re: [Archived] stw_category_tree

Could be a conflict witha previous “wow_menu” installation which altered the database?

I doubt about this. IIRC the only thing added to db is sorting column, which shoud not influence excluding categories. This plugin requres more depthier revision :)


Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

 

2009-06-03 16:18:50

midmood
Member
delta
Real name: Simone
From: Rome, Italy
Known languages: italian, english, french
Website

Re: [Archived] stw_category_tree

I see.
For the moment I grouped all the unwanted category under a parent category and excluded that one… fortunately it worked.

Is there a bug free release planned? because the plugin is really useful!

Offline

 

2009-06-04 13:13:24

midmood
Member
delta
Real name: Simone
From: Rome, Italy
Known languages: italian, english, french
Website

Re: [Archived] stw_category_tree

I found another strange behaviour in the version 1.1 of the plugin.
This is really important, so I hope anyone can help me.

I specify a default section to redirect all my results and the result is nothing, no output.
So i didn’t specify any section, to target to the current section, but nothing at all again.

The problem is that the plugin seems to rewrite my url like so: http://www.example.com/category/name-of-the-category/, when should be: http://www.example.com/section/?c=name-of-the-category

can you help me? I cant’ find the form which drive that url schema…

Simone

Offline

 

2009-07-13 04:06:25

mericson
Member
zêta
Real name: Mark
Website

Re: [Archived] stw_category_tree

I’m using stw_category_tree with textpattern 4.0.8. It doesn’t seem to be able to properly create section/category links.

I have a category foo with a child baz, also a section called bar.

This tag:

<txp:stw_category_tree start=“foo” section=“bar” wraptag=“ul” labeltag=“li” />

Because I specified the section, expect stw_category_tree to generate a link to this URL:

http://www.mysite.org/bar/?c=baz

instead it generates a link to the following URL, which is wrong.

http://www.mysite.org/category/baz/

Offline

 

Powered by FluxBB