Forums / Developer / Object Classification

Object Classification

Author Message

David Heath

Thursday 10 April 2003 9:32:12 am

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

Peter Bailey

Thursday 10 April 2003 11:17:46 am

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)

Jan Borsodi

Friday 11 April 2003 6:03:14 am

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.

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

eZ debug

Timing: Jan 29 2025 23:48:43
Script start
Timing: Jan 29 2025 23:48:43
Module start 'content'
Timing: Jan 29 2025 23:48:43
Module end 'content'
Timing: Jan 29 2025 23:48:43
Script end

Main resources:

Total runtime0.1205 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 587.8281180.8438
Module start 'content' 0.00610.0048 768.671993.8359
Module end 'content' 0.01080.1096 862.5078522.4844
Script end 0.1204  1,384.9922 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00312.5550200.0002
Check MTime0.00131.1193200.0001
Mysql Total
Database connection0.00080.648910.0008
Mysqli_queries0.080066.40881410.0006
Looping result0.00090.71201390.0000
Template Total0.109390.710.1093
Template load0.00080.653010.0008
Template processing0.108590.053010.1085
Override
Cache load0.00060.458810.0006
Sytem overhead
Fetch class attribute can translate value0.00070.573510.0007
XML
Image XML parsing0.00030.225710.0003
General
dbfile0.00746.1649200.0004
String conversion0.00000.004930.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs