Forums / Setup & design / Display the data of object of a folder on one page

Display the data of object of a folder on one page

Author Message

Mohammad Tufail

Tuesday 18 March 2008 1:01:01 am

I am new to eZ publish. I have created a class for members information and created three objects of that class in the members folder. I want to display the data on one page.
e.g : the class "member" has the following attributes and datatypes.
Name : textline
Address : textblock
Email : email
Picture: image

I have created the folder members and initiated three objects of member class. Now I want to display the data in the following format.

Name : Tufail
Address : xxxxxxxxxx [Picture]
xxxxxxxxxxxx
Email : someone@someone.com

Name : someone
Address : xxxxxxxxxxxxxx [Picture]
xxxxxxxxxxxxxx
Email : someone@someone.com

Please Suggest a solution for this.
Thanks in Advance.

Regards,
Mohammad Tufail

Greg McAvoy-Jensen

Tuesday 18 March 2008 9:50:58 pm

Mohammad,

Welcome to the eZ Publish community!

How are you at creating templates? This sounds like a job for a simple override template.

1. Create a line view template (.tpl file) to display the data the way you want (and use the CSS files for layout).

2. Add an entry to settings/siteaccess/your_access/override.ini.append.php to use your template for the members class.

3. Clear the template override cache.

4. Call that template by inserting an object (paper clip icon) in the XML block of your folder.

Does this make any sense? If not, specify what version you're using and I'll link some documentation.

Granite Horizon, Certified Developer of eZ Publish Web Solutions
Provider of the SaaS Solution Granite Horizon In The Cloud | http://granitehorizon.com/cloud
http://granitehorizon.com | +1 916 647 6350 | California USA | @granitegreg
Blog: http://granitehorizon.com/blog

Mohammad Tufail

Thursday 20 March 2008 4:31:14 am

Hi,
Thank you for the solution. But one more question... How can i setup a Forum for my website. I am using ez publish 4.0 and the plain site template.

Regards,
Mohammad Tufail

eZ debug

Timing: Jan 19 2025 01:17:06
Script start
Timing: Jan 19 2025 01:17:06
Module start 'content'
Timing: Jan 19 2025 01:17:07
Module end 'content'
Timing: Jan 19 2025 01:17:07
Script end

Main resources:

Total runtime1.3340 sec
Peak memory usage4,096.0000 KB
Database Queries194

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0082 589.1094180.8125
Module start 'content' 0.00821.1980 769.9219556.8047
Module end 'content' 1.20620.1277 1,326.7266336.7422
Script end 1.3339  1,663.4688 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00480.3603210.0002
Check MTime0.00150.1124210.0001
Mysql Total
Database connection0.00120.091710.0012
Mysqli_queries1.249493.65961940.0064
Looping result0.00210.15441920.0000
Template Total1.291996.820.6460
Template load0.00340.254720.0017
Template processing1.288596.591120.6443
Template load and register function0.00020.012710.0002
states
state_id_array0.00130.099910.0013
state_identifier_array0.00110.079620.0005
Override
Cache load0.00280.2129390.0001
Sytem overhead
Fetch class attribute can translate value0.00140.105830.0005
Fetch class attribute name0.00120.089250.0002
XML
Image XML parsing0.00340.254630.0011
class_abstraction
Instantiating content class attribute0.00000.000860.0000
General
dbfile0.00400.3030350.0001
String conversion0.00000.000430.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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 23
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs