Return to Snippet

Revision: 9987
at December 9, 2008 15:07 by ascarion


Updated Code
tt_content.menu.20.1 >
tt_content.menu.20.1 = HMENU
tt_content.menu.20.1 {
	special = directory
	stdWrap {
		prepend          = TEXT
		prepend.dataWrap = <select size="1" onchange="if (this.value != '') window.location = this.value;">
		prepend.value    = <option value="">Bitte wählen Sie:</option>
		prepend.lang.en  = <option value="">Please choose:</option>
		append           = TEXT
		append.value     = </select>
	}
	1 = TMENU
	1.NO = 1
	1.NO {
		stdWrap.crop = 50 | ... | 1
		doNotLinkIt = 1
		before {
			typolink.parameter.field = uid
			typolink.returnLast = url
			wrap = <option value=" | ">
		}
		after = </option>
	}
}
tt_content.menu.20.0 < tt_content.menu.20.1
tt_content.menu.20.0.special.value.field = pages
tt_content.menu.20.0.special = list

Revision: 9986
at December 2, 2008 14:27 by ascarion


Initial Code
tt_content.menu.20.1 >
tt_content.menu.20.1 = HMENU
tt_content.menu.20.1 {
	special = directory
	stdWrap.prepend          = TEXT
	stdWrap.prepend.dataWrap = <select size="1" onchange="if (this.value != '') window.location = '/index.php?id=' + this.value + '&L={TSFE:sys_language_uid}';">
	stdWrap.prepend.value    = <option value="">Bitte wählen Sie:</option>
	stdWrap.prepend.lang.en  = <option value="">Please choose:</option>
	stdWrap.append           = TEXT
	stdWrap.append.value     = </select>
	1 = TMENU
	1.NO = 1
	1.NO {
		stdWrap.crop = 50 | ... | 1
		doNotLinkIt = 1
		before.dataWrap = <option value="{field:uid}">
		after = </option>
	}
}
tt_content.menu.20.0 < tt_content.menu.20.1
tt_content.menu.20.0.special.value.field = pages
tt_content.menu.20.0.special = list

Initial URL

                                

Initial Description

                                

Initial Title
tt_content.menu as dropdown (menu of these pages / menu of subpages)

Initial Tags

                                

Initial Language
TYPO3