[TYPO3-dev] which naming scheme for a CSS XHTML id

Christopher bedlamhotel at gmail.com
Thu Jun 8 23:02:16 CEST 2006


Hi,

On 6/8/06, Franz Holzinger <franz at fholzinger.com> wrote:
> >
> > You could do something like this:
> >
> > <INPUT size="8" maxlength="10" type="text" name="###FIELD_NAME###"
> > value="###FIELD_QTY###" id="tt_products_###PRODUCT_ID###">
> >
>
> However you have the drawback that the products ids might vary from one
> site to another. And you will always get different numbers if you browse
> through the list. So if you want to have the id of the second line and
> second column always to have id="tt_products_list_5" then the solution
> with a item counter inside of tt_products will be needed.

This was the reason I was talking about making the id attribute value
TS-aware--you could, in principle, use LOAD_REGISTER to count products
on the page I think.


-Christopher




More information about the TYPO3-dev mailing list