toggle for categories

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
sweety
Regular
Posts: 42
Joined: Tue Jul 05, 2005 11:05 am

toggle for categories

Post by sweety »

hi all,
On the index page of serendipity there is a sidebar plugin for categories. there all the categories and subcategories also are being displayed at a stretch......Can't we modify it in such a way that only parent categories are displayed with a +/- toggle option such that when clicked near a category, its sub categories should appear?

Please help me by giving an idea as to how to implement this.......

Thanking you in advance for ur help,
sweety
Col. Kurtz
Regular
Posts: 450
Joined: Thu May 26, 2005 10:43 am
Location: Bonn, Germany
Contact:

Post by Col. Kurtz »

Hi,

I use the "Link list" Plugin to acces my categories. I had to enter each categories URL manually as a seperate link. But its working fine. It also allowed me to include static pages and category links into the same list.

See here
Look at the "Termine" link, and how the subcategories are implemented.

It´s in German but you´ll get the idea!
gwilsonmail
Regular
Posts: 146
Joined: Tue Jul 12, 2005 9:12 pm
Location: Ottawa, Canada
Contact:

Post by gwilsonmail »

install the category tree menu plugin to get a toggle for your category list.

in 0.9 there are lots of additional options for category display. One i just discovered allows you to display a single parent and only it's children. There is also some work being done on hiding and conditional displaying of categories.

And I forgot to mention you can now turn an entire category into it's own blog.
gw
wesley
Regular
Posts: 197
Joined: Sun Jul 10, 2005 11:15 am
Contact:

Post by wesley »

gwilsonmail wrote:install the category tree menu plugin to get a toggle for your category list.

in 0.9 there are lots of additional options for category display. One i just discovered allows you to display a single parent and only it's children. There is also some work being done on hiding and conditional displaying of categories.

And I forgot to mention you can now turn an entire category into it's own blog.
Yes, and I especially am waiting for that last one because I currently keep
a manual listing of articles in a static page. My main blog uses a production
version of s9y so I don't use the 0.9 alpha.
I make s9y plugins, too.
My s9y blog depends on them. :)
gwilsonmail
Regular
Posts: 146
Joined: Tue Jul 12, 2005 9:12 pm
Location: Ottawa, Canada
Contact:

Post by gwilsonmail »

category tree menu is available in 0.8.2
gw
sweety
Regular
Posts: 42
Joined: Tue Jul 05, 2005 11:05 am

Post by sweety »

hi,
Thank you so much for telling me about the category tree menu.
I tried installing it. But it is asking for pear::tree_menu to be present...
Does this mean that I should install pear and tree_menu seperately?
or is it enough if I place the corresponding files in my plugin? If so , from where can I get those files?
mgroeninger
Regular
Posts: 546
Joined: Mon Dec 20, 2004 11:57 pm
Contact:

Post by mgroeninger »

Pear is the PHP Extension and Application Repository...

TreeMenu is a package distributed through Pear... you can download it at http://pear.php.net/package/HTML_TreeMenu

If you are using a managed server (like through your ISP, or some such) it will be easier to ask who ever manages you server to install the package.

You will need to pay attention to where the images and javascript reside. they will need to be moved into the serendipity directory structure somewhere (I don't remember where, off hand, but if you need help shoot me a message)
gwilsonmail
Regular
Posts: 146
Joined: Tue Jul 12, 2005 9:12 pm
Location: Ottawa, Canada
Contact:

Post by gwilsonmail »

0.9 includes the PEAR distribution. It's pretty stable for the basics and plugins. Unstable or experimental parts are noted as such and can be avoided if you don't want to help test them by providing feedback.
gw
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

I just want to clarify that 0.9 only contains core required PEAR packages! HTML:TreeMenu is not part of those, you need to manually install that package on your server.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Rob

TreeMenu gives errors

Post by Rob »

Hi Garvin,

I installed the HTML_TreeMenu package to the Bundled libs directory in s9y 0.8.5, and renamed the default directory from HTML_TreeMenu-1.2.0 to HTML so that the Category Tree program can find it...

So the directory structure looks like this:

bundled-libs/HTML/
TreeMenu.js
TreeMenu.php
docs
images
imagesAlt
imagesAlt2

But now the category tree module simply displays nothing, and give the javascript error 'Line 238: TreeMenu is undefined.

Can you point me inthe right direction please - have I done somethign wrong?

Cheers
Rob
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: TreeMenu gives errors

Post by garvinhicking »

Rob, what's the URL to your blog? Most presumable, the path to the JS of the TreeMenu is just wrong or misconfigured in the plugin...

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
mgroeninger
Regular
Posts: 546
Joined: Mon Dec 20, 2004 11:57 pm
Contact:

Post by mgroeninger »

I believe the path to the images and the javascript is configurable...

The defaults (should be under the plugin config) are:
"plugins/serendipity_plugin_category_dhtml_menu/img"

"plugins/serendipity_plugin_category_dhtml_menu/TreeMenu.js"

(we are talking about serendipity_plugin_category_dhtml_menu, right?)

So, you should be able to either move the images directory and the javascript to match those pathes, or changes the paths to match the actual location of the files.
sweety
Regular
Posts: 42
Joined: Tue Jul 05, 2005 11:05 am

Post by sweety »

hi all,
i installed the plugin and also download treemenu.js and rest of the files..it is working fine for me now.thanks a lot for ur help
but i have a small problem :-(
in my site i have the tree plugin to the right side..it has a toggle at the top +/- ...and those are working fine for expansion and collapsing of the plugin..but there is another +/- beneath the present +/- toggle....on operating it ,it is working for the other plugin which is beneath it..
i.e..., i have my tree plugin with a +/- toggle and also another +/- toggle near it which is working for the plugin beneath the tree structure plugin...

and also this problem is coming if i keep the tree plugin in the middle of any other plugins...if my tree plugin is put at the end of all plugins then this problem is not arising.....
i hope i am clear.....
also the title is not appearing for the tree structure if we collapse the plugin with - toggle....it is also getting shrinked with the entire plugin..
can my issues be solved????:-(
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Sweety, this sounds like a CSS issue. You'll need to post your URL so that we can understand it.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
JWalker
Regular
Posts: 177
Joined: Mon Sep 12, 2005 4:14 pm
Location: Botevgrad, Bulgaria
Contact:

HTML_TreeMenu - where and how to ?

Post by JWalker »

Hi,

Where (and how) must be installed HTML_TreeMenu in s9y directory structure ? I already have 'bundled-libs\HTTP' and it has something in it.

Ivan
Post Reply