Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#196 2007-01-26 17:47:56

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

Re: [Archived] stw_category_tree

show me where and I’ll take a look.

Offline

#197 2007-01-26 18:25:37

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,319

Re: [Archived] stw_category_tree

it’s paedart.de. thanks, dale.
you think it’s a css problem?


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#198 2007-01-26 18:36:37

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,319

Re: [Archived] stw_category_tree

ah, sorry, i’ve forgotten to mention where trhe third level’s hidden. it’s here


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#199 2007-01-26 18:58:59

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

Re: [Archived] stw_category_tree

#sidebar-1 li.aktiv {
list-style:circle inside;
padding-left:0px;
}

#sidebar-1 li.aktiv ul li {
list-style:none; */reset the child LIs*/
padding-left:10px;
}

Offline

#200 2007-01-26 19:09:55

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,319

Re: [Archived] stw_category_tree

i know i am not good at css, but am i doing something totally wrong? applying your rules the result stays the same (except for the circle), the ancestor stays marked even if the child is clicked. is this what you’ve intended?


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#201 2007-01-26 19:21:11

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

Re: [Archived] stw_category_tree

Oops, that comment wasn’t kosher…

that second selector should have been…

#sidebar-1 li.aktiv ul li {
list-style:none; /*reset the child LIs*/
padding-left:10px;
}

essentially it’s saying is that…

  1. anything that is an li with a class aktiv, should be a list with a disc, then
  2. any child li of class aktiv should have those attributes reversed.

Last edited by mrdale (2007-01-26 19:25:38)

Offline

#202 2007-01-26 19:38:02

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,319

Re: [Archived] stw_category_tree

allright …. pfff, hm, the difference between the first post and corrected one is the order of the comment’s escapes, right? I didn’t paste the comment. your styles give a disc only at the first level, no matter which level is clicked.
btw, did you find my “third level”-link in time and saw what happens to the first level li if you click the second or third level?

Last edited by uli (2007-01-26 19:38:52)


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#203 2007-01-26 19:40:25

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

Re: [Archived] stw_category_tree

So to clarify, which level do you want to receive the special styling?

Last edited by mrdale (2007-01-26 19:45:59)

Offline

#204 2007-01-26 19:48:52

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,319

Re: [Archived] stw_category_tree

the respective one. what I want to achieve is a category indicator. clicking on “Der Fall Andre” in the third level shall give an indicator for this category, not for any parent category, and not for any child category.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#205 2007-01-26 20:03:59

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

Re: [Archived] stw_category_tree

OK, so I’m sorry about all the fuss. Looks like it can’t be done with a stock install. You might check out the built in functions “stw_get_parent” or “stw_get_lineage”. Undocumented, butu perhaps useful?

Sorry I couldn’t help more…

Offline

#206 2007-01-26 20:43:14

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,319

Re: [Archived] stw_category_tree

mrdale schrieb:

Sorry I couldn’t help more…

thanks anyway, dale. I’ll look what i can do with these, but i fear i have to switch to another plugin.

or has anyone else an idea of how to achieve level indicators for hierarchic categories? (description 1 and 2, take a look at an example page)

Last edited by uli (2007-01-26 21:04:12)


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#207 2007-02-14 16:29:57

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,319

Re: [Archived] stw_category_tree

alright, i’m still with stw_categorytree, there seems to be no other plugin that comes closer to suiting my needs.
and i still couldn’t solve my problem which is to only mark the category the user actually clicked, neither parent categories nor nested categories, that become revealed at this moment. has anybody found out a way to neutralize the active classes that aren’t necessary for this purpose?


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#208 2007-02-14 16:42:08

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

Re: [Archived] stw_category_tree

> Santheo…

Any chance you could shed a little light on how one might use the following functions? I have several instances where I’d like to output a category’s ‘parent’ or ‘root ancestor’. I’d love it if you could bust out some new tags that would simply use these functions to achieve that.

  1. “stw_get_parent”
  2. “stw_get_lineage”

Offline

#209 2007-02-15 18:58:33

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

Re: [Archived] stw_category_tree

I’m getting errors with later 4.04 builds:

tag_error <txp:tsw_sec_list disptext=‘title’ wraptag=‘li’ curclass=‘selected’ orderby=‘title’ deftitle=‘home’ exclude=‘sections,listed,here’ /> -> Notice: Use of undefined constant siteurl – assumed ‘siteurl’ on line 96

Doesn’t effect anything, but errors nonetheless…

Last edited by mrdale (2007-02-15 18:59:02)

Offline

#210 2007-02-19 18:38:45

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

Re: [Archived] stw_category_tree

>santheo

Any chance this plugin could be adapted to output a link-less category tree, that is, with attributes link=“0” wraptag=” “ break=”,” output would look like…

categoryA,categoryB,categoryB1,categoryB2,categoryb2a,categoryB3,categoryC

This would work wonders when used with asy_wondertag and other plugins that are not subcategory aware.

Last edited by mrdale (2007-02-19 18:40:10)

Offline

Board footer

Powered by FluxBB