DHTML TREE of Categories

Found a bug? Tell us!!
Post Reply
mazel
Regular
Posts: 12
Joined: Sun Aug 20, 2006 12:58 am

DHTML TREE of Categories

Post by mazel »

Thank You for serendipity!
-------------------------------

When I install DHTML Tree - I see two bug of it appirience:
In my "Competition" - Coffy Cup Tamplate - it's NAME table
haven't WIDTH 100% of side Columne Like ALL another
side plugins - it has width of input text (of name of plagin)

The categories names not transform on next line if length of name became bigger that collumn wide and distort column making it much wider...

And finalkly - DHTML TREE of categories have not RSS buttons and poodibilites to select several categories like MAIN Categories Plugin - is this possible to combain both, and add to DHTML Tree possibiliti to chose several of tam and subscribe to Rss
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: DHTML TREE of Categories

Post by garvinhicking »

Hi!

Yes, you are right, the DHTML plugin currently does not include RSS buttons; DHTML Menu (it's a pear class) only supports one menu item per row, so you cannot add a second button into the same row.

About the look: You should be able to customize this via CSS?

Best 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/
mazel
Regular
Posts: 12
Joined: Sun Aug 20, 2006 12:58 am

Post by mazel »

Thank You for answering
garvinhicking wrote:Hi!

Yes, you are right, the DHTML plugin currently does not include RSS Garvin
I understand. But tell me please is this possible in future
or yoг heven't such planes to make this?


garvinhicking wrote: About the look: You should be able to customize this via CSS?
Garvin

I see that now Tree plugin use NOWRAP style and I can not chage it through CSS
Is this possible choose wordWRAP in TREEs plugins?


below I'll try ti discribe "problem". Please, sorry for my English



I know about using CSS and already use it for ajusting templates for my design. I'm already change many text styles of my tamplate.

I'm afraid that in TREE.js style of words different that in another pluginth...
.... I affraid that it's imposible "CANCEL" NOWRAP in TREE??? Or nevertheless it possible?


PS: I understand that wordwrapping in TREE interrupt vertical lines, but i think that such interraption better that increasing of width of sidebar columns which could destroy blog appirience. (if nowrap name of category - long, such long name increase width of sidebar column badly)


Thank You in advance
mazel
Regular
Posts: 12
Joined: Sun Aug 20, 2006 12:58 am

Re: DHTML TREE of Categories

Post by mazel »

garvinhicking wrote:Hi!

About the look: You should be able to customize this via CSS?

Best regards,
Garvin
Have a good day time.
It's me again and I try to illustrate this WRAP problemon use my TEST blog. Sorry for many Cyrillic in it - I'm a russian - but I create
several English items.

http://myblog.synnegoria.com/


1) Please look on the left side bar

bottom

I CALLED "TREE categories" Plaugin
with long name "Long name of tree menu unfortunatelly NOWRAP"
to show that it's not WRAP - if you look RIGHT side bur plugin at the bottom - I do two examples which show that another plugins WRAPping words (forexample: "Visitors statistics for my blog")

2)Please look again in left bottom sidebar - In TREE categories plugin on the LONG name of category "00.Very long category name for trsting NOWRAP problem"

You see this category name shoter that PLUGIN title but both look like NOWRAP (I did Longer category name too - it's both NOWRAP)


3) I tell you before that in LINK LIST tree I try manually add BR - please look in Right bottom sidebar

- Go in Plugin named "Glossary of my favourits places in Internet. My Link List"
- Click on ITEM called "Please go here"
- Click on ITEM "And open this folder" and see here WRAPPING( what about I asked you)

Yes - with BR - long name of LINK interrapted vertical lines but I think it's look better than in DHTML TREE on the left.




An I repeat my question: Is this posible to make DHTML TREES automaticallyt working with WORDWRAPPING like in my example here in LINK menu?


Thank You in adevance
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

I can't find anything in the PEAR documentation for TREE that supports word wrap.

I can't find any CSS that allows the text to be word-wrapped, although the following CSS will restrict the size of the sidebar and produce a scrollbar if the tree contains any elements that are too big:

Code: Select all

.container_serendipity_plugin_category_dhtml_menu
{
  width: 180px;
  overflow: auto;
}
Judebert
---
Website | Wishlist | PayPal
mgroeninger
Regular
Posts: 546
Joined: Mon Dec 20, 2004 11:57 pm
Contact:

Post by mgroeninger »

If you are up to modifying the plugin, I think it can be done... (though I am guessing based on the TreeMenu.js file.

You have two options:
One, you would have to change the output of the plugin so the each additem call includes 'cssClass' => 'treeMenuitem' in the function call.

Or:
You could add a default css class to the TreeMenu call...
So this code:

Code: Select all

$tree = new HTML_TreeMenu_DHTML($menu,array('images'=>$serendipity['baseURL'].$this->get_config('image_path')));
would look something like this:

Code: Select all

$tree = new HTML_TreeMenu_DHTML($menu,array('images'=>$serendipity['baseURL'].$this->get_config('image_path'),'defaultClass' => 'treeMenuDefault'));
Then you would have to add the css classes to your template (or echo from the plugin).
mazel
Regular
Posts: 12
Joined: Sun Aug 20, 2006 12:58 am

Post by mazel »

judebert wrote:scrollbar if the tree contains any elements that are too big:

Code: Select all

.container_serendipity_plugin_category_dhtml_menu
{
  width: 180px;
  overflow: auto;
}

Thank You for your advice - I use the same Idea for STANDART category plugin.
This is what I need - my problem was - I plane use Serendipity for publish my photography and poetry - thre are a lot of different works and I plane make alot of categories - list could be loooong - I need TREE only for this - but now with conteiner there no problems.

Thank You again
mazel
Regular
Posts: 12
Joined: Sun Aug 20, 2006 12:58 am

Post by mazel »

mgroeninger wrote:If you are up to modifying the plugin, I think it can be done... (though I am guessing based on the TreeMenu.js file.

You have two options:
Thank you for your advace - I try but unsuccessfully - may be I did something wrong - but I'm afraid that problem not "in class" - I think Tree.JS "drowing" tables or some veri difficult structure and this algoritm can not working with wrapping.

But judebert give me good advice - and I plane to use it with standart CATEGORY plagin - I check - it's working (conteiner). Now I can use standart category with conteiner and make a lot of them and will not be afrewid that list of categories will be loooooong)

Thank You
Post Reply