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 : [email protected]

Name : someone
Address : xxxxxxxxxxxxxx [Picture]
xxxxxxxxxxxxxx
Email : [email protected]

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.