[TYPO3-hci] TYPO3 Template Code feature wish

Christopher bedlamminusspamhotel at gmail.com
Thu Jul 6 20:52:11 CEST 2006


Hi,

Johannes Reichardt wrote:
> Hi Andreas,
> 
> Maybe typoscript could be tweaked to make use of such things as \n 
> instead? (dunno how this would be technically possible, but it would be 
> more compliant to coding standards i guess)
> 
> - Johannes
>> Hi!
>> It might not be a direct feature request for usuability, but maybe
>> indirect... It woule be nice, if something like valueln could be
>> introduced. This valueln should do the same as value, but add a
>> linebreak to the html sourcecode at the end of the line.
>> So that you could write
>> page.20 = HTML
>> page.20.value (
>> Bla
>> Bla
>> )
>>
>> or
>> page.20 = HTML
>> page.20.valueln = Bla
>> page.30 = HTML
>> page.30.valueln = Bla
>>
>> it would make the htmloutput much more "usuable" ;)

Though you can't do it with TS, it's already possible to get very nicely 
formatted html from TYPO3--enable Tidy in the install tool, and pass it 
a string something like this:

/path/to/tidy -i --quiet true --tidy-mark true -wrap 0 -utf8 
--break-before-br true --indent yes --indent-attributes true 
--indent-spaces 2 --tab-size 2

For more info on configuring Tidy, try here:

http://tidy.sourceforge.net/docs/quickref.html

-Christopher



More information about the TYPO3-team-hci mailing list