[TYPO3-project-formidable] Renderlet CHECKBOX bug?
Jerome Schneider
j.schneider at ameos.com
Tue May 22 18:13:05 CEST 2007
Hello again !
Well we decided to drop the /validation section for the upcoming version
8 as it was a bit deprecated.
In theory you can place your <renderlet:submit> in the /elements section
and it will work fine
On the SVN version there is also another back-compat problem with the
pager in templated lists between TER version and SVN version:
-> the pager has now to possess a subpart of it's own in the template,
whereas in TER version the template tags for pager like:
<!-- ###PAGER### begin-->Page {page} / {pagemax}<!-- ###PAGER###
end-->
had to be placed *within* the list template
So now, to be clear, an xml configuring the pager in the lister should
look like:
<datahandler:LISTER>
<!-- your lister xml conf here -->
<pager>
<rows perpage="5" alternate="###ROW1###, ###ROW2###" />
<template> <!-- this is the new tag required for templated lists -->
<path>EXT:my_extension/res/html/lister_template.html</path>
<subpart>###LIST_PAGER###</subpart>
</template>
</pager>
</datahandler:LISTER>
And the HTML template for the list body in lister_template.html should
look like:
<!-- ###LIST_BODY### begin-->
{PAGER}
Whatever here
<!-- ###ROWS### -->
<!-- ###ROW1### -->This is template 1 for a row<!-- ###ROW1### -->
<!-- ###ROW1### -->This is template 2 for a row<!-- ###ROW1### -->
<!-- ###ROWS### -->
Whatever here again
{PAGER}
<!-- ###LIST_BODY### end-->
(note that {PAGER} now replaces the whole bunch of subparts used by the
pager, and that we have now the possibility to display more than one
pager per list)
And finaly the subpart dedicated to the list pager, that will be
substituted everywhere in your list body template where you want to
have the pager
<!-- ###LIST_PAGER### begin-->
<!-- ###PAGER### -->Page {page}/{pagemax}<!-- ###PAGER###-->
<!-- ###LINKFIRST### -->
<a href="{link}">First</a>
<!-- ###LINKFIRST### -->
<!-- ###LINKPREV### -->
<a href="{link}">Prev</a>
<!-- ###LINKPREV### end-->
<!-- ###LINKNEXT### -->
<a href="{link}">Next</a>
<!-- ###LINKNEXT### -->
<!-- ###LINKLAST### -->
<a href="{link}">Last</a>
<!-- ###LINKLAST### -->
<!-- ###LISTPAGER### end-->
I know it's a lame to have back-compat issues, but it was the only way
to have several pagers in the same list
Best regards,
jerome Schneider
Manuel Rego Casasnovas a écrit :
> Sorry Jerome,
>
> I've installed the last FORMidable version from SVN and the forms don't
> show the submit button that are in the validation part:
> <validation>
> <renderlet:SUBMIT name="btnsubmit" label="submit" />
> </validation>
>
> What has changed?
>
> Thanks,
> Rego
>
> --
> http://www.igalia.com
>
> Manuel Rego Casasnovas escribió:
>> Ok Jerome,
>>
>> Thank you very much ;-)
>>
>> Bye,
>> Rego
>>
>> --
>> http://www.igalia.com
>>
>>
>> Jerome Schneider escribió:
>>> Hello :)
>>>
>>> This bug has been fixed some days ago and code works fine now on SVN version
>>>
>>> Regards,
>>> Jerome Schneider
>>>
>>> Manuel Rego Casasnovas a écrit :
>>>> Hi.
>>>>
>>>> I've more information.
>>>>
>>>> I think that this problem is related with the functions _flatten and
>>>> _unflatten in the class tx_rdtcheckbox.
>>>>
>>>> When the function _flatten are called the param passed is a string with
>>>> the value 'Array', and it must be a real array and not a string.
>>>>
>>>> Bye,
>>>> Rego
>>>>
>>>> --
>>>> http://www.igalia.com
>>>>
>>>>
>>>> Manuel Rego Casasnovas escribió:
>>>>> Hi everyone!
>>>>>
>>>>> I'm using the CHECKBOX renderlet, I want to store the information from
>>>>> this renderlet in a database table but this doesn't work.
>>>>> The SQL query is the next:
>>>>> UPDATE tx_myext_table
>>>>> SET
>>>>> test='Array' # Here is the problem
>>>>> WHERE
>>>>> uid = '8'
>>>>>
>>>>> I think that the correct SQL query would have to be (if the user select
>>>>> test0, test2 and test3):
>>>>> UPDATE tx_myext_table
>>>>> SET
>>>>> test='0,2,3'
>>>>> WHERE
>>>>> uid = '8'
>>>>>
>>>>> The renderlet code is:
>>>>> <renderlet:CHECKBOX name="test">
>>>>> <data>
>>>>> <items>
>>>>> <item caption="test0" value="0" />
>>>>> <item caption="test1" value="1" />
>>>>> <item caption="test2" value="2" />
>>>>> <item caption="test3" value="3" />
>>>>> <item caption="test4" value="4" />
>>>>> <item caption="test5" value="5" />
>>>>> </items>
>>>>> </data>
>>>>> </renderlet:CHECKBOX>
>>>>>
>>>>> I don't know if this is a bug or not.
>>>>> Somebody knows any solution for this?
>>>>>
>>>>> Best regards,
>>>>> Rego
>>>>>
>>> _______________________________________________
>>> TYPO3-project-formidable mailing list
>>> TYPO3-project-formidable at lists.netfielders.de
>>> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project-formidable
>>>
>> _______________________________________________
>> TYPO3-project-formidable mailing list
>> TYPO3-project-formidable at lists.netfielders.de
>> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project-formidable
>>
More information about the TYPO3-project-formidable
mailing list