[Typo3-shop] Extra input field in listview
Franz Holzinger
franz at fholzinger.com
Tue Nov 29 15:18:09 CET 2005
Hello Jogvan Olsen,
> The problem with adding the car brand in the variant field in backend, is
> that I need to have all car brands and all models for each brand (it is a
> shop that sells car rims for all kind of cars).
> The variant field is only 256 char wide, which is not enough for this kind
> of data.
>
> So I think the best solution would be if the buyer could type in the needed
> information.
>
> So if you could guide me how I can use variant 3 for this purpose, would it
> be nice.
>
if you have many different variants then the solutions are:
- create a new attribute table and attribute values table (this is the
best solution supporting also different languages)
- or use the solution form McPringle:
http://www.typo3.net/forum/list/list_post//33835/
add the new field for variant 3 as mediumtext
description mediumtext NOT NUL,
and in tca.php
'description' => Array (
'exclude' => 1,
'label' =>
'LLL:EXT:tt_products/locallang_tca.php:tt_products.description',
'config' => Array (
'type' => 'text'
'cols' => '80',
'rows' => '4',
)
),
and like usual enter the values separated by semicolon ';'.
Then additional work has to be done to translate the texts into other
languages. Description should become variant 3 and can be used to write
more descriptive texts. However this solution is not so good as with
attribute tables, because you do not have images and you have to reenter
all the same texts with each product again and again.
I do not know if the last solution should come into tt_products.
Franz
More information about the TYPO3-project-tt-products
mailing list