Forums / Developer / own content class isn't in website toolbar

own content class isn't in website toolbar

Author Message

Felix Gluecklich

Thursday 03 January 2008 8:49:45 am

I created an own content class in admin range called
seondhand for second hand products.
I can see my onw content class under setup/classes.
I can use this new content class to build new content.
like folder, article, products, secondhand...

In the live site i logged in as editor.
I see the website toolbar.
But i can not see my own content class.

Wich ini files i have to override with name of
my own content class called secondhand?
How i have to make an entry in the necessary
ini files?

Atle Pedersen

Thursday 03 January 2008 9:29:11 am

Hi,

you probably need to edit the policies for editors in "Roles and policies" in the admin interface.

Felix Gluecklich

Friday 04 January 2008 3:53:39 am

I am logging in as admin with admin rights and without restrictions.
Why i can not see in the list of classes my own content class
in the select box of website toolbar?
As admin i believe to have more rights as an editor, isn't it?

Where i have to add my own content class in an ini file and
how to write the correctly entry in this ini file?
The websitetoolbar.ini is not the right place. I have try it this:

[WebsiteToolbarSettings]
# Controls for which content classes eZODF buttons are displayed in the Website Toolbar.
ODFDisplayClasses[]
ODFDisplayClasses[]=documentation_page
ODFDisplayClasses[]=blog
ODFDisplayClasses[]=blog_post
ODFDisplayClasses[]=folder
ODFDisplayClasses[]=article
ODFDisplayClasses[]=article_mainpage
ODFDisplayClasses[]=article_subpage
ODFDisplayClasses[]=event
ODFDisplayClasses[]=my_own_contentclass

but there is nothing to see of my own content class in the selectbox of websitetoolbar.

André R.

Friday 04 January 2008 4:14:22 am

* Have you remembered to assign the class to a class group?
* the policy Atle is talking about is 'Websitetoolbar' -> 'use', where you can define which classes that should have the tool bar visible.
* the setting your talking about is for ODF (Open document format) import / export support, but you need to setup odf.ini as well if you want to use it on the new class
* Make sure your class is not in the HiddenContentClasses[] setting in websitetoolbar.ini

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Felix Gluecklich

Friday 04 January 2008 4:54:44 am

* Have you remembered to assign the class to a class group?

In the admin range there is my custom class under content.
In the admin range i can use my own class, make new
custom content with this class. Therefore i believe,
that my class is realy under the class group content.
I can see it unter setup / classes / content / my_custom_class.
My custom class has under classes / content the ID 43.
It is an real content class. On the live site i can edit
an existing content as my custom_class. But i can not create
content on live site with website toolbar, because my
custom class is not available in select box in website toolbar.

* the policy Atle is talking about is 'Websitetoolbar' -> 'use', where you can define which classes that should have the tool bar visible.

Yes, under Editor (roles and rights) there is an entry like this above.
I can not see my my_custom_class there in this list.

I am an admin. Why i have to update this list 'Websitetoolbar' -> 'use' and
include my my_custom_class under the editor?

under editor:

websitetoolbar  use  Class( Folder , Link , Article , Article (main-page) , Article (sub-page) , Blog , Blog post , Product , Feedback form , Frontpage , Documentation page , Multicalendar , Poll , File , Flash , Image , Quicktime , Windows media , Real video , Gallery , Forum , Event , Event calendar , Forums )  

missing my my_custom_class.

But under admin:

Zugewiesene Rollen [1]

Name Einschränkung   
 Administrator Keine Einschränkung   

Verfügbare Richtlinien [1]

Rolle Modul Funktion Einschränkung 
Administrator    alle Module  alle Funktionen  Keine Einschränkungen  

there are no restrictions no limit on using websitetoolbar... i am admin ?!

eZ debug

Timing: Jan 18 2025 05:20:35
Script start
Timing: Jan 18 2025 05:20:35
Module start 'content'
Timing: Jan 18 2025 05:20:35
Module end 'content'
Timing: Jan 18 2025 05:20:36
Script end

Main resources:

Total runtime0.7938 sec
Peak memory usage4,096.0000 KB
Database Queries202

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 587.8438180.8125
Module start 'content' 0.00550.6473 768.6563621.2422
Module end 'content' 0.65290.1409 1,389.8984337.3672
Script end 0.7938  1,727.2656 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.4940210.0002
Check MTime0.00140.1798210.0001
Mysql Total
Database connection0.00070.081910.0007
Mysqli_queries0.706388.97492020.0035
Looping result0.00210.25842000.0000
Template Total0.762896.120.3814
Template load0.00200.254220.0010
Template processing0.760895.837920.3804
Template load and register function0.00020.022010.0002
states
state_id_array0.00150.194810.0015
state_identifier_array0.00180.228720.0009
Override
Cache load0.00170.2087580.0000
Sytem overhead
Fetch class attribute can translate value0.00130.168840.0003
Fetch class attribute name0.00300.372570.0004
XML
Image XML parsing0.00150.192740.0004
class_abstraction
Instantiating content class attribute0.00030.040370.0000
General
dbfile0.00400.5000340.0001
String conversion0.00000.000630.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
14content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 35
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs