Forums / Setup & design / creating a new class
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 answerf.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
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
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
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.