[TYPO3-project-formidable] renderlet:LISTER and renderlet:DATE with activelistable="true"
Manuel Rego Casasnovas
mrego at igalia.com
Wed Jul 16 07:17:04 CEST 2008
On Tue, 2008-07-15 at 16:13 +0200, raymond allusure wrote:
> Hi everybody,
> I wanted to use a renderlet: LISTER with a renderlet: DATE, with the
> possibility of modifying the renderlet: DATE.
>
> The XML code:
>
> <renderlet:LISTER name="mylist" cachehash="true">
> <datasource use="pages" />
> <columns>
> <column name="title" type="renderlet:TEXT" listHeader="Page
> title" />
> <column name="crdate-2" type="renderlet:DATE" listHeader="CR
> date" activelistable="true">
> <data>
> <datetime format="%d %B %Y" />
> </data>
> </column>
> </columns>
> </renderlet:LISTER>
>
> The problem occurs when there is more than a line in the table. You can
> change the renderlet: DATE as the first line only.
>
> I think it is because the same id is used for all lines.
>
>
> Line 1:
> <TD class=col-crdate-2>
> <IMG id=newlisterpi2_mylist:crdate-2_trigger_row style="CURSOR:
> pointer" alt="Pick date" src="doc/img.gif">
> <SPAN id=showspan_newlisterpi2_mylist:crdate-2_row>...</SPAN>
> <INPUT id=newlisterpi2_mylist:crdate-2_row type=hidden
> name=newlisterpi2[mylist:crdate-2][]>
> </TD>
>
>
> Line 2 is exactly the same:
>
> <TD class=col-crdate-2>
> <IMG id=newlisterpi2_mylist:crdate-2_trigger_row style="CURSOR:
> pointer" alt="Pick date" src="doc/img.gif">
> <SPAN id=showspan_newlisterpi2_mylist:crdate-2_row>...</SPAN>
> <INPUT id=newlisterpi2_mylist:crdate-2_row type=hidden
> name=newlisterpi2[mylist:crdate-2][]>
> </TD>
>
What revision are you using?
If you use latest revisions you'll get something like that:
<INPUT name="newlisterpi2[mylist][1][crdate-2] ... />
<INPUT name="newlisterpi2[mylist][2][crdate-2] ... />
<INPUT name="newlisterpi2[mylist][3][crdate-2] ... />
You can read more information at:
http://formidable.typo3.ug/typo3-form-news/news/0026-forms-inside-a-renderlet-lister/start/1216162863/back/2.html
I hope this helps.
Best regards,
Rego
--
Manuel Rego Casasnovas
Computer Science Engineer
mailto:mrego at igalia.com
Tel: +34 986 10 76 10
Fax: +34 981 91 39 49
Igalia - http://www.igalia.com
More information about the TYPO3-project-formidable
mailing list