ezFlow - dynamic block

|
|
Next topic
 »
Author Message

Mircea Sabau

Tuesday 22 July 2008 12:24:28 am

Is posible to fetch "the latest news (max 15 articles)" from a folder recipient and display them as title with link and a short description...?

Bin LIU

Tuesday 22 July 2008 1:25:50 am

Hi,

You can see my example for "ezFlow - dynamic block"

http://ez.no/developer/forum/extensions/ez_flow/example_how_to_do_a_dynamic_block_useful_for_you#msg169991

and use FetchClass eZFlowLatestObjects by default in ezflow

It's OK.

=== Lagardère Active ===

Fetch random
http://projects.ez.no/la_fetch_random
LA Static Cache
http://projects.ez.no/lastaticcache
LA Bookmarks (jquery)
http://projects.ez.no/labookmark
LA Calendar (jquery)
http://projects.ez.no/lacalendar

My site ez
http://lingping.info

Mircea Sabau

Tuesday 22 July 2008 2:24:26 am

I followed your examples... But,

1. The name of the block is Block: RecipesRandom, not my own name (e.g. TOP NEWS)
2. The block display only the titles of articles. I have to put a link over the titles and, below the titles, I have to display the short description of article...

It is posssible?

Thank you.

Bin LIU

Tuesday 22 July 2008 2:36:32 am

Yes

for show the link and description, it's in your template defined in your block.ini

for my example, it's :
ViewList[]=8_recipes_random

so in my 8_recipes_random.tpl

I have the object $recipe, i can do show eveything of the recipe.

see the complated example

http://ez.no/developer/forum/extensions/ez_flow/example_how_to_do_a_dynamic_block_useful_for_you/(offset)/0#msg171011

I wish it's ok for you

=== Lagardère Active ===

Fetch random
http://projects.ez.no/la_fetch_random
LA Static Cache
http://projects.ez.no/lastaticcache
LA Bookmarks (jquery)
http://projects.ez.no/labookmark
LA Calendar (jquery)
http://projects.ez.no/lacalendar

My site ez
http://lingping.info

*- pike

Monday 23 August 2010 3:47:34 am

link is not working anymore .. is the example still around ?

thanks,

*-pike

---------------
The class eZContentObjectTreeNode does.

Graham Brookins

Wednesday 29 November 2023 1:21:26 am

Hello Everyone,

Here is a translated and active link to this older forum thread.

Cheers,
Graham

”I hope this helps” …

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 28 2025 14:22:33
Script start
Timing: Jan 28 2025 14:22:33
Module start 'layout'
Timing: Jan 28 2025 14:22:33
Module start 'content'
Error: eZImageManager::createImageAlias Jan 28 2025 14:22:33
The reference alias original file var/site/storage/images/users/administrator-users/graham-brookins/556993-1-eng-GB/graham-brookins.jpg does not exist
Error: Jan 28 2025 14:22:33
Original alias does not exist, cannot create other aliases without it
Timing: Jan 28 2025 14:22:33
Module end 'content'
Timing: Jan 28 2025 14:22:33
Script end

Main resources:

Total runtime0.1951 sec
Peak memory usage2,048.0000 KB
Database Queries70

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0070 595.2031151.2109
Module start 'layout' 0.00700.0046 746.414136.6484
Module start 'content' 0.01160.1829 783.0625543.4844
Module end 'content' 0.19450.0006 1,326.546916.0625
Script end 0.1951  1,342.6094 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00301.5219160.0002
Check MTime0.00120.6320160.0001
Mysql Total
Database connection0.00070.367910.0007
Mysqli_queries0.153978.8669700.0022
Looping result0.00040.2253670.0000
Template Total0.150777.320.0754
Template load0.00170.879520.0009
Template processing0.149076.372120.0745
Template load and register function0.00010.050710.0001
states
state_id_array0.00180.898510.0018
state_identifier_array0.00090.444820.0004
Override
Cache load0.00150.7715400.0000
Sytem overhead
Fetch class attribute can translate value0.00050.251540.0001
Fetch class attribute name0.00100.497780.0001
XML
Image XML parsing0.00381.945540.0009
class_abstraction
Instantiating content class attribute0.00000.006290.0000
General
dbfile0.00492.4904240.0002
String conversion0.00000.005140.0000
Note: percentages do not add up to 100% because some accumulators overlap

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
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.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/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 25
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs