Forums / Setup & design / How to use $grouped_related_contentobjects ?

How to use $grouped_related_contentobjects ?

Author Message

H-Works Agency

Wednesday 26 July 2006 4:21:41 am

How to use $grouped_related_contentobjects to have for a certain nodes related objects grouped by groups founded in content.ini ?

It looks like a new feature since 3.5 but i can't find any documentation about this.

In the admin part, this variable is used under 'design/admin/templates/content/edit_relations.tpl'

But when i try to use it in a classical template on the public site this variable is undefined.

Any idea ?

Martin

EZP is Great

Kristof Coomans

Wednesday 26 July 2006 7:05:34 am

Hello Martin

grep to the rescue :-)

cd to your eZ publish root dir
grep -irlP "grouped_related_contentobjects" *

you will get back a list with at least these files:

design/admin/templates/content/edit_relations.tpl
doc/features/3.5/related_object.txt (contains the documentation)
kernel/content/relation_edit.php (this file is included by kernel/content/edit.php, contains the PHP code to get the array you want, search for $groupedRelatedObjects)

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

H-Works Agency

Thursday 03 August 2006 10:30:44 am

Sorry...didn't set the 'track changes' on my topic.

Thanx for your 'grep' technique...i use it a lot for those kind of search operations :)

So from what you tell me, this $grouped_related_contentobjects is not part of the $node object. Though i have to create it myself.

Martin

EZP is Great

Kristof Coomans

Thursday 03 August 2006 11:02:22 pm

So from what you tell me, this $grouped_related_contentobjects is not part of the $node object. Though i have to create it myself.

Indeed. You should post an enhancement request to have this as a functional attribute in eZContentObject.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

eZ debug

Timing: Jan 31 2025 04:22:57
Script start
Timing: Jan 31 2025 04:22:57
Module start 'content'
Timing: Jan 31 2025 04:22:57
Module end 'content'
Timing: Jan 31 2025 04:22:58
Script end

Main resources:

Total runtime0.1379 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.0050 588.0625180.8125
Module start 'content' 0.00500.0058 768.875098.0547
Module end 'content' 0.01080.1270 866.9297526.2500
Script end 0.1378  1,393.1797 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00332.4221200.0002
Check MTime0.00141.0162200.0001
Mysql Total
Database connection0.00070.490110.0007
Mysqli_queries0.093868.04321410.0007
Looping result0.00120.89881390.0000
Template Total0.126791.910.1267
Template load0.00080.612710.0008
Template processing0.125991.262210.1259
Override
Cache load0.00060.427710.0006
Sytem overhead
Fetch class attribute can translate value0.00080.606110.0008
XML
Image XML parsing0.00020.153710.0002
General
dbfile0.00634.5416200.0003
String conversion0.00000.004330.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.0002 secs