[TYPO3-project-formidable] Renderlet CHECKBOX bug?
Manuel Rego Casasnovas
mrego at igalia.com
Wed May 23 09:53:12 CEST 2007
Hi Jerome!
Thank you very much for your explanations :-)
But now I've a problem with the new pager. I've tried it and this
doesn't work.
The pager is showed well but the links don't work.
My code is the next, for the template:
<!-- ###LIST_PAGER### begin-->
<div class="pagination">
<!-- ###LINKFIRST### begin--><a href = "{link}">first</a><!--
###LINKFIRST### end-->
<!-- ###LINKPREV### begin--><a href = "{link}">previous</a><!--
###LINKPREV### end-->
<!-- ###PAGER### begin-->{page}/{pagemax}<!-- ###PAGER### end-->
<!-- ###LINKNEXT### begin--><a href = "{link}">next</a><!--
###LINKNEXT### end-->
<!-- ###LINKLAST### begin--><a href = "{link}">last</a><!--
###LINKLAST### end-->
</div>
<!-- ###LIST_PAGER### end-->
The list XML configuration:
<pager>
<rows>
<perpage>3</perpage>
<alternate>###ROW1###,###ROW2###</alternate>
</rows>
<template>
<path>EXT:my_ext/pi1/templates/template.html</path>
<subpart>###LIST_PAGER###</subpart>
</template>
</pager>
I don't find any problem in my code :-[
With regard to the last SVN version I've had to do another change for
get the same result that in the 0.7 version. This change is in the
renderlet DATE, but it isn't a back-compat problem, it is a very simple
change ;-)
<datetime>
<allowmanualedition>true</allowmanualedition>
</datetime>
Thanks,
Rego
--
http://www.igalia.com
Jerome Schneider escribió:
> 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
>>>
>>>
> _______________________________________________
> 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