[Typo3] rtehtmlarea and bulletlist formatting

Christopher bedlamhotel at gmail.com
Tue Nov 29 21:03:11 CET 2005


Hi,

On 29/11/05, Patrick Rodacker <rod at biba.uni-bremen.de> wrote:
> Hi list,
>
> I've spent half a day searching for some solution to the problem of
> formatting the bullet list within the RTE (rtehtmlarea). Well, I've
> found a lot of threads within this list as well as in other forums, but
> none of the proposed solutions seem to work in my case.
>
> I am using the static template 'content(default)' on a typo3 3.8.0
> system with the rtehtmlarea and want to wrap the unordered lists created
> with the RTE in a normal text element. The bullet images should be
> different depending on the page id.
>
> I thought the following script would do part of the trick ...
>
> tt_content.20.text.parseFunc.tags.typolist.default.wrap = <ul
> class="my-class"> | </ul>
> tt_content.text.20.parseFunc.tags.typolist.default.split.1.wrap = <li
> class="my-class">|</li>
> tt_content.text.20.parseFunc.tags.typolist.1.fontTag = <ol
> class="my-class"> | </ol>
> tt_content.text.20.parseFunc.tags.typolist.1.split.1.wrap =
>
> ... but these entries don't have any effect. The list output in the
> frontend is still a simple unordered list:
>
> <ul>
>         <li>Some text</li>
>         <li>Some text</li>
>         <li>Some text</li>
> </ul>
>
>
> Does anybody know how to set up the configuration to wrap the lists in a
> userdefined way?
>
> And maybe somebody can explain to me, why the code above does not work
> or is bypassed by the rte (rtehtmlarea)? Am I missing something?
>

I'm not sure what the problem is with the TS, but why not explain what
you're trying to accomplish with the classes instead? The html you're
trying to generate looks wretchedly bad. There is almost _never_ a
situation where the default state of an element needs a class or id
attribute.

-Christopher



More information about the TYPO3-english mailing list