How to add class to "create.." dropdown on website_toolbar

Author Message

Jens Tiedemann

Sunday 02 March 2008 1:19:23 pm

Hi, how do I add a "custom" class (based on article) to the web interface toolbar. I've created the class ok - and it works fine from the admin interface - but how do I enable it for users of the web interface, so they can created new objects based on my custom class?

best regards,
Jens

Bruce Morrison

Sunday 02 March 2008 3:42:33 pm

Hi Jens

You'll have to ensure that the user is able to create (and edit) the new content class.

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Jens Tiedemann

Tuesday 04 March 2008 1:16:09 am

Hi Bruce, Tx - that sounds resonable.. I made a role/policy with read/create/edit/remove rights to my custom class - and assigned it to the administrator group (myself).. But still, my custom class is not available from the webinterface. But actually, the admin group should have had access to it without the extra role i suppose... From the admin interface, everything works fine (the object is part of the dropdown list for creating new objects in a folder as example...)

So is there a place /ini setting I need to register my custom class for it to be available through the web interface? Or is there something else I'm doing wrong?

regards, Jens

Jens Tiedemann

Tuesday 04 March 2008 4:47:34 am

Got a little closer - found the following:

--------------------------
Website toolbar for custom classes

By default, the website toolbar in 3.9 is only shown for classes shipped with the website interface. If you want it to be shown for a custom class, add your class' name to the AvailableForClasses[] array in extension/ezwebin/settings/websitetoolbar.ini and clear the cache ;)

If your class is a container, you also need to add it to the ContentClassContainers array in the same file to enable creating objects under it.
--------------------------

However, my custom class is still NOT available in the create drowdown on the toolbar. Rights to create/edit are OK - and no problem using the admin interface for the same user.

So question remains: How to add a custom class to the create dropdown on the website toolbar...

Jens Tiedemann

Wednesday 05 March 2008 4:04:22 am

Anyone? Who managed to put a custom class on the create dropdown list in the webinterface toolbar?

Mark Marsiglio

Wednesday 05 March 2008 8:12:03 am

Were you saying that even when logged in as admin you can't use the toolbar to create your new class?

Is the custom class that you created located in the content group? (setup > classes > content)

http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions

Jens Tiedemann

Thursday 06 March 2008 11:30:21 am

Hi Mark
- YES to both answers...

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.