[TYPO3-english] Generate GMenu with Typo3 6.1

David Gurk dgurk at medienwerft.de
Wed Jul 3 16:47:21 CEST 2013


I think the wrong way, we don't need the uid of the page, we need the uid of the "sys_file_reference".

Maybe this is a right way.

lib.navMain = HMENU  
lib.navMain {
    wrap = <ul style="background-color: black;">|</ul>
    special = directory
    special.value = 1
    1 = GMENU
    1 {
	NO = 1
	NO {
	    wrapItemAndSub = |*|<li>|</li>|*|<li class="last">|</li>
	    ATagParams = class=""
	    XY = 100,100

	    // Just to see something
	    10 = TEXT
	    10 {
		text.field = title
		fontColor = #000000
		align = center
		offset = 0,18
	    }
	    20 = TEXT
	    20 {
		text.field = uid
		fontColor = #000000
		align = center
		offset = 0,36
	    }
	    // Only the source
	    30 = TEXT
	    30 {
		text.stdWrap.cObject = FILES
		text.stdWrap.cObject {
		    references {
			table = pages
			uid.field = uid
			fieldName = media
		    }
		    renderObj = IMG_RESOURCE
		    renderObj {
			required = 1
			file.import.data = file:current:originalUid // file:current:uid 
		    }
		}
		fontColor = #000000
		align = center
		offset = 0,54
		breakWidth = 100
	    }
	    // WORKS :-)
	    40 = IMAGE
	    40 {
		offset = 0,50
		file {
		    import.cObject = FILES
		    import.cObject {
			references {
			    table = pages
			    uid.field = uid
			    fieldName = media
			}
			renderObj = IMG_RESOURCE
			renderObj {
			    required = 1
			    file.import.data = file:current:originalUid // file:current:uid 
			}
		    }
		}
	    }
	}
    }
}

Is there another? Perhaps an more easy way?

Best regards

David

-----Ursprüngliche Nachricht-----
Von: typo3-english-bounces at lists.typo3.org [mailto:typo3-english-bounces at lists.typo3.org] Im Auftrag von Indira
Gesendet: Mittwoch, 3. Juli 2013 15:41
An: typo3-english at lists.typo3.org
Betreff: [TYPO3-english] Re: Generate GMenu with Typo3 6.1

Something like this?

      5 = IMAGE
      5.file {
        import = uploads/media/       
        import.data = {field:uid}
        treatIdAsReference = 1
        import.listNum = 0   
      }

I'm getting the white square again so I think it's not finding the graphic :(


If I try to use this instead, then I get stairs graphic (default Typo3 graphic):
 5.file {
        import.field = media   
        import.data = {field:uid}
        treatIdAsReference = 1
        import.listNum = 0   
      }

_______________________________________________
TYPO3-english mailing list
TYPO3-english at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


More information about the TYPO3-english mailing list