This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit ezplatform.com

eZ Community » Forums » Developer » Object Classification
expandshrink

Object Classification

Object Classification

Thursday 10 April 2003 6:32:12 pm - 2 replies

Hi,

I'm currently evaluating eZpublish 3 for an application. One of the requirements of the application is to allow classification of articles by a number of fields, for example specifying the topic and country which the article is about.

This should be available to the editor as a multiple-choice select box when they create the article.

How could this be implemented in eZ 3? Is there some standard mechanism for classification?

If not, what would be the best way to implement it? Should I create a new content class for each classfication type (e.g. country, topic) and then have the article object refer to the classification objects.

Would I need to write some special code to present the user interface in the desired manner? If so, where should I find out more about customising that article user interface?

Many thanks

David Heath

Thursday 10 April 2003 8:17:46 pm

Any given content object can exists in multiple locations. You can have a folder for each classification, and include the article in to any folder that applies.

Would that work?

(there may be another way, I'm no eZp whiz)

Friday 11 April 2003 3:03:14 pm

You can use regular objects for classifications, for instance you could create a topic and country class which holds the information on each type. You then create a folder for topics and countries and place objects in them.

For editing objects you use something called remote IDs for placements, this means that for a specific remote ID a placement node ID is stored. Practically this means that you could display a dropdown with values taken from the topic or country list and let the user choose one of them.
When the object is published it will be placed in the selected nodes.

The only thing you need to do for this is an override template for the classes that require classification. See design/standard/template/content/edit_placement.tpl for an example of this, there's some commented code at the top.

expandshrink

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

36 542 Users on board!

Forums menu

Proudly Developed with from