.. ================================================== .. FOR YOUR INFORMATION .. -------------------------------------------------- .. -*- coding: utf-8 -*- with BOM. .. include:: ../../Includes.txt .. _encapslines: encapsLines ^^^^^^^^^^^ .. ### BEGIN~OF~TABLE ### .. container:: table-row Property encapsTagList Data type list of strings Description List of tags which qualify as encapsulating tags. Must be lowercase. **Example:** :: encapsTagList = div, p This setting will recognize the red line below as encapsulated lines:: First line of text Some
Some text
Some text
Some text
|
This:: First line of textSome text
becomes this::First line of text
Some text
.. container:: table-row Property innerStdWrap\_all Data type ->stdWrap Description Wraps the content inside all lines, whether they are encapsulated or not. .. container:: table-row Property encapsLinesStdWrap.[*tagname*] Data type ->stdWrap Description Wraps the content inside all encapsulated lines. ([*tagname*] is in uppercase.) .. container:: table-row Property defaultAlign Data type string /:ref:`stdWrap|
innerStdWrap_all.ifEmpty = } This example shows how to handle content rendered by TYPO3 and stylesheets where thetag is used to encapsulate each line. Say, you have made this content with the Rich Text Editor:: This is line # 1 [Above is an empty line!]
This is line # 1
[Above is an empty line!]
This line is right-aligned.
Each line is nicely wrapped withtags. The line from the database which was *already* wrapped (but in
, but keeps it's alignment. Overall, notice that the Rich Text
Editor ONLY stored the line which was in fact right-aligned - every
other line from the RTE was stored without any wrapping tags, so that
the content in the database remains as human readable as possible.
Example:
""""""""
::
# Make sure nonTypoTagStdWrap operates
# on content outside | tags, setting the line-distances to regular space like that
generated by a
before typohead.
tt_content.text.20.parseFunc.tags.typohead.stdWrap.wrap >
# Setting up nonTypoTagStdWrap to wrap the text with p-tags
tt_content.text.20.parseFunc.nonTypoTagStdWrap >
tt_content.text.20.parseFunc.nonTypoTagStdWrap.encapsLines {
encapsTagList = div,p
remapTag.DIV = P
wrapNonWrappedLines =
-tag after the content is not needed either...
tt_content.text.20.wrap >
This is an example of how to wrap traditional tt\_content bodytext
with
tag, but staying compatible with the RTE features
such as assigning classes and alignment to paragraphs.