Forums / General / New Class

New Class

Author Message

Dhaval Panchal

Friday 11 February 2011 10:13:46 pm

Hi All,

I need to create new class in ezPublish.

can you please let me know what are the steps?

Thank you

Dhaval Panchal

Franck Magnan

Friday 11 February 2011 10:59:46 pm

Hi Dhaval,

Do you wish to create a content class or a php class ?
If you want to create a content class, you must go to backend administration and copy an existent content class (article, event, ...). Then, you will be able to edit your content class to add fields (text field, email, xml text, object relation ...)

If you want to create a php class, you can do it in making your own extension and declare your new class in "classes" folder of your extension. Then, when your php class is written, you regenerate autoload array to use your class.

Is this explanation helps you?

--
Developer at Open Wide

Dhaval Panchal

Friday 11 February 2011 11:31:02 pm

Hi Franck,

I have create new class from admin interface as follows:

Setting -> Classes -> New class

and i have added few articles in particular class, is it possible to browse it in Scrap URL?

Thank you

Dhaval Panchal