The Serendipity Handbook

You can now read the (german) handbook here: PDF - https://github.com/s9y/Book (LaTeX source).

Forum-Information

Before posting about errors, make sure that the answer cannot already be found in our FAQ or by searching this forum!
Posting is restricted to registered users (registering is free and simple!) due to recent spam attacks. When having trouble with this board, contact garvin(-at)s9y(-dot)org.

Board index Themes Javascript for Categories Plugin

Skinning and designing Serendipity (CSS, HTML, Smarty)
danst0
Regular
 
Posts: 197
Joined: Tue Jul 13, 2004 10:50 am

Postby danst0 » Mon Aug 01, 2011 7:37 am

Hi,

my categories sidebar plugin is getting more and more crowded (and it will grow further in the future). So I am looking for ways to reduce the length of the plugin and make it easier to understand (is there really no word for "übersichtlicher"?).

So my questions:
* In general what would you suggest to make this better from a design perspective?
* One thing I thought of was using javascript to hide the subcategories until clicked. Does this sound like a good idea?
* I am pretty sure I am not the first one who has done this, so can anyone recommend me some code examples for that?

Thanks,
Daniel
Attachments
categories.png
My current categories
categories.png (32.4 KiB) Viewed 668 times

User avatar
garvinhicking
Core Developer
 
Posts: 28954
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany

Postby garvinhicking » Mon Aug 01, 2011 8:50 am

Hi!

theres a serendipity_plugin_categories_dhtml plugin or something like that which allows to fold in /out categories...maybe you want to give that a try...

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/

danst0
Regular
 
Posts: 197
Joined: Tue Jul 13, 2004 10:50 am

Postby danst0 » Mon Aug 01, 2011 9:50 am

Ok I tried that: I put PEAR::Treemenu into the plugin directory, now I get:

Fatal error: Call to a member function addItem() on a non-object in /usr/www/users/xxx/plugins/serendipity_plugin_category_dhtml_menu/serendipity_plugin_category_dhtml_menu.php on line 193

Any hints?

Daniel

User avatar
garvinhicking
Core Developer
 
Posts: 28954
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany

Postby garvinhicking » Mon Aug 01, 2011 7:50 pm

Hi!

The Pear TreeMenu is a bit picky about where and how to place. Which file/directory structure do you have now exactly, where is the TreeMenu put into? Maybe the TreeMenu people also changed their API and "addItem" is no longer available, in which case the plugin would need a rewrite...I'm not sure, I think also somewhere someone contributed a dtree.js version of that exact same 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/



Return to Themes

Who is online

Users browsing this forum: No registered users and 1 guest

cron