Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

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

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
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

#281 2009-06-03 16:18:50

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

#282 2009-06-04 13:13:24

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

#283 2009-07-13 04:06:25

mericson
Member
Registered: 2004-05-24
Posts: 137
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

#284 2009-07-26 22:40:14

photonomad
Member
Registered: 2005-09-10
Posts: 290
Website

Re: [Archived] stw_category_tree

I am using this code to output a menu that lists articles by category. I know that, upon installation, stw_category_tree created a field in the database so that the categories can be ordered. I’m curious if it is possible to use something like <txp:article_custom sort=“field(’ ‘, …) to list the articles by category in the stw_category order? I got the idea that it might be possible by reading this thread.

[Edit] Ok… I think what I really need is a different plugin – a “companion” plugin for stw_category_tree. It would function just like txp:article_custom, but allow a way to sort articles by Category1 or Category2 using the order set by stw_category_tree in the Menu Control extension tab. I am not a real programmer, so I have no clue how article_custom would be able to access the idx field in the txp_category table. I’ll post this in the plugin request area, but thought I’d update this post in case anyone else is interested.

SOLUTION:
jsoo helped me use the smd_query plugin and the article_custom tag to sort articles with the stw_category_tree menu order:

<txp:article_custom sort='field(ID, <txp:smd_query query="select textpattern.ID from textpattern left join txp_category on category1 = name order by idx" break=",">{ID}</txp:smd_query>)' />

Last edited by photonomad (2009-07-28 03:19:26)

Offline

#285 2009-08-14 22:10:55

photonomad
Member
Registered: 2005-09-10
Posts: 290
Website

Re: [Archived] stw_category_tree

I’m having the same problem that mericson stated on the previous page

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

But I get:
http://www.mysite.org/category/baz/

section/category links do not work

lee also pointed out the problem here

Paul said it was fixed here and offered a download with the fix.

There is mention of version 1a.2 but the links lead to a page with only downloads for v1.1

Can anyone out there point me to version 1a.2? Or, does anyone know of a fix for the section/category link problem? Thanks!

Last edited by photonomad (2009-08-14 22:24:17)

Offline

Board footer

Powered by FluxBB