[TYPO3-content-rendering] tt_content.menu.20 in TPYO3 4.0beta3
JoH
info at cybercraft.de
Thu Mar 16 15:25:31 CET 2006
> any more feedback here? I desperately need it!
Seems to be working as expected now.
But there is one part that still doesn't seem to be correct:
+ # "Menu of subpages to these pages (with abstract)"
+ 4.wrap = <dl class="csc-menu csc-menu-4">|</dl>
+ 4.1.NO {
+ allWrap = <dt>|</dd>
+ after.wrap = </dt><dd>|
+ ATagTitle.field = description // title
+ }
In the original setup for this Menutype you get the following setup:
# "Menu of subpages to these pages"
4= HMENU
4.wrap = <div class="csc-menu csc-menu-4">|</div>
4 {
special = directory
special.value.field = pages
1 = TMENU
1.NO {
allWrap = <p>|</p>
stdWrap.htmlSpecialChars = 1
target = {$content.pageFrameObj}
after.required = 1
after.data = field : abstract // field : description // field :
subtitle
after.htmlSpecialChars = 1
after.wrap = </p><p class="csc-abstract">|
}
}
For cases without any abstract this will produce:
<div class="csc-menu csc-menu-4">
<p>Linked text</p>
</div>
and with abstract it will be:
<div class="csc-menu csc-menu-4">
<p>Linked text</p>
<p class="csc-abstract">Abstract text</p>
</div>
which is valid XHTML.
# "Menu of subpages to these pages accessible version"
4 = HMENU
4.wrap = <dl class="csc-menu csc-menu-4">|</dl>
4 {
special = directory
special.value.field = pages
1 = TMENU
1.NO {
allWrap = <dt>|</dd>
after.required = 1
after.data = field : abstract // field : description // field :
subtitle
after.htmlSpecialChars = 1
after.wrap = </dt><dd>|
stdWrap.htmlSpecialChars = 1
target = {$content.pageFrameObj}
ATagTitle.field = description // title
}
}
Here you will get the following results:
With abstract:
<dl class="csc-menu csc-menu-4">
<dt>Linked text</dt>
<dd> Abstract text</dd>
</dl>
Which is still OK but without abstract you will get
<dl class="csc-menu csc-menu-4">
<dt>Linked text</dd>
</dl>
Which is invalid in any version of HTML.
Solution:
+ # "Menu of subpages to these pages (with abstract)"
+ 4.wrap = <dl class="csc-menu csc-menu-4">|</dl>
+ 4.1.NO {
+ allWrap >
+ linkWrap = <dt>|</dt>
+ after.wrap = <dd>|</dd>
+ ATagTitle.field = description // title
+ }
If you change this +1 from me for the rest.
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-project-content-rendering
mailing list