[TYPO3] GMENU stdWrap wizardry

Ronald Renfro rr at dreimorgen.com
Wed Sep 10 16:41:41 CEST 2008


Hello,

I would like to build a GMENU navigation with Gifbuilder using images  
from the page media field.
The normal state image = Image 1 from the page media field. The  
rolloverimage = Image2 from page media.
Additionally I need to render to menu items/pages according to the  
typo3 page types (doktype):

Normal Typo Page 	=> typolink
Blank Page 		=> no typolink (doktype)
External Url Page Type 	=> typpolink open in new window

Up to know I have everthing but the ugly little requirement of the  
typolinks by doktype... I do not know how
to achieve the correct typolinking overriding...

Has anyone successfully built something link this and/or knows a  
viable approach to my problem?

Thanks!

This is what I have:

PICTSPACE = HMENU
PICTSPACE.special = list
PICTSPACE.special.value = 62,61,56,55,54,53,52,51,50
# specify page types to include
PICTSPACE.excludeDoktypes=6
PICTSPACE.wrap = <div id="pictspace">|</div>
PICTSPACE.1 = GMENU
PICTSPACE.1 {

	NO {
		XY = 50,50
		backColor = #FFFFFF
		transparentBackground=0

		   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
			 }

		allStdWrap.override.cObject = COA
		allStdWrap.override.cObject {

		    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.if {
             			value = 5
                 		equals.field = doktype
                 	}
		    }

		30 = HMENU
		30.special = list
		30.special.value.current = 1
		30.1 = TMENU 	
		30.1.NO {				
			value = foo			
		}

		30.stdWrap.if {
			value = 3
			equals.field = doktype
		}

		    stdWrap.wrap = |
		    stdWrap.required = 1

		}

	} // end NO
}

#--------------------------------------------------------------
## PICTSPACE FIRST LEVEL RO
#--------------------------------------------------------------
PICTSPACE.1.RO = 1
PICTSPACE.1.RO < PICTSPACE.1.NO
PICTSPACE.1.RO.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 = 1
		file.import.override.field = media
		border = 0
		altText = Section Image
		titleText = Section Image
}

page.10 < PICTSPACE


More information about the TYPO3-english mailing list