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

Christopher Torgalson bedlamhotel at gmail.com
Wed Aug 15 21:27:56 CEST 2007


Hi,

On 8/15/07, Timothy Patterson <tjpatter at svsu.edu> 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/


More information about the TYPO3-english mailing list