EZ object relation display

Author Message

John Mangadan

Friday 04 December 2009 1:09:35 pm

Hi All,

I have a class atribute "Internal Link" of type object relation which is used to store the link to an internal article.I want to diaply in a template the corresponding url.I tried like {$links.data_map.internal_link.data_text}.But it shows nothing.Can anybody help me.I am new to ezpublish.

Thanks,

John

Ɓukasz Serwatka

Tuesday 15 December 2009 12:04:00 am

Hi,

Take a look on the http://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_functions/visualization/attribute_view_gui

You can use {attribute_view_gui} template function like:

 {attribute_view_gui attribute=$links.data_map.internal_link}

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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 29 2025 13:40:22
Script start
Timing: Jan 29 2025 13:40:22
Module start 'layout'
Timing: Jan 29 2025 13:40:22
Module start 'content'
Timing: Jan 29 2025 13:40:22
Module end 'content'
Timing: Jan 29 2025 13:40:22
Script end

Main resources:

Total runtime0.0162 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0067 588.1328151.2109
Module start 'layout' 0.00680.0024 739.343836.6484
Module start 'content' 0.00920.0053 775.992290.1406
Module end 'content' 0.01450.0017 866.132829.9922
Script end 0.0162  896.1250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002616.0276140.0002
Check MTime0.00116.4700140.0001
Mysql Total
Database connection0.00148.734310.0014
Mysqli_queries0.002113.053030.0007
Looping result0.00000.104210.0000
Template Total0.00137.810.0013
Template load0.00106.013610.0010
Template processing0.00031.791810.0003
Override
Cache load0.00063.601110.0006
General
dbfile0.00095.343080.0001
String conversion0.00000.041140.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