Is it possible to compress the list of the categories?

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
maria
Regular
Posts: 28
Joined: Mon Jan 01, 2007 10:51 pm

Is it possible to compress the list of the categories?

Post by maria »

My use of serendipity is based in creating a lot of categories, so, in the template view, viewing all the categories, parents and childrens, is quite difficult to us.....I would like a tree structure of categories based on display them if one believes that is necessary, some menu with '+' option,
in the index page, showing only the parent ones, and then with the '+' option, view the childrens.
In oder words: Some way to compress the list of categories at the view of index page.

I don't know if it's easy to fix that I am over looking... but I figured that someone would be able to help me ...

Thanks!!
Maria
Davy
Regular
Posts: 109
Joined: Fri Oct 13, 2006 2:06 pm
Location: The Netherlands

Post by Davy »

Something like this one?
maria
Regular
Posts: 28
Joined: Mon Jan 01, 2007 10:51 pm

serendipity_plugin_category_dhtml_menu.php

Post by maria »

Thanks Davy for your quickly answer, I've tried to install your plugin, but a message appears in the index.php screen saying:

Please install PEAR package HTML_TreeMenu to enable this plugin.

So, I can't see the working of the serendipity_plugin_category_dhtml_menu.php plugin.

do you know when I can find the PEAR package HTML_TreeMenu in order to install?

Thanks very very much!!

Maria
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: serendipity_plugin_category_dhtml_menu.php

Post by yellowled »

maria wrote:do you know when I can find the PEAR package HTML_TreeMenu in order to install?
http://pear.php.net/package/HTML_TreeMenu

YL
maria
Regular
Posts: 28
Joined: Mon Jan 01, 2007 10:51 pm

http://pear.php.net/package/HTML_TreeMenu

Post by maria »

Thanks a lot YL!!!

I've the package, but I'm lost in the documentation about how to install it.

What do you recommend me?

Have a nice day!!

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

Re: http://pear.php.net/package/HTML_TreeMenu

Post by garvinhicking »

Hi!

The easiest way should be to install the "HTML/Tree" files into your "bundled-libs" directory from s9y. There, s9y should find it automatically.

HTH,
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/
maria
Regular
Posts: 28
Joined: Mon Jan 01, 2007 10:51 pm

to install the "HTML/Tree" files into your "b

Post by maria »

Sorry for my missunderstanding, but I don't know exactly what do you mean.
I've put the package as /doc/serendipity/bundled-libs/HTML_TreeMenu-1.2.0 , and in that directory I've:
docs images imagesAlt imagesAlt2 TreeMenu.js TreeMenu.php

should it be enough?
What I should do in order that this takes effect?

THANKS in capital letters!
Maria
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: to install the "HTML/Tree" files into your &qu

Post by garvinhicking »

Hi!

Put the files in

/doc/serendipity/bundled-libs/HTML/

! :)

HTH,
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/
maria
Regular
Posts: 28
Joined: Mon Jan 01, 2007 10:51 pm

How can I compress the list of categories with the plugin

Post by maria »

OK, now I've HTML_TreeMenu-1.2.0 without any problems in my blog.
But I can't have the plugin:
serendipity_plugin_category_dhtml_menu.zip working as I desired, it means, I would like to have the view of parent categories only, and the children compressed, with a "+" sign or similar in order to have the possibility to expand the tree.
Do I need to configure something else?

Thanks for ever,

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

Re: How can I compress the list of categories with the plugi

Post by garvinhicking »

Hi!

How does it look now? What's your URL?

It should offer you inflatable categories!

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/
maria
Regular
Posts: 28
Joined: Mon Jan 01, 2007 10:51 pm

It should offer you inflatable categories!

Post by maria »

My url is http://159.23.98.66/serendipity/index.php but I think that is forbidden from out of Alcatel-Lucent.

No, I can't view the inflatable categories, my view is:

Categories
customers
orange
orange071206
ONO MVNO
platforms



All categories
maria
Regular
Posts: 28
Joined: Mon Jan 01, 2007 10:51 pm

configuration plugin

Post by maria »

The configuration of this plugin is:

Name: Category Tree Menu
Description: DHTML category menu. Requires PEAR::HTML_TreeMenu.

Title

Path to images
The absolute (URL) path to your images directory

Here there is: plugins/serendipity_plugin_category_dhtml_menu/img

Path to HTMLTree.js
the absolute (url) path to your HTMLTree.js (provided with PEAR::HTML_TreeMenu).

Here there is: plugins/serendipity_plugin_category_dhtml_menu/TreeMenu.js

but the img and TreeMenu.js doesn't exist, is it correct??
[root@sewebt serendipity_plugin_category_dhtml_menu]# pwd
/doc/serendipity/plugins/serendipity_plugin_category_dhtml_menu


[root@sewebt serendipity_plugin_category_dhtml_menu]# ls
CVS lang_en.inc.php serendipity_plugin_category_dhtml_menu.php
lang_bg.inc.php lang_ja.inc.php UTF-8
maria
Regular
Posts: 28
Joined: Mon Jan 01, 2007 10:51 pm

It works now!!

Post by maria »

I've modified the configuration of the plugin in order to point to the /doc/serendipity/bundled-libs/HTML and now the category menu is working properly.
Great!!
Post Reply