[TYPO3] Subpages Under Spacer Page Type... Possible?
Christopher Torgalson
bedlamhotel at gmail.com
Wed Aug 15 18:27:25 CEST 2007
Hi Tim,
On 8/15/07, Timothy Patterson <tjpatter at svsu.edu> wrote:
> Is it possible to display subpages under a spacer page type?
>
> Here is what I'm looking for:
>
> Page 1 (link)
> Page 2 (link)
> Page 3 (spacer - not clickable)
> Page 4 (link)
> Page 5 (link)
> Page 6 (link)
>
> Now comes the gotchas... In my menu setup, spacers can be used at any
> level and need to be able to be inserted by end-users - thus a
> TypoScript configuration is a must.
>
> Here is what I have for my TS setup:
>
> # Enable Spacers (Non-Clickable Items)
> SPC = 1
> SPC.allWrap = <li>|</li>
> SPC.expAll = 1
>
> As you can see, my menus are based off of a <ul>. The spacers
> themselves display fine (non-clickable). I just need to be able to get
> the subpages to show underneath them... Creating an "Always Open" look
> for certain parts of my menu structure.
>
> Any thoughts / ideas?
Unless I'm missing something, this is no different from any other
TMENU. The only thing I notice is that your current 'allWrap' on the
SPC pages will result in invalid HTML--use 'wrapItemAndSub' instead:
lib.menu = HMENU
lib.menu {
1 = TMENU
1 {
wrap = <ul>|</ul>
noBlur = 1
NO {
wrapItemAndSub = <li>|</li>
}
ACT = 1
ACT < .NO
ACT {
ATagParams = class="active"
}
SPC = 1
SPC < .NO
}
2 < .1
3 < .1
4 < .1
}
--
Christopher Torgalson
http://www.typo3apprentice.com/
More information about the TYPO3-english
mailing list