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 29 2025 13:43:55
Script start
Timing: Jan 29 2025 13:43:55
Module start 'layout'
Timing: Jan 29 2025 13:43:55
Module start 'content'
Timing: Jan 29 2025 13:43:55
Module end 'content'
Timing: Jan 29 2025 13:43:55
Script end

Main resources:

Total runtime0.0151 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.0055 588.1563151.2109
Module start 'layout' 0.00550.0028 739.367236.6484
Module start 'content' 0.00830.0052 776.015695.2969
Module end 'content' 0.01350.0015 871.312537.9922
Script end 0.0150  909.3047 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002416.2390140.0002
Check MTime0.00117.5920140.0001
Mysql Total
Database connection0.00085.095710.0008
Mysqli_queries0.003019.817230.0010
Looping result0.00000.087110.0000
Template Total0.00128.010.0012
Template load0.00095.686510.0009
Template processing0.00032.319010.0003
Override
Cache load0.00063.980510.0006
General
dbfile0.00149.434280.0002
String conversion0.00000.045940.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