Frontpage

Author Message

David Santiso

Friday 07 January 2011 1:14:36 pm

Hi,

I've add a new class. This class is a form where the users adds content. I want to show in frontpage a list of content that users have added in this form. How I can do?

Thanks,

David

Romeo Antony

Saturday 08 January 2011 11:33:26 pm

Hi David,

To display the contents in frontpage, you can use either dynamic block of manual block. If you use manual block , you just only need to manually select the nodes from content tree to display in particular block .

If you you dynamic block , you can fetch the nodes using an ezflow fetch class with parameters passed to the fetch class.

For better understanding. I would suggest you to read through block.ini and zone.ini in ezflow extension.

So that you can customize blocks and zones , also it helps to fetch contents from your custom class created.

Regards

Romeo

David Santiso

Sunday 09 January 2011 5:31:59 am

Yes, but I want to show the information added with this form. This information doesn't appear as a node. It's like a feedback form.

David Santiso

Sunday 09 January 2011 5:43:41 am

I put a form on the front-end. Users fill out and send the information and I want to show the information on the home page.

If I create an article (for example), the item is saved as a node, then I can select to display it, but the result of this form doesn't create a node.

Romeo Antony

Sunday 09 January 2011 5:44:10 am

Feel free to post the code . So that can help more.

David Santiso

Sunday 09 January 2011 8:43:09 am

The code? I haven't even touched code.

Peter Keung

Sunday 09 January 2011 4:46:49 pm

There is an undocumented fetch function 'content', 'collected_info_list'. It has optional parameters 'object_id', 'creator_id', 'user_identifier', 'limit', 'offset', and 'sort_by'.

Also see the documented content fetch functions 'collected_info_collection', 'collected_info_count', and 'collected_info_count_list': http://doc.ez.no/eZ-Publish/Technical-manual/4.x/Reference/Modules/content/Fetch-functions

http://www.mugo.ca
Mugo Web, eZ Partner in Vancouver, Canada

David Santiso

Tuesday 11 January 2011 10:38:00 am

Ok, but... first I should create a block on the main page.
How I can create a block that is not default?

Thanks

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

Main resources:

Total runtime0.0233 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.0111 587.7891152.6094
Module start 'layout' 0.01120.0042 740.398439.4063
Module start 'content' 0.01540.0059 779.804797.3047
Module end 'content' 0.02120.0020 877.109438.2891
Script end 0.0232  915.3984 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002912.4201140.0002
Check MTime0.00125.0367140.0001
Mysql Total
Database connection0.00135.380710.0013
Mysqli_queries0.003816.122630.0013
Looping result0.00000.080910.0000
Template Total0.00177.410.0017
Template load0.00093.933910.0009
Template processing0.00083.423010.0008
Override
Cache load0.00072.804510.0007
General
dbfile0.00031.403880.0000
String conversion0.00000.037940.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