Forums / Developer / Frontpage

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

eZ debug

Timing: Jan 30 2025 21:38:58
Script start
Timing: Jan 30 2025 21:38:58
Module start 'content'
Timing: Jan 30 2025 21:38:58
Module end 'content'
Timing: Jan 30 2025 21:38:58
Script end

Main resources:

Total runtime0.2265 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0070 587.7578370.3203
Module start 'content' 0.00700.0129 958.07811,005.4766
Module end 'content' 0.01990.2066 1,963.55473,893.4844
Script end 0.2264  5,857.0391 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00431.9028200.0002
Check MTime0.00130.5872200.0001
Mysql Total
Database connection0.00060.279910.0006
Mysqli_queries0.132458.46101410.0009
Looping result0.00150.67891390.0000
Template Total0.206291.010.2062
Template load0.00080.355310.0008
Template processing0.205490.682510.2054
Override
Cache load0.00060.253510.0006
Sytem overhead
Fetch class attribute can translate value0.00210.906810.0021
XML
Image XML parsing0.00030.114310.0003
General
dbfile0.00522.2779200.0003
String conversion0.00000.002630.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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