creating a new class

Author Message

frederic jollet

Wednesday 27 April 2005 8:10:21 am

hello,
I'm a new user of eZp which is fantastic...
I need some help: How can i create a new content class?
At the moment i use the existing "folder" but i need to create a "folder_1" with other contents.
How can i do that?
Thanks for your answer
f.j.

nga patel

Wednesday 27 April 2005 8:39:22 am

If you are new user then first you should follow the tutorial.
By the ways your solution lies in below link:

http://ez.no/ez_publish/documentation/building_an_ez_publish_site/the_members_page/creating_a_custom_content_class

Best of Luck

frederic jollet

Wednesday 27 April 2005 9:34:13 am

Many thanks,
Another question: after having created a second "folder" class named "folder_1" (duplicating the first one), how can i make the items of this second folder appear in my left menu?
Thanks

nga patel

Thursday 28 April 2005 1:11:46 am

I don't understnd with your word left menu wheather it is in admin part of front part, but then also you try to give you this link just follow it and if not succeeded then just do more clearify:
http://ez.no/ez_publish/documentation/building_an_ez_publish_site/the_news_page/assigning_the_news_folder_to_the_news_section

I also recommend you to follow this tutorial because your approximately 80% problem will be solved automatically:
http://ez.no/ez_publish/documentation/toc/(from)/36647

frederic jollet

Thursday 28 April 2005 2:26:00 am

Thanks for your answer and sorry if i'm not clear.
I need to see the items of the duplicated folder in the left menu of the public site (not the admin site, because i can sea it already)
I did it so:
setup>class>group_of_classes>content>
I get the "content" list, with a class named "folder"
I dupicated "folder" and named it "folder_1"
All was OK till there
Now i want to see the items created from "folder_1"
in the left menu of my public site.
How can i do it?
Thanks

Ulrich L.

Friday 29 April 2005 6:12:44 am

With appropriate settings you can tell ezpublish that your new class should be allowed to be displayed in the menu as well. In menu.ini you find a definition wich classes are allowed for the menu. You will have to make an entry for your new class in order to see it instances in the menu.

Make the settings under [MenuContentSettings]. Have a look at the basic menu.ini (<ezroot>/settings/menu.ini) in order to understand wich settings are required. You will have to make a further entry like "LeftIdentifierList[]=folder_1", but please do it in the appropriate override file. (Look for your menu.ini.append.php of your siteaccess (<ezroot>/settings/<siteaccess_name>/menu.ini.append.php)) So you have to understand the system of overriding settings first.

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

eZ debug

Timing: Jan 19 2025 04:35:28
Script start
Timing: Jan 19 2025 04:35:28
Module start 'layout'
Timing: Jan 19 2025 04:35:28
Module start 'content'
Timing: Jan 19 2025 04:35:29
Module end 'content'
Timing: Jan 19 2025 04:35:29
Script end

Main resources:

Total runtime1.1216 sec
Peak memory usage4,096.0000 KB
Database Queries68

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0095 589.1484152.6250
Module start 'layout' 0.00950.0038 741.773439.4453
Module start 'content' 0.01331.1068 781.2188539.6250
Module end 'content' 1.12010.0014 1,320.843812.1719
Script end 1.1215  1,333.0156 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.3321160.0002
Check MTime0.00140.1245160.0001
Mysql Total
Database connection0.00340.299210.0034
Mysqli_queries1.047893.4241680.0154
Looping result0.00070.0615660.0000
Template Total1.070495.420.5352
Template load0.00220.193320.0011
Template processing1.068295.240320.5341
Template load and register function0.00020.016210.0002
states
state_id_array0.00210.191110.0021
state_identifier_array0.00150.133520.0007
Override
Cache load0.00180.1647390.0000
Sytem overhead
Fetch class attribute can translate value0.00080.067330.0003
Fetch class attribute name0.00180.162560.0003
XML
Image XML parsing0.00040.032630.0001
class_abstraction
Instantiating content class attribute0.00000.001260.0000
General
dbfile0.00090.0779100.0001
String conversion0.00000.001040.0000
Note: percentages do not add up to 100% because some accumulators overlap

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
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 21
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs