Textpattern Forum

You are not logged in. Register | Login | Help

#271 2008-07-09 06:52:00

mrdale
Moderator
From: Walla Walla
Registered: 2004-11-19
Posts: 2,059
Website

Re: [Archived] stw_category_tree

damienbuckley wrote:

That is bloody genius – just saved my butt big-time – thanks.

np, pop over for morning-tea at my parent’s place in Surfer’s mKay?

Offline

#272 2008-11-08 01:06:47

kvnmcwebn
Member
From: Ireland
Registered: 2007-01-27
Posts: 724
Website

Re: [Archived] stw_category_tree

Hi,
I dont understand the localized=“y” property but i think its my only hope.
Basically I need to exclude specific categories from lists of image categories.
But heres the part i dont understand about the localized property:
how are these categories assigned to a section?
It must be so simple…
heres the link:
example

heres the code:
<txp:if_category> <p class="path">You are here: <a href="../">Home</a> &gt; <txp:section link="1" Title="1"/> &gt; <txp:bos_image_category link="1" title="1"/></p> <txp:bos_image_index wraptag="ul" break="li"/> <div class="gall"> <txp:bos_image_display capt="1" wrap_capt="div" capt_label="Note:"/> </div> <txp:else /> <p> Select a Photo Gallery </p> <div id="nav"> <txp:stw_category_tree section="gallery" type="image" cssid="cat" onclass="active" localized="y" /> </div> </txp:if_category>

Last edited by kvnmcwebn (2008-11-08 01:08:19)


its a bad hen that wont scratch itself.
photogallery

Offline

#273 2009-06-03 08:36:00

midmood
Member
From: Rome, Italy
Registered: 2007-07-20
Posts: 68
Website

Re: [Archived] stw_category_tree

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

Offline

#274 2009-06-03 09:02:13

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
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

#275 2009-06-03 09:23:24

midmood
Member
From: Rome, Italy
Registered: 2007-07-20
Posts: 68
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

#276 2009-06-03 09:47:59

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
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

#277 2009-06-03 11:14:01

midmood
Member
From: Rome, Italy
Registered: 2007-07-20
Posts: 68
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

#278 2009-06-03 11:42:18

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
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

#279 2009-06-03 14:31:33

midmood
Member
From: Rome, Italy
Registered: 2007-07-20
Posts: 68
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

#280 2009-06-03 16:06:49

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
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

Board footer

Powered by FluxBB