Dynamic block, class selection

Author Message

Carlos Revillo

Wednesday 16 April 2008 3:04:19 am

Hi.

I'm working with ezflow now. Looks great. I have a question. I have added a block type to my block.ini.append.php. it looks like this

[List1element]
Name=Listado 1 elemento
NumberOfValidItems=1
NumberOfArchivedItems=5
ManualAddingOfItems=disabled
ViewList[]=center
ViewList[]=down
ViewName[center]=Center
ViewName[down]=Down
FetchClass=ezflowlatestobjects
FetchParameters[]
FetchParameters[Source]=nodeID
FetchParameters[Class]=Class
# Single / Multiple
FetchParametersSelectionType[Source]=single
FetchParametersSelectionType[Class]=single
FetchParametersIsRequired[]
# True / False
FetchParametersIsRequired[Source]=true
FetchParametersIsRequired[Class]=false

When i add a block from this type to one of my defined zones, I'm asked to browse content tree to select a source Node. There is a text field and a "choose button". that's perfect

But for the Class, a new textfield appears. If i type there a identifier class or a classid, all work as expected, but the question is: how can give the user the ability to select the class or classes wanted from a single or multiple select.
I mean, i don't want him to type the class. (maybe he won't know his identifier). i prefer to select it from a select or something.

so, it's posible to override that selection way?

thank you so much.

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

Main resources:

Total runtime0.1008 sec
Peak memory usage4,096.0000 KB
Database Queries48

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 589.1719152.6406
Module start 'layout' 0.00570.0042 741.812539.4609
Module start 'content' 0.00990.0896 781.2734410.3359
Module end 'content' 0.09940.0013 1,191.60948.1563
Script end 0.1007  1,199.7656 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00292.8996160.0002
Check MTime0.00121.2032160.0001
Mysql Total
Database connection0.00060.628210.0006
Mysqli_queries0.062562.0000480.0013
Looping result0.00050.4803460.0000
Template Total0.067867.320.0339
Template load0.00201.962920.0010
Template processing0.065865.309420.0329
Template load and register function0.00050.479410.0005
states
state_id_array0.00100.984510.0010
state_identifier_array0.00090.940020.0005
Override
Cache load0.00141.4156110.0001
Sytem overhead
Fetch class attribute can translate value0.00131.258310.0013
Fetch class attribute name0.00111.050110.0011
XML
Image XML parsing0.00010.111210.0001
class_abstraction
Instantiating content class attribute0.00000.007810.0000
General
dbfile0.00060.6322100.0001
String conversion0.00000.008040.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
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/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
1content/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: 8
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs