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.