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

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 18 2025 21:16:14
Script start
Timing: Jan 18 2025 21:16:14
Module start 'layout'
Timing: Jan 18 2025 21:16:14
Module start 'content'
Timing: Jan 18 2025 21:16:14
Module end 'content'
Timing: Jan 18 2025 21:16:14
Script end

Main resources:

Total runtime0.0159 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.0051 589.2734152.6406
Module start 'layout' 0.00510.0034 741.914139.4766
Module start 'content' 0.00860.0052 781.390693.3672
Module end 'content' 0.01380.0021 874.757834.3047
Script end 0.0159  909.0625 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002515.4044140.0002
Check MTime0.00116.6466140.0001
Mysql Total
Database connection0.00074.270410.0007
Mysqli_queries0.003119.549030.0010
Looping result0.00000.176710.0000
Template Total0.001710.610.0017
Template load0.00085.137310.0008
Template processing0.00095.408310.0009
Override
Cache load0.00053.334510.0005
General
dbfile0.00021.533380.0000
String conversion0.00000.044940.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