[Typo3-dev] possible BUG in IMG_RESOURCE

Gregor Kaczmarczyk gregor at crazes.de
Wed Apr 7 16:09:41 CEST 2004


Hi,

i´m just integrating a TMENU with some special parameters.
i need the file reference from the media field for a mouseover function in
the links.
the following code is full workable if only ONE file is inserted in the
media field of page.
if several files are added to media, i get no IMG_RESOURCE at all.

tested with fresh install (checkout from CVS: 07.04.2004 15:00)

##############
would also be cool if such links could be realized without "doNotLinkIt" to
have working "simulateStaticDocuments"
##############
temp.submenu = HMENU
temp.submenu.1 = TMENU
temp.submenu.entryLevel = 1
temp.submenu.1 {

  wrap = <ul id="navlist">|</ul>
  NO {
    wrapItemAndSub = <li>|</li>
    doNotLinkIt = 1
    stdWrap.cObject = COA
    stdWrap.cObject {

      10 = TEXT
      10.data = field:uid
      10.wrap = <A HREF="index.php?id=|" onmouseover="over('

      20 = IMG_RESOURCE
      20.file.import = uploads/media/
      20.file.import.field = media
      20.file.listNum = 0

      30 = TEXT
      30.data = field:title
      30.wrap = ');" onmouseout="out();">|</A>
    }
  }
}






More information about the TYPO3-dev mailing list