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

Franz Holzinger franz at fholzinger.com
Thu Jun 8 22:57:30 CEST 2006


> 
> 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.


- Franz





More information about the TYPO3-dev mailing list