[TYPO3-english] Replace images with ALT text

Bob bitsandbob at googlemail.com
Tue Feb 24 11:42:29 CET 2009

Thanks Stephen.

I'm using RealURL, so I don;t have typeNUm in my URLs. But based on your 
example, I've managed to do something with globalString on REQUEST_URI 
to match the URL instead.

Still stumped on how to replace images with their ALT attributes without 
removing all the textual content though (simply commenting out the lines 
that delete the objects to start with doesn't help...)

Thanks again.


StephenBungert wrote:
> Bob-279 wrote:
>> 1) it makes all the the text in my "Text w/Image" content disappear
>> 2) I can't seem to work out how to get it to apply to one page type only
> Probably becuase you deleted the whole textpic object here first:
> tt_content.textpic > 
> I think you could put the TypoScript in a condition to check the page type:
> See tsref section on conditions:
> http://typo3.org/documentation/document-library/references/doc_core_tsref/4.1.0/view/4/1/#id3973274
> # Change 1 to whatever page type number you want
> [globalVar = GP:typeNum=1]
> ...
> [global]
> -----

More information about the TYPO3-english mailing list