[TYPO3-core] RFC: #7101: CType bullets not rendered correctly

Oliver Hader oh at inpublica.de
Tue Jan 8 19:37:16 CET 2008


Hi Steffen,

Steffen Kamper schrieb:
> this is a SVN patch request.
> 
> Type: Bugfix
> 
> BT: http://bugs.typo3.org/view.php?id=7101
> 
> Branches: Trunk
> 
> Problem:
> If you insert an CE with CType bullets, in FE the li elements are not 
> rendered.
> What you get is:
> 
> <ul class="csc-bulletlist csc-bulletlist-0">Item 1Item 2Item 3
> 
> 
> Though the Ctype bullets might be a little bit outdated, people with older 
> installations will have problems when upgrading.
> 
> Solution:
> change loop to foreach

So, the bug was probably a missing "reset($lines)" before the 
while-iteration, wasn't it? If the fix is for Trunk only you could use 
also references, e.g.

foreach($lines as &$val) {
   $val = $this->cObj->stdWrap($val, $conf[...]);
}

Let's remove the '<li>...'</li>' wrap from the PHP script and put it to 
the static TypoScript, e.g.:

tt_content.bullets.20.innerStdWrap.wrap = <li>|</li>

Otherwise: +1 on reading
Thank you! ;-)


olly
-- 
Oliver Hader
http://inpublica.de/


More information about the TYPO3-team-core mailing list