Page 1 of 2
installing the [Category Tree Menu] plugin ?
Posted: Mon May 08, 2006 1:03 pm
by dymezac
Hello Garvin
I am actually trying to install the
Category Tree Menu, but it seems that I need to install a package wihch I don't know how to install.
It is the PEAR HTML_TreeMenu. So I went on this
site, but I still don't know how to install this package.
I have downloaded the package then I copied it on my root serenditpity path, and told the Category Tree Menu were I copied the PEAR package, but nothing works..
Do you know how I could install the PEAR package, in order to make the Category Tree Menu plugin working ?
Thanks a lot again
Re: installing the [Category Tree Menu] plugin ?
Posted: Mon May 08, 2006 1:07 pm
by garvinhicking
Hi!
You should put the TreeMenu thin into your bundled-libs/ directory, so that it forms a directory like bundled-libs/HTML/TreeMenu.php
Usually you install PEAR packages from the server just with "pear install HTML_TreeMenu"
Best regards,
Garvin
Posted: Mon May 08, 2006 2:11 pm
by dymezac
Hey ! It worked perfectly !
You were right. But instead of copying the pear HTML_Menu folder in the bundled-libs, i put it in the root of my web space (->> french provider free.fr).
Because I saw this in the source code of the DHTML_TreeMenu plugin :
Lines 100 to 107 of serendipity_plugin_category_dhtml_menu.php :
// may want to put this in bundled_libs or a sub directory of this directory
$pear = false;
if (@include_once('HTML/TreeMenu.php')) {
$pear = true;
}
if (@include_once('HTML_TreeMenu/TreeMenu.php')) {
$pear = true;
}
So I saw that I had to put a HTML_TreeMenu folder containing all the pear package i needed.
I could also change the plugin source code, but i prefer not, and have a HTML_TreeMenu on my root serendipity path.
So now all works : see it on the top right of
http://dymezac.free.fr
Thanks again Garvin..
I will still have one more question for you, I think the last one for a moment .. I'll put a new post for this new question
Posted: Wed Sep 20, 2006 9:39 am
by chrisT33
i tried installing this too...
first i saw the error, i went on
http://pear.php.net/package/HTML_TreeMenu/download , i downloaded the package, i put it on my
bundled-libs folder, but now i don't see anything where it shoul be the tree menu - not even an error or something
what did i do wrong ?

Posted: Wed Sep 20, 2006 4:52 pm
by chrisT33
it seems noone knows how to solve my problem, but... can i make an alternative ? [something else than a HTML Nugget]
Posted: Wed Sep 20, 2006 5:20 pm
by stm999999999
the following works here:
1) copy the pear-treemenu-files to /bundled-libs/HTML_TreeMenu/
2) install the plugin category tree menu
3) config
/bundled-libs/HTML_TreeMenu/images or
/bundled-libs/HTML_TreeMenu/imagesAlt2 or
/bundled-libs/HTML_TreeMenu/imagesAlt2
and
/bundled-libs/HTML_TreeMenu/TreeMenu.js
Posted: Wed Sep 20, 2006 5:38 pm
by chrisT33
stm999999999 - steps 1 & 2 i have made them
step 3 - i really don't get it :-/
Posted: Wed Sep 20, 2006 8:49 pm
by stm999999999
chrisT33 wrote:
step 3 - i really don't get it :-/
I don't understand your problem!
Go to the plugin-page in the admin backend. Click on the plugin. and the enter the data in
Path to images
The absolute (URL) path to your images directory
and
Path to HTMLTree.js
the absolute (url) path to your HTMLTree.js (provided with PEAR::HTML_TreeMenu).
If it did not work, please give me a detailed information what you have done and at which place your problem occurs.
Posted: Wed Sep 20, 2006 9:36 pm
by chrisT33
stm999999999 - NOW i see your point... thanks... it worked

Posted: Thu Sep 21, 2006 4:13 am
by judebert
Ah, so that's what "config" meant!
I was confused before. Totally understand now.
Posted: Thu Sep 21, 2006 7:28 am
by chrisT33
oh God
now i have another problem
what should i edit so the menu have the same template? [i mean where is the HTML code generated?]
i saw something on serendipity_plugin_category_dhtml_menu.php, but i only can see there one <span> tag...
i tried inserting some <br />, but nothing... i also searched on index.tpl from template...

Posted: Thu Sep 21, 2006 5:15 pm
by judebert
Chris,
Does it work properly in the default theme? Perhaps the theme CSS needs to be changed? I thought it should all work off the bat, since each plugin gets stuck in a container, and that's what usually gets styled. But maybe the tree JS is breaking out or something.
Try moving it up or down the sidebar; that may expose an HTML problem. You can also try running your site through the W3C validator to expose HTML problems.
I'm sorry you've had so much trouble getting this to work. I hope we figure it out quickly.
Posted: Thu Sep 21, 2006 6:04 pm
by chrisT33
for the moment i've let the original categories...
maybe i'll use this when it will be fixed [and also implemented number of items per category - this would be a great thing

]
Posted: Thu Sep 21, 2006 11:07 pm
by stm999999999
1) Did you type something in "title"?
2) the html should be generated in the bundled-libs/HTML_TreeMenu/TreeMenu.js
3) the css for the sidebar-titles should work:
Code: Select all
newNode = objTreeMenu_1.addItem(new TreeNode('<span class="serendipitySideBarTitle">test</span>', null, null, false, true, '', '', null));
Posted: Fri Sep 22, 2006 8:59 am
by chrisT33
yes - i put a TITLE
