keyword attribute: how to link objects?

Author Message

Paul Borgermans

Friday 04 July 2003 12:18:06 pm

The docs can do it, so its somewhere hidden in the 3.1 release?

I mean relating objects/documents with the same keyword(s)

Very curious!

--paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Paul Borgermans

Monday 07 July 2003 7:18:49 am

Thanks to Bård, I added a small document about this in the template section:

http://ez.no/developer/ez_publish_3/documentation/customization/templates/

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Paul Forsyth

Monday 07 July 2003 7:53:41 am

How do you associate the related objects with keywords? Is this an automatic step when a keyword is entered?

Paul

Paul Borgermans

Monday 07 July 2003 7:56:10 am

>How do you populate the related objects with keywords? Is this
>an automatic step when a keyword is entered?

Yes, keywords are stored with the id's of the objects in which they are defined. You have to add the keywords to each object manually. So it is not a related object as with the related object type.

--paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Paul Forsyth

Monday 07 July 2003 8:28:37 am

If i have this right...

An object has a special link a template can access through:

*.object.data_map.keywords.content.related_objects

which points to the ezkeyword table in some way to relate those objects with the same keyword.

I dont have db access at the moment so cant confirm it but is this sort of the way it works?

paul

Paul Borgermans

Monday 07 July 2003 8:35:17 am

two tables yes:

"ezkeyword" contains the keywords
"ezkeyword_attribute_link" contains keyword id's and object id's

It is not an intrinsic property of an object, but has to be defined as an attribute in the object class definition.

--paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Paul Forsyth

Monday 07 July 2003 8:39:52 am

I understand how to use keywords. My current project is using them and they've been very useful.

Thanks, i was needing to understand how keywords were used in this special way. So the kernel associates the '.related_objects' extension with other objects with the same keyword. Will be interesting to use this :)

paul

Georg Franz

Monday 14 July 2003 4:27:03 am

Hi,

the page has been moved, the new url is
http://ez.no/developer/ez_publish_3/documentation/customization/components/datatypes/ezkeyword/automatic_object_relation

Kind regards,
Emil.

Best wishes,
Georg.

--
http://www.schicksal.com Horoskop website which uses eZ Publish since 2004

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 00:38:13
Script start
Timing: Jan 31 2025 00:38:13
Module start 'layout'
Timing: Jan 31 2025 00:38:13
Module start 'content'
Timing: Jan 31 2025 00:38:13
Module end 'content'
Timing: Jan 31 2025 00:38:13
Script end

Main resources:

Total runtime0.0467 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0102 588.2344151.2109
Module start 'layout' 0.01020.0048 739.4453220.6875
Module start 'content' 0.01500.0297 960.13281,005.8047
Module end 'content' 0.04480.0019 1,965.937537.9922
Script end 0.0467  2,003.9297 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00326.9400140.0002
Check MTime0.00153.1677140.0001
Mysql Total
Database connection0.00091.833910.0009
Mysqli_queries0.00316.679830.0010
Looping result0.00000.036710.0000
Template Total0.00142.910.0014
Template load0.00102.056910.0010
Template processing0.00040.828110.0004
Override
Cache load0.00061.346110.0006
General
dbfile0.011424.399680.0014
String conversion0.00000.023040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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