[TYPO3] titleText and altText required

Graham Solomon graham.solomon at powys.gov.uk
Fri Aug 4 16:14:46 CEST 2006


We have done the same thing on our website. 

Can anyone explain to me though why it is not possible to have a textarea as
a mandatory field in the BE? Its frustrating because forcing the alt/title
text to input means you will always have the same alt/title text for each
image in that element, whereas with a textarea you can have each line
relate to a different image.


Thanks,
Graham

Christian Heck wrote:

> Peter Russ wrote:
>> 
>> No eval for type='text' ;-)
>> Only chance is to set type='input' but this might cause other problems.
>> So should be checked.
>> 
>> Regs. Peter.
> 
> That's right.
> 
> Here is my extTables.php to get everything wirking:
> 
> ----------------------
> <?php
> t3lib_div::loadTCA("tt_content");
> 
> // wandelt das altText Feld von Bildern im BE zu einem imput-Feld um.
> $GLOBALS["TCA"]["tt_content"]["columns"]["altText"]["config"]["type"] =
> "input";
> 
> // setze die Groesse und max. Zeichenlaenge des Impot-Feldes auf 40
> $GLOBALS["TCA"]["tt_content"]["columns"]["altText"]["config"]["size"] =
> "40";
> $GLOBALS["TCA"]["tt_content"]["columns"]["altText"]["config"]["max"] =
> "40";
> 
> // evaluiere die eigegebenen daten und macht die Eingabe zwingend
> $GLOBALS["TCA"]["tt_content"]["columns"]["altText"]["config"]["eval"] =
> "trim, required, nospace";
> 
> // setze das Feld alias von einer Seite auf required "zwingend"
> $GLOBALS["TCA"]["pages"]["columns"]["alias"]["config"]["eval"] =
> "required"; ?>
> 
> ----------------------
> 
> Have fun
> 
> Christian Heck




More information about the TYPO3-english mailing list