Forums / Developer / keyword attribute: how to link objects?

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

eZ debug

Timing: Jan 18 2025 11:46:36
Script start
Timing: Jan 18 2025 11:46:36
Module start 'content'
Timing: Jan 18 2025 11:46:37
Module end 'content'
Timing: Jan 18 2025 11:46:37
Script end

Main resources:

Total runtime0.9482 sec
Peak memory usage4,096.0000 KB
Database Queries211

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0073 589.6328180.8281
Module start 'content' 0.00730.8188 770.4609637.6641
Module end 'content' 0.82620.1220 1,408.1250341.0859
Script end 0.9481  1,749.2109 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.4419210.0002
Check MTime0.00150.1597210.0001
Mysql Total
Database connection0.00100.108110.0010
Mysqli_queries0.866491.37482110.0041
Looping result0.00200.20982090.0000
Template Total0.920497.120.4602
Template load0.00260.278820.0013
Template processing0.917796.787520.4589
Template load and register function0.00010.009110.0001
states
state_id_array0.00060.065910.0006
state_identifier_array0.00110.116320.0006
Override
Cache load0.00210.2173460.0000
Sytem overhead
Fetch class attribute can translate value0.00110.115840.0003
Fetch class attribute name0.00100.1025100.0001
XML
Image XML parsing0.00160.164040.0004
class_abstraction
Instantiating content class attribute0.00000.0024130.0000
General
dbfile0.00250.2590340.0001
String conversion0.00000.000630.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
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
8content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
11content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 30
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs