Problem with dynamic block and ManualAddingOfItems

Author Message

Sébastien Antoniotti

Sunday 29 June 2008 6:44:14 am

Hi !

I have some troubles with dynamic blocks and ManualAddingOfItems=enable.

First, if I set a block like this :

[block1]
Name=Home - block1
NumberOfValidItems=1
NumberOfArchivedItems=0
ManualAddingOfItems=disabled
FetchClass=Lastcontent_fetcher
FetchFixedParameters[]
FetchFixedParameters[Class]=my_article_class
FetchFixedParameters[Source]=456
FetchFixedParameters[Limit]=1
FetchParameters[]
FetchParameters[Source]=nodeID
# Single / Multiple
FetchParametersSelectionType[]
FetchParametersSelectionType[Source]=multiple
# True / False
FetchParametersIsRequired[]
FetchParametersIsRequired[Source]=true

... All is right, when editing the block (into the backoffice), I can specify the fetch parameters (like Source), and then the last article is fetched by the Lastcontent_fetcher class.

The trouble comes when I set ManualAddingOfItems to enabled (because I want a possible human priorisation on the article displayed), in the backoffice, the "choose source" button is not avalaible, and the "Add item" button has replaced it.

Do you think I badly configured the block or this is something impossible to do with ezFlow ?

eZ Publish Freelance
web : http://www.webaxis.fr

Bin LIU

Monday 30 June 2008 1:35:34 am

it's norml.

ManualAddingOfItems=enable, manual mode, 'add item' appear

ManualAddingOfItems=disable, auto mode, ''choose source" appear

if you want to human priorisation on the article displayed, in your Lastcontent_fetcher
class order by 'priority', but it doesn't work by the last published.

it's a bug that we can't change the priority when the items ware published. I think the next version will fix it.
If you really want for now, i have a patch
see it :
http://ez.no/developer/forum/extensions/ez_flow/change_the_priority_in_the_list_valid_of_block_manual

=== 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

Sébastien Antoniotti

Monday 30 June 2008 3:41:45 am

Hi Bin !

Thank you for your answer, that this damage is not yet scheduled eZ Flow.

My client does not want to patch, so I could not use your improvement.

Thank you for your invaluable help !

eZ Publish Freelance
web : http://www.webaxis.fr

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

Main resources:

Total runtime0.1434 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 589.6172152.6563
Module start 'layout' 0.00520.0041 742.273439.5078
Module start 'content' 0.00920.1325 781.7813550.4531
Module end 'content' 0.14170.0016 1,332.234412.4141
Script end 0.1433  1,344.6484 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00322.2632160.0002
Check MTime0.00130.9118160.0001
Mysql Total
Database connection0.00080.582410.0008
Mysqli_queries0.092364.3668590.0016
Looping result0.00050.3687570.0000
Template Total0.113379.020.0566
Template load0.00201.375620.0010
Template processing0.111377.612920.0556
Template load and register function0.00010.071210.0001
states
state_id_array0.00070.463110.0007
state_identifier_array0.00090.642920.0005
Override
Cache load0.00161.1323280.0001
Sytem overhead
Fetch class attribute can translate value0.00060.440020.0003
Fetch class attribute name0.00100.712250.0002
XML
Image XML parsing0.00120.804220.0006
class_abstraction
Instantiating content class attribute0.00000.031860.0000
General
dbfile0.00140.9710210.0001
String conversion0.00000.007040.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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 17
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs