[TYPO3-english] GMENU troubles

Ronald Renfro rr at dreimorgen.com
Thu Nov 13 23:39:59 CET 2008


Hello List,

I am trying to create a GMENU based the page doctype. The images for  
the menu are to be taken from the page media field (Image 0 = normal  
state,  Image 1 = rollover state). The following typoscript code is  
almost correct – the links are generated correctly and the images are  
visible. But for some reason I cannot get the Rollover state to work.

Any help or ideas what is wrong would be really cool!

----------
PICTSPACE = HMENU
PICTSPACE.special = list
PICTSPACE.special.value = 814,808,807,815,806,805,804,803,802
PICTSPACE.excludeDoktypes=6
PICTSPACE.wrap = <div id="pictspace">|</div>
PICTSPACE.1 = GMENU
PICTSPACE.1 {

	NO {

		XY = 50,50
		backColor = #DDDDDD
		transparentBackground=0
		
		allStdWrap.override.cObject = CASE
		allStdWrap.override.cObject {
			key.field = doktype
			default = COA
			default {
				#field = title
				#typolink.parameter.field = uid
				#stdWrap.htmlSpecialChars = 1
				 20 = IMAGE
				 20 {
					// default image from tmpl
					file = {$template.path}/images/blank_50.gif
					// override it with an image inserted in page properties in field
					file.import.data = levelmedia: -1, "slide"
					file.import = uploads/media/
					file.import.listNum = 0
					file.import.override.field = media
					border = 0
					altText = Section Image
					titleText = Section Image
				}

				stdWrap.typolink.parameter.field = uid
				stdWrap.typolink.parameter.target = _self
				stdWrap.typolink.ATagParams = class="foo"


			}
										
			# 3 = external url
			3 = COA
			3 {
				#field = title
				#typolink.parameter.field = uid
				#stdWrap.htmlSpecialChars = 1
				 20 = IMAGE
				 20 {
				// default image from tmpl
				file = {$template.path}/images/blank_50.gif
				// override it with an image inserted in page properties in field
				file.import.data = levelmedia: -1, "slide"
				file.import = uploads/media/
				file.import.listNum = 0
				file.import.override.field = media
				border = 0
				altText = Section Image
				titleText = Section Image
				}

				stdWrap.typolink.target = _blank
				stdWrap.typolink.ATagParams = class="external"
				stdWrap.typolink.parameter.field = uid
				stdWrap.typolink.parameter.wrap  = | " "  
230x450 
:resizable 
=1,status=1,menubar=1,scrollbars=1,location=1,directories=1,toolbar=1
			}

			# 5 = Not in menu
			5 = COA
			5 {
				 20 = IMAGE
				 20 {
				// default image from tmpl
				file = {$template.path}/images/blank_50.gif
				// override it with an image inserted in page properties in field
				file.import.data = levelmedia: -1, "slide"
				file.import = uploads/media/
				file.import.listNum = 0
				file.import.override.field = media
				border = 0
				altText = Section Image
				titleText = Section Image
				}

			}
		}

	} // end NO

} // end pictspace.1

// ROLLOVER
PICTSPACE.1.RO = 1
PICTSPACE.1.RO < PICTSPACE.1.NO
PICTSPACE.1.RO.allStdWrap.override.cObject.default. 
20.file.import.listNum = 1


page.10 < PICTSPACE


More information about the TYPO3-english mailing list