[TYPO3-RTE] Table in Unordered List

Tapio Markula tapio.markula at xetpoint.fi
Sat Nov 29 15:05:25 CET 2008


Uschi Renziehausen kirjoitti:
> Hi Marcus and Tapio,
> 
>>>
>>> is it possible to have a table within a list element. Right now the
>>> table looks ok in the rte and the database. But in the FE it is rendered
>>> as html source.
> 
> Definitely yes, as it works in my installation :-) I can have tables 
> inside lists and the other way round. Here is my adaptation of 
> lib.parseFunc_RTE:

maybe the problem is that tables has not handled recursively - anyway 
the problems seems to relate with externalBlocks

getting nested tables then this way?

lib.parseFunc_RTE {

     # @description Parse certain block elements seperately
     externalBlocks = table, blockquote, ol,ul, div, dl, dd
     externalBlocks {
         # The blockquote content is passed into parseFunc again...
         blockquote.stripNL=1
         blockquote.callRecursive=1
         blockquote.callRecursive.tagStdWrap.HTMLparser = 1

         div.stripNL=1
         div.callRecursive = 1

         dl.stripNL=1
         dl.callRecursive = 1

         dd.stripNL=1
         dd.callRecursive = 1

         ol.stripNL=1
         ol.stdWrap.parseFunc = < lib.parseFunc

         ul.stripNL=1
         ul.stdWrap.parseFunc = < lib.parseFunc

         table.stripNL=1
         table.stdWrap.HTMLparser = 1
         table.callRecursive=1
	table.callRecursive.tagStdWrap.HTMLparser = 1


         table.stdWrap.HTMLparser.keepNonMatchedTags = 1
         # Do NOT add any unwanted p elements in table cells, and do NOT 
remove any p-elements that have been added by authors!
         table.HTMLtableCells=1
         table.HTMLtableCells.default.stdWrap.parseFunc =< lib.parseFunc
     }
     nonTypoTagStdWrap.encapsLines {
         encapsTagList = div,p,pre,h1,h2,h3,h4,h5,h6,dt,hr
         nonWrappedTag = P
         innerStdWrap_all.ifBlank = &nbsp;

     }
     nonTypoTagStdWrap.HTMLparser = 1
     nonTypoTagStdWrap.HTMLparser {
         keepNonMatchedTags = 1
         htmlSpecialChars = 2
     }
}


More information about the TYPO3-project-rte mailing list