eZ Community » Forums » General » Define Content Classes in Code
expandshrink

Define Content Classes in Code

Define Content Classes in Code

Monday 22 November 2010 6:12:50 pm - 2 replies

When an eZ Publish installation is made it automatically creates some Content Classes, such as article, folder, etc. Where are these defined in code?

I want to be able to create a Content Class similar to Article, which automatically gets it Short name from Title in case it isn’t manually entered when published. How is this possible to do?

Monday 22 November 2010 8:27:19 pm

Sorry, my mad! In no cases is does it happen that a Short name automatically gets assigned from a Content Object’sName or Title. Should have checked better before posting. Nevertheless, I found out that Content Classes can be imported through packages.

Monday 22 November 2010 9:04:05 pm

Hi, you can easily create your custom classes whatever type that you need from the admin interface.

got to setup tab and click on classes in th leftmenu , you can create your custom classes using different attrubutes that based on your needs. Within a 2 or 3 minutes you can create any complex classes

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from