[TYPO3-english] Generate GMenu with Typo3 6.1
David Gurk
dgurk at medienwerft.de
Wed Jul 3 10:58:01 CEST 2013
Hi Indira,
I testet it with the following code:
http://pastebin.com/VwcShUKV
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
5 = IMAGE
5.file {
import = uploads/media/
import.data = levelmedia:-1, slide
// without "import."
treatIdAsReference = 1
import.listNum = 0
}
// Just to see something
10 = TEXT
10 {
text.field = title
fontColor = #000000
align = center
offset = 0,18
}
}
}
}
The only problem is, that this media image is only shown in my system, if I am on the same page, where the image is added. In other word: it will display the media image from the active page in each navigation image.
-----Ursprüngliche Nachricht-----
Von: typo3-english-bounces at lists.typo3.org [mailto:typo3-english-bounces at lists.typo3.org] Im Auftrag von David Gurk
Gesendet: Mittwoch, 3. Juli 2013 10:30
An: Indira; TYPO3 English
Betreff: Re: [TYPO3-english] Generate GMenu with Typo3 6.1
Hi Indira,
what exactly do you want to do?
Let me get this right, you want the "media file" from the page-option "resources" as navigation-menu-image?
Greets
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: Dienstag, 2. Juli 2013 20:29
An: typo3-english at lists.typo3.org
Betreff: [TYPO3-english] Re: Generate GMenu with Typo3 6.1
Hi guys!
Thanks for your replies. This is the new adjusted code, but it still doesn't work:
NO = 1
NO {
wrapItemAndSub = |*|<li>|</li>|*|<li class="last">|</li>
ATagParams = class=""
XY = 100,100
5 = IMAGE
5.file {
import = uploads/media/
import.data = levelmedia:-1, slide
import.treatIdAsReference = 1
import.listNum = 0
}
}
I get a white square as a graphic. Its like is generating the graphic with the specified dimensions (100x100), but it's just not finding the image (media property of the page) Any idea of what's wrong there?
Thanks in advance,
Indira.
_______________________________________________
TYPO3-english mailing list
TYPO3-english at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
_______________________________________________
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