[TYPO3-content-rendering] tt_content.menu.20 in TPYO3 4.0beta3
JoH
info at cybercraft.de
Mon Mar 6 23:26:02 CET 2006
> I have built that menu. Sebastian implemented it. The bug is not in
> the menu, but the way the conditions seem to work. On one site I
> experienced the same, but for another site everything is the way it
> is supposed to be. I thought it had something to do with the way I
> configured that site, but fortunately (or not) this does not seem to
> be the case. Is this a site you upgraded? I have no clue what causes
> this.
These are the relevant parts of CSS-styled-content 0.3.1
As you can see there are allWrap parameters defined that are not cleared in
the "accessibility mode"
Thus you will get an <li> out of wrapItemAndSub still containing a <p> out
of allWrap.
# ****************
# CType: menu
# ****************
tt_content.menu = COA
tt_content.menu {
10 = < lib.stdheader
20 = CASE
20 {
key.field = menu_type
# "Menu of these pages"
default = HMENU
default.wrap = <div class="csc-menu csc-menu-def">|</div>
default {
special = list
special.value.field = pages
1 = TMENU
1.NO.allWrap = <p>|</p>
1.NO.stdWrap.htmlSpecialChars = 1
1.target = {$content.pageFrameObj}
}
# "Menu of subpages to these pages"
1 < .default
1.special = directory
1.wrap = <div class="csc-menu csc-menu-1">|</div>
# "Sitemap"
2 = HMENU
2.wrap = <div class="csc-menu csc-menu-2">|</div>
2 {
1 = TMENU
1.NO.allWrap = <p class="csc-sitemap csc-sitemap-level1">|</p>
1.NO.stdWrap.htmlSpecialChars = 1
1.target = {$content.pageFrameObj}
1.expAll = 1
2 < .1
2.NO.allWrap = <p class="csc-sitemap csc-sitemap-level2">|</p>
3 < .1
3.NO.allWrap = <p class="csc-sitemap csc-sitemap-level3">|</p>
4 < .1
4.NO.allWrap = <p class="csc-sitemap csc-sitemap-level4">|</p>
4.expAll = 0
}
# "Section index (pagecontent w/Index checked)"
3 < styles.content.get
3.wrap = <div class="csc-menu csc-menu-3">|</div>
3.select.andWhere = sectionIndex!=0
3.select.pidInList.override.field = pages
3.renderObj = TEXT
3.renderObj {
fieldRequired = header
trim=1
field = header
htmlSpecialChars = 1
wrap = <p class="csc-section">|</p>
typolink.parameter.field = pid
typolink.section.field = uid
}
# "Menu of subpages to these pages (with abstract)"
4 < .1
4.wrap = <div class="csc-menu csc-menu-4">|</div>
4.1.NO {
allWrap = <p>|</p>
after.required = 1
after.data = field : abstract // field : description // field : subtitle
after.htmlSpecialChars = 1
after.wrap = </p><p class="csc-abstract">|
}
# "Recently updated pages"
5 < .default
5.wrap = <div class="csc-menu csc-menu-5">|</div>
5.special = updated
5.special {
maxAge = 3600*24*7
excludeNoSearchPages = 1
}
# "Related pages (based on keywords)"
6 < .default
6.wrap = <div class="csc-menu csc-menu-6">|</div>
6.special = keywords
6.special {
excludeNoSearchPages = 1
}
# "Menu of subpages to these pages + sections"
7 < .1
7.wrap = <div class="csc-menu csc-menu-7">|</div>
7.1.expAll = 1
7.2 < .7.1
7.2.sectionIndex = 1
7.2.sectionIndex.type = header
7.2.NO.allWrap = <p class="csc-section">|</p>
}
20.stdWrap {
editIcons = tt_content: menu_type, pages
editIcons.iconTitle.data =
LLL:EXT:css_styled_content/pi1/locallang.php:eIcon.menuSitemap
prefixComment = 2 | Menu/Sitemap element:
}
}
# *********************************************************************
# ACCESSIBILTY MODE
# *********************************************************************
# Match TYPO3 3.9.0 and later
[compatVersion = 3.9.0]
# accessible menu
tt_content.menu.20 {
# "Menu of these pages"
default.wrap = <ul class="csc-menu csc-menu-def">|</ul>
default.1.NO.allWrap = <li>|</li>
default.1.NO.ATagTitle.field = description // title
# "Menu of subpages to these pages"
1.wrap = <ul class="csc-menu csc-menu-1">|</ul>
# "Sitemap - liststyle"
2 >
2 = HMENU
2 {
wrap = <div class="csc-sitemap">|</div>
1 = TMENU
1 {
noBlur=1
expAll=1
wrap = <ul>|</ul>
NO {
stdWrap.htmlSpecialChars = 1
wrapItemAndSub = <li>|</li>
ATagTitle.field = description // title
}
}
2<.1
3<.1
4<.1
5<.1
6<.1
7<.1
}
# "Section index (pagecontent w/Index checked - liststyle)"
3.wrap = <ul class="csc-menu csc-menu-3">|</ul>
3.renderObj.noBlur = 1
3.renderObj.wrap = <li class="csc-section">|</li>
# "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
}
# "Recently updated pages"
5.wrap = <ul class="csc-menu csc-menu-5">|</ul>
# "Related pages (based on keywords)"
6.wrap = <ul class="csc-menu csc-menu-6">|</ul>
# "Menu of subpages to these pages + sections - liststyle"
7.wrap = <ul class="csc-menu csc-menu-7">|</ul>
7.2.NO.allWrap = <li class="csc-section">|</li>
7.2.NO.ATagTitle.field = description // title
}
Should be fixed before RC1.
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