[TYPO3-dev] GMENU altImageResource Path is wrong from Media Resource page (typo3 7.1.0)

Markus Haag mhaag2 at icloud.com
Tue Mar 31 16:16:13 CEST 2015


Hallo Typo3-dev List!

Since days i have a problem with the GMENU altImageResource function to load images for a navigation from Page/Resource/Media Tab of the dedicated pages. 
The calculated path is not working correctly, i am always getting wrong paths to wrong pictures or i get a blank white image.
If i generate the menu with the GIFBuilder with an other script it works perfectly.


This is my typo script:
# load image version from resources 
# does not work
naviMAH = HMENU
naviMAH {
1 = GMENU
noBlur = 0
1.NO {
  wrap = |<br>
  altImgResource.import.data = levelmedia:-1
  altImgResource.import.required = 1
  altImgResource.import = fileadmin/menu/
  altImgResource.import.field = media
  altImgResource.import.listNum = 0
  ATagTitle.field = title
}
RO = 1
RO < .NO
  RO {
    altImgResource.import.listNum = 1
  }

ACT < .RO
}

At the FE i get than e.g. the Typo3 example image from skins directory or some other randomly selected image.
What is wrong in my script or is it a bug in typo3 7.1.0 ?

thanks,
Markus.




More information about the TYPO3-dev mailing list