Forums / Developer / Dynamic Content Stucture menu (AJAX) prototype

Dynamic Content Stucture menu (AJAX) prototype

Author Message

Bertrand Dunogier

Monday 10 October 2005 6:35:05 am

Hum... this is an interesting question. One of the issues there is imho that in windows, a folder is explictely defined. In ezp, a folder is just a specific content class that happens to be a container...

Maybe only show container classes ? Maybe that would make sense...

But on the other hand content structure does say to me it's just gonna show the folders, it says to me it's gonna show the content ;)

Anyone else, opinion ?

Gabriel Ambuehl

Monday 10 October 2005 6:44:12 am

I like the content being displayed fine. Means I can use the context menu to edit, move and delete without first viewing it (another expensive round trip to the server). My main gripe with the current interface is it's slowness, really...

Visit http://triligon.org

Bertrand Dunogier

Monday 10 October 2005 7:22:49 am

Yep, I like the content being displayed as well... but maybe it would be a good time to add options to what the menu displays ?

Like Display=(containers|everything)

and maybe some per content class settings like DisplayedClasses[]= and HiddenClasses[] = ?

Frederik Holljen

Monday 10 October 2005 10:47:42 am

It should follow the filtering rules which are already in place for the existing content structure menu.

Bertrand Dunogier

Monday 10 October 2005 12:40:52 pm

Hmm yes, you are right actually Frederik ;)

However, I would suggest the addition of 2 settings:

HideClasses[]
ShowOnlyContainers=enabled

1. The first because I think it is commonly much faster to ignore a few items than to include the ones you want.

2. Quick "common" setting

Frederik Holljen

Monday 10 October 2005 1:43:38 pm

ShowOnlyContainers sounds like a good plan!

David Heath

Wednesday 12 October 2005 5:30:53 am

Dear Kristian & All,

Here at VisionWT we developed some improvements to the Dynamic menu. I've now integrated these changes back into the original dynamic menu code base and committed back to pubsvn.

I'd just like to say thanks very much to Kristian for initiating this, since the Dynamic Menu is really an excellent tool.

The changes done are as follows:

1. changed to use the original eZPublish look+feel including icons etc
2. added a very simple caching in the menu. If you open a node, close it, then open it again, it will not re-fetch the data. This is done by simply using the css display property to show/hide the item. Look in the toggleNode() function to see how it works.
3. simplified the javascript a little. In particular, I have replaced the expandNode() function:

function expandNode(theurl, nodeid, itemClickAction, theelement) {

with a simpler function:

function toggleNode(ezpublish_node_id) {

the other parameters such as ajax service url, click action are set in the dynmenu_init() function. The 'theelement' variable can be fetched based on the nodeid so it's not necessary to pass it in.
4. I have added notices in all files stating that the software is distributed under GPLv2. This is as per email correspondence between Tony Wood and Kristian

I hope you find the changes I've done helpful. Please let me know if you have any comments questions.

Best regards

David Heath
VisionWT
david.heath@visionwt.com

Kristian Hole

Wednesday 12 October 2005 6:28:16 am

Thanks a lot David. Now it looks like it should, and it works brilliantly. I am going to update the contributions section with your new additions. Thanks for sharing your development!

About the ShowOnlyContainers: That is not really the solution, since almost any content in eZ publish is a container. Even articles are. If you want to limit the classes, i personally think that articles and such should not be part of the menu. I think then the classfilter is a much better solution.

On the otherhand it can be very handy to show all the elements in the menu. The main reason for limiting it, is the performance of the menu.. And now this extension helps a lot on that :-)

Kristian

http://ez.no/ez_publish/documenta...tricks/show_which_templates_are_used
http://ez.no/doc/ez_publish/techn...te_operators/miscellaneous/attribute

Alexandre Abric

Wednesday 12 October 2005 7:01:57 am

A really great job David. Now it looks perfect.

Bertrand Dunogier

Wednesday 12 October 2005 7:04:58 am

Wow, impressive piece of work. The menu looks perfect now !

Bo Vejgaard

Thursday 13 October 2005 1:25:01 am

While I wait for the pubsvn to return to life, i would like to know if this extension actualle speeds up the load of the admin-interface. I really need a speed up, I am managing a 3.6.0 site with 2500+ articles and 4000+ images so the menues for the content and media part take quite a while (30-90 secs) to load. Is this extension worth a try?

Bertrand Dunogier

Thursday 13 October 2005 1:37:34 am

Speeds up ? It's above speeding it up ;)

The difference is impressive !

Gabriel Ambuehl

Thursday 13 October 2005 1:53:24 am

For some reason, on one of my sites, the link to activate it simply won't show up. Does it need some specific template caching settings in order to actually work?

Visit http://triligon.org

Bertrand Dunogier

Thursday 13 October 2005 2:03:54 am

In the latest version there is no link to activate. If you don't want it, don't enable the extension, as they say in the readme ;)

Gabriel Ambuehl

Thursday 13 October 2005 2:21:12 am

Ah so it's on by default?

I guess I'll have to look at the HTTP that goes over the line then ;)

Visit http://triligon.org

Bo Vejgaard

Thursday 13 October 2005 2:31:32 am

Is there an alternative place, where I can get hold of the newest version? I can't get in contact with pubsvn.ez.no.

Bertrand Dunogier

Thursday 13 October 2005 3:07:46 am

Yep, here is the SVN version i checked out yesterday:

http://www.katana-inc.com/files/code/ez_publish_dynamic_menu_2005_10_13_svn_tar

Bo Vejgaard

Thursday 13 October 2005 3:52:37 am

Thank you Bertrand.

And thanks to everybody involved in developing this extension, it's a livesaver.
Now the content pages are loaded immediatly, and not after 30-90 secs. Which is perfect, with a bunch of new editors starting production of new content tomorrow.

Bo Vejgaard

Thursday 13 October 2005 5:11:10 am

I am experiencing some problems with danish characters, is there anywhere that you should specify details about the character-set?

Bo Vejgaard

Thursday 13 October 2005 5:17:00 am

The character-set problem is only in IE. But the 5 small buttons in the top of the contentarea (preview,details,translations,locations and relations) doesn't work after i installed the dynamic menu.

EDIT: The character problem is only from the third level and down, on the first two levels there is no problem, and still limited to IE.