Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#91 2005-08-24 13:26:45
- Joey
- Member
- From: Netherlands
- Registered: 2005-01-19
- Posts: 257
Re: [Archived] stw_category_tree
Great plugin, does it sill work correctly in 4.0? Hopefully I can make a category list working with this. I’ll give it a try. Thanks
Regards,
Joey
Offline
Offline
#93 2005-08-24 13:43:49
- Joey
- Member
- From: Netherlands
- Registered: 2005-01-19
- Posts: 257
Re: [Archived] stw_category_tree
Thanks, John.
Okay it works, but I’ve a problem: I’ve 2 categories which I don’t want to redirect to the section as specified in the section=”“ attribute. They have to be redirected to an other section. Is that possible? Or is there a possibility to just don’t display those categories?
Regards,
Joey
Offline
#94 2005-08-24 22:45:23
- rajo
- Member
- Registered: 2004-03-13
- Posts: 43
Re: [Archived] stw_category_tree
is there a way for it to only show category one in the list or category two?
Offline
#95 2005-08-26 06:54:51
- Joey
- Member
- From: Netherlands
- Registered: 2005-01-19
- Posts: 257
Re: [Archived] stw_category_tree
Bumb … sorry :(, but I’m afraid nobody has looked at my and rajo’s questions. Thnks.
Regards,
Joey
Offline
Re: [Archived] stw_category_tree
This plugin is working sooo well for me – thank you!
I have a question that’s probably largely due to my CSS ignorance. I’m hoping for some help with the styling of my category list. I’ve changed the plugin code to:
<code>$css_id = (empty($cssid)) ? “catlist” : $cssid;</code>
Can someone post some example code of how <code>catlist</code> would be styled in the stylesheet? What I’m doing is not working. Also, I have two levels of categories. Can someone post some example code of how I would style each category level separately?
A big thanks in advance.
PS: I searched the Forum and Textbook but didn’t find the answer to this.
new to TXP, CMS, CSS, PHP…
Offline
Re: [Archived] stw_category_tree
First, take a look at listamatic, they have many examples and a couple of tutorials on how to style a list. This plugin just ouputs a standard list, so you can style it however you need to.
To give the second level a different style than the fist, simply declare something like:
ul {background:green} /* First level, whole list */
li {color:black} /* First level, indivual element */
li ul {background:red} /* Second level list */
li li {color:white} /* Second level, indivual element */
This is a bad example, but maybe you get the idea. I have done this on my website with a simple navigation and this plugin. Let me know if that helps.
Last edited by elmar (2005-09-02 07:35:43)
Offline
Re: [Archived] stw_category_tree
flowmom – You don’t need to change the cssid in the plugin code. Just at the cssid attribute to the stw_category_tree tag like so: <code><txp:stw_category_tree cssid=“whatever” /></code>
Refresh Dallas and other Refreshing Cities.
Offline
Re: [Archived] stw_category_tree
>elmar wrote:
>First, take a look at listamatic, they have many examples and a couple of tutorials on how to style a list. This plugin just ouputs a standard list, so you can style it however you need to.
Thanks, your suggestions worked great elmar…beautiful site, by the way.
>tinyfly wrote:
>You don’t need to change the cssid in the plugin code. Just at the cssid attribute to the stw_category_tree tag like so: <code><txp:stw_category_tree cssid=“whatever” /></code>
Thanks. I have tried <code><txp:stw_category_tree cssid=“catlist” /></code> after removing catlist from the plugin but I wasn’t able to style the list using <code>catlist</code> in the stylesheet. Care to share example code of how I would do that? I’m not positive I am using the correct syntax for how to include <code>catlist</code> in the stylesheet.
new to TXP, CMS, CSS, PHP…
Offline
#100 2005-09-02 15:36:50
Re: [Archived] stw_category_tree
It should output your cssid as id=“catlist” in the actual html so in your css you would style it like so:
<pre>
#catlist{
style1: here;
style2: here;
}
</pre>
Last edited by tinyfly (2005-09-02 15:37:25)
Refresh Dallas and other Refreshing Cities.
Offline
#101 2005-09-02 16:09:42
Re: [Archived] stw_category_tree
I have figured it out now! Elmar and tinyfly, your advice was very helpful.
Last edited by flowmom (2005-09-02 16:42:38)
new to TXP, CMS, CSS, PHP…
Offline
#102 2005-09-02 16:40:51
Re: [Archived] stw_category_tree
In your css file:
<pre>
#sidebar-2 p, #sidebar-1 p
{
line-height: 15px; font-size: 10px;}
}
</pre>
Remove that extra closing }
Also, #catlist is applied to the ul tag. You also have styles on an li tag that will override #catlist, hence the cascading in cascading style sheets. You can do this:
<pre>
#catlist li{
style1: whatever;
style2: whatever;
}
</pre>
This will override any your other li styles. Also, you can set onclass=”“ to get rid of all the ids on the li tags. Which I would highly suggest.
Last edited by tinyfly (2005-09-02 16:41:47)
Refresh Dallas and other Refreshing Cities.
Offline
#103 2005-09-02 16:44:21
Re: [Archived] stw_category_tree
Thanks so much tinyfly – more helpful advice…I really appreciate the hand-holding. It’s working now thanks to both of you.
Last edited by flowmom (2005-09-02 16:45:05)
new to TXP, CMS, CSS, PHP…
Offline
#104 2005-09-02 17:12:48
Re: [Archived] stw_category_tree
Glad I could help.
Here is a great site for tutorials on html and css HTML Dog
Refresh Dallas and other Refreshing Cities.
Offline
#105 2005-09-04 15:50:06
Re: [Archived] stw_category_tree
This is a great plugin! Nontheless, there is a bug: when counting articles in categories, future articles are counted, even if they’re not yet displayed!
There is a quick way to fix it in the counting function?
z-
Offline