typo3-english  

Re: [TYPO3] Subpages Under Spacer Page Type... Possible?

Christopher Torgalson
Wed, 15 Aug 2007 12:28:33 -0700

Hi,

On 8/15/07, Timothy Patterson <[EMAIL PROTECTED]> wrote:
> I would use a shortcut as a workaround, however I legitimately use the
> shortcut Doktype throughout my various menus...  Puzzling, isn't it?
>
> Would it be possible to add some sort of field to the Page Properties
> that would set the doNotLinkIt TS for that menu item?

Yes, but an even easier solution would be to add a new page type:

# This goes in TSconfig field!
TCEFORM.pages.doktype.addItems.123 = Special Page Type

To make this work, you'll have to remove the default link, recreate it
and un-set it when the page type is '123':

lib.spc_menu = HMENU
lib.spc_menu {
        1 = TMENU
        1 {
                expAll = 1
                noBlur = 1
                wrap = <ul>|</ul>

                NO {
                        wrapItemAndSub = |</li>
                        doNotLinkIt = 1
                        stdWrap.cObject = CASE
                        stdWrap.cObject {
                                key.field = doktype

                                default = HTML
                                default {
                                        value {
                                                field = title
                                                typolink {
                                                        parameter.field = uid
                                                        wrap = <li>|
                                                }                               
                
                                        }
                                }
                                
                                123 < .default
                                123.value {
                                        typolink >
                                        wrap = <li>|
                                }
                        }
                }
        }
        2 < .1
        3 < .1
        4 < .1
}

-- 
Christopher Torgalson
http://www.typo3apprentice.com/
_______________________________________________
TYPO3-english mailing list
TYPO3-english@lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english