[TYPO3] New Lines in HTML
JoH
info at cybercraft.de
Sat May 20 00:25:33 CEST 2006
Ron Hall wrote:
> I have a menu that looks like this in typoscript.
>
> // SETUP OF GLOBAL MENU
> gn.menuCode = HMENU
> gn.menuCode.entryLevel = 0
> gn.menuCode.1 = TMENU
> gn.menuCode.1 {
> // Normal Properties Level 1
> NO.allWrap = <li> | </li>
> // Active state properties Level 1
> ACT = 1
> ACT.allWrap = <li class="active"> | </li>
> // Current state properties Level 1
> CUR = 1
> CUR.allWrap = <li class="current"> | </li>
> }
>
> Currently when it generates the HTML source it puts the entire menu
> in one line which makes it difficult to read the source code. How can
> I get it to put a new line after each </li> tag so that the HTML
> source is easier to read and evalute?
Try something like this:
// SETUP OF GLOBAL MENU
gn.menuCode = HMENU
gn.menuCode.entryLevel = 0
gn.menuCode.1 = TMENU
gn.menuCode.1 {
// Normal Properties Level 1
NO.allWrap (
<li>
|
</li>
)
// Active state properties Level 1
ACT = 1
ACT.allWrap (
<li class="active">
|
</li>
// Current state properties Level 1
CUR = 1
CUR.allWrap (
<li class="current">
|
</li>
)
}
Joey
--
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your knob sometimes!)
Dieter Nuhr, German comedian
openBC: http://www.cybercraft.de
More information about the TYPO3-english
mailing list