TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv

Die TYPO3 Mailingliste - nicht fragen: lesen!

[TYPO3] error on GMENU

This is a discussion on [TYPO3] error on GMENU within the typo3-english@lists.netfielders.de forums, part of the TYPO3-Mailinglists: ENGLISH category; hello friends, would anybody help me? I am newbie on typo3 and try to use GMENU on my project I ...


Zurück   TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv > TYPO3-Mailinglists: ENGLISH > typo3-english@lists.netfielders.de

Registrieren Hilfe Benutzerliste Kalender Suchen Heutige Beiträge Alle Foren als gelesen markieren
  #1  
Alt 15.01.2008, 00:19
Kesit Barotoardi
Gast
 
Beiträge: n/a
Standard [TYPO3] error on GMENU

hello friends,
would anybody help me?
I am newbie on typo3 and try to use GMENU on my project

I have 7 button for my main navigation, and it suppose to be having different background color. But it seems only the last image file used for every button (fileadmin/templates/images/butt_1.gif).

this is the link for the web: http://www.open-php.com/index.php?id=116&L=1

thanks before,
kesit


my setup typoscript is:

lib.main_nav = HMENU
lib.main_nav.entryLevel = 0
lib.main_nav.1 = GMENU
lib.main_nav.1{
wrap = <ul class="main">|</ul>
NO = 1
NO {
wrap = <li class="first"> | </li> |*| <li class="two"> | </li>
XY = 125,72
5 = IMAGE
5 {
file = fileadmin/templates/images/butt_1.gif
}
10 = IMAGE
10 {
XY = 125,72
file = fileadmin/templates/images/butt_2.gif
}
15 = IMAGE
15 {
XY = 125,72
file = fileadmin/templates/images/butt_3.gif
}
20 = IMAGE
20 {
XY = 125,72
file = fileadmin/templates/images/butt_4.gif
}
25 = IMAGE
25 {
XY = 125,72
file = fileadmin/templates/images/butt_5.gif
}
30 = IMAGE
30 {
XY = 125,72
file = fileadmin/templates/images/butt_6.gif
}
35 = IMAGE
35 {
XY = 125,72
file = fileadmin/templates/images/butt_1.gif
}
40 = TEXT
40.text.field = title
40.fontFile = fileadmin/templates/font/GARA.TTF
40.fontSize = 16
# offset bestimmt die vertikale Ausrichtung der Schrift
40.offset = 15,25
40.fontColor = #FFFFFF
40.align = left
}

ACT = 1
ACT < .NO
ACT.ATagParams = class="main_current"

}




__________________________________________________ ________
Sent from Yahoo! Mail - a smarter inbox http://uk.mail.yahoo.com
_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #2  
Alt 15.01.2008, 12:25
Christian Lerrahn
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] error on GMENU

Hi Kesit,
> would anybody help me?
> I am newbie on typo3 and try to use GMENU on my project
>
> I have 7 button for my main navigation, and it suppose to be having
> different background color. But it seems only the last image file
> used for every button (fileadmin/templates/images/butt_1.gif).


Looking at your buttons, they all seem the same colour even though not
same size. So this might be the first thing you need to look at. What
exactly you're trying to do in your GMENU, I'm not sure. What you might
want to do is use applyTotalW on your GMENU. Have a look at
http://typo3.org/documentation/docum...0.16/view/7/8/
for more detail.

Cheers,
Christian
_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #3  
Alt 15.01.2008, 12:46
Kesit Barotoardi
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] error on GMENU

sorry if my question is not clear enough..

If you look at the site http://www.open-php.com/index.php?id=68&L=2
There're navigation: Aktuell - Vision - Projekte - etc
The current size is fine (Aktuell is wider than the others).

The problem is:
I want Aktuell using butt_1.gif, Vision using butt_2.gif, Projekte using butt_3.gif and so on...
butt_1.gif, butt_2.gif, etc. have different colours.

The fact is: all navigations are using the last file image, which is butt_1.gif. (The last navigation is using butt_1.gif again)

Please forgive for my language...but is it something wrong with my script?

Thanks for the links, I will learn this again


my setup template:

lib.main_nav = HMENU
lib.main_nav.entryLevel = 0
lib.main_nav.1 = GMENU
lib.main_nav.1{
wrap = <ul class="main">|</ul>
NO = 1
NO {
wrap = <li class="first"> | </li> |*| <li class="two"> |
</li>
XY = 125,72
5 = IMAGE
5 {
file = fileadmin/templates/images/butt_1.gif
}
10 = IMAGE
10 {
XY = 125,72
file = fileadmin/templates/images/butt_2.gif
}
15 = IMAGE
15 {
XY = 125,72
file = fileadmin/templates/images/butt_3.gif
}
20 = IMAGE
20 {
XY = 125,72
file = fileadmin/templates/images/butt_4.gif
}
25 = IMAGE
25 {
XY = 125,72
file = fileadmin/templates/images/butt_5.gif
}
30 = IMAGE
30 {
XY = 125,72
file = fileadmin/templates/images/butt_6.gif
}
35 = IMAGE
35 {
XY = 125,72
file = fileadmin/templates/images/butt_1.gif
}
40 = TEXT
40.text.field = title
40.fontFile = fileadmin/templates/font/GARA.TTF
40.fontSize = 16
# offset bestimmt die vertikale Ausrichtung der Schrift
40.offset = 15,25
40.fontColor = #FFFFFF
40.align = left
}

ACT = 1
ACT < .NO
ACT.ATagParams = class="main_current"

}


<font face="Arial, Helvetica, sans-serif" size="1"><strong>Kesit Barotoardi</strong>

<em><font color="#666666">m:</font></em> <font color="#0033cc">+62 251 217 0671 </font> |<font color="#666666"><em> <em><font color="#666666">skype:</font></em> <font color="#0033cc">kesit.barotoardi</font> |<font color="#666666"><em> e:</em></font> <a rel="nofollow" target="_blank" href="mailto:barotoardi (AT) yahoo (DOT) com.sg"><font color="#0033cc">barotoardi (AT) yahoo (DOT) com.sg</font></a>



Lawanggintung 77, Bogor 16133 - West Java - Indonesia
<span style="font-style:italic;">t/f: </span>+62 251 324 676
</font>


----- Original Message ----
From: Christian Lerrahn <typo3 (AT) penpal4u (DOT) net>
To: typo3-english (AT) lists (DOT) netfielders.de
Sent: Tuesday, 15 January, 2008 6:25:32 PM
Subject: Re: [TYPO3] error on GMENU

Hi Kesit,
> would anybody help me?
> I am newbie on typo3 and try to use GMENU on my project
>
> I have 7 button for my main navigation, and it suppose to be having
> different background color. But it seems only the last image file
> used for every button (fileadmin/templates/images/butt_1.gif).


Looking at your buttons, they all seem the same colour even though not
same size. So this might be the first thing you need to look at. What
exactly you're trying to do in your GMENU, I'm not sure. What you might
want to do is use applyTotalW on your GMENU. Have a look at
http://typo3.org/documentation/docum...0.16/view/7/8/
for more detail.

Cheers,
Christian
_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english






__________________________________________________ _________
Support the World Aids Awareness campaign this month with Yahoo! For Good http://uk.promotions.yahoo.com/forgood/
_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #4  
Alt 15.01.2008, 13:10
Christopher Torgalson
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] error on GMENU

Hi,

On Jan 15, 2008 12:46 PM, Kesit Barotoardi <barotoardi (AT) yahoo (DOT) com.sg> wrote:
> sorry if my question is not clear enough..
>
> If you look at the site http://www.open-php.com/index.php?id=68&L=2
> There're navigation: Aktuell - Vision - Projekte - etc
> The current size is fine (Aktuell is wider than the others).
>
> The problem is:
> I want Aktuell using butt_1.gif, Vision using butt_2.gif, Projekte using butt_3.gif and so on...
> butt_1.gif, butt_2.gif, etc. have different colours.
>
> The fact is: all navigations are using the last file image, which is butt_1.gif. (The last navigation is using butt_1.gif again)
>
> Please forgive for my language...but is it something wrong with my script?



Yes--see below.


> Thanks for the links, I will learn this again
>
>
> my setup template:
>
> lib.main_nav = HMENU
> lib.main_nav.entryLevel = 0
> lib.main_nav.1 = GMENU
> lib.main_nav.1{
> wrap = <ul class="main">|</ul>
> NO = 1
> NO {
> wrap = <li class="first"> | </li> |*| <li class="two"> |
> </li>
> XY = 125,72
> 5 = IMAGE
> 5 {
> file = fileadmin/templates/images/butt_1.gif
> }
> 10 = IMAGE
> 10 {
> XY = 125,72
> file = fileadmin/templates/images/butt_2.gif
> }
> 15 = IMAGE
> 15 {
> XY = 125,72
> file = fileadmin/templates/images/butt_3.gif
> }
> 20 = IMAGE
> 20 {
> XY = 125,72
> file = fileadmin/templates/images/butt_4.gif
> }
> 25 = IMAGE
> 25 {
> XY = 125,72
> file = fileadmin/templates/images/butt_5.gif
> }
> 30 = IMAGE
> 30 {
> XY = 125,72
> file = fileadmin/templates/images/butt_6.gif
> }
> 35 = IMAGE
> 35 {
> XY = 125,72
> file = fileadmin/templates/images/butt_1.gif
> }
> 40 = TEXT
> 40.text.field = title
> 40.fontFile = fileadmin/templates/font/GARA.TTF
> 40.fontSize = 16
> # offset bestimmt die vertikale Ausrichtung der Schrift
> 40.offset = 15,25
> 40.fontColor = #FFFFFF
> 40.align = left
> }
>
> ACT = 1
> ACT < .NO
> ACT.ATagParams = class="main_current"
>
> }




Your TS is generating eight images for EVERY menu item. You just can't
see it because they're being generated one on top of the other--but
this is why each item seems to use "butt_1.gif" A basic GMENU--in fact
any of TYPO3's menu objects--basically provides a MODEL for rendering
each individual menu item. It is not necessary to specify the
rendering of each item individually because TYPO3 takes that model and
applies it to each page that happens to appear in the given menu.

Look at the examples in the TS By Example (linked elsewhere in this
thread); the examples Never have all of these multiple objects like
yours. Instead of trying to vary the buttons, you may find it easier
to simply put a background image 'behind' the buttons. This can be
done using CSS, or possible--depending on your specific needs--in the
GMENU itself.

--
Christopher Torgalson
http://www.typo3apprentice.com/
_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #5  
Alt 15.01.2008, 13:50
Kesit Barotoardi
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] error on GMENU

Hi Chris,
I already tried to set the background colours through CSS, but as you see, I want 7 coloumns with different colours (that means 7 CSS classes).
I don't know the script to make the wrapping become 7 CSS classes.
I can make it only until three.
example:
wrap = <li class="first"> | </li> |*| <li class="two"> | </li> |*| <li class="three"> | </li>

in this project, I need until <li class="seven">
Do you know how to do that?

the other problem in this matter is: if I convert the text to GIF with transparent background, the text become unreadable. ( http://www.open-php.com/index.php?id=68&L=2 )

Is there any other solution?

<font face="Arial, Helvetica, sans-serif" size="1"><strong>Kesit Barotoardi</strong>

<em><font color="#666666">m:</font></em> <font color="#0033cc">+62 251 217 0671 </font> |<font color="#666666"><em> <em><font color="#666666">skype:</font></em> <font color="#0033cc">kesit.barotoardi</font> |<font color="#666666"><em> e:</em></font> <a rel="nofollow" target="_blank" href="mailto:barotoardi (AT) yahoo (DOT) com.sg"><font color="#0033cc">barotoardi (AT) yahoo (DOT) com.sg</font></a>



Lawanggintung 77, Bogor 16133 - West Java - Indonesia
<span style="font-style:italic;">t/f: </span>+62 251 324 676
</font>


----- Original Message ----
From: Christopher Torgalson <bedlamhotel (AT) gmail (DOT) com>
To: TYPO3 English <typo3-english (AT) lists (DOT) netfielders.de>
Sent: Tuesday, 15 January, 2008 7:10:38 PM
Subject: Re: [TYPO3] error on GMENU

Hi,

On Jan 15, 2008 12:46 PM, Kesit Barotoardi <barotoardi (AT) yahoo (DOT) com.sg>
wrote:
> sorry if my question is not clear enough..
>
> If you look at the site http://www.open-php.com/index.php?id=68&L=2
> There're navigation: Aktuell - Vision - Projekte - etc
> The current size is fine (Aktuell is wider than the others).
>
> The problem is:
> I want Aktuell using butt_1.gif, Vision using butt_2.gif, Projekte

using butt_3.gif and so on...
> butt_1.gif, butt_2.gif, etc. have different colours.
>
> The fact is: all navigations are using the last file image, which is

butt_1.gif. (The last navigation is using butt_1.gif again)
>
> Please forgive for my language...but is it something wrong with my

script?


Yes--see below.


> Thanks for the links, I will learn this again
>
>
> my setup template:
>
> lib.main_nav = HMENU
> lib.main_nav.entryLevel = 0
> lib.main_nav.1 = GMENU
> lib.main_nav.1{
> wrap = <ul class="main">|</ul>
> NO = 1
> NO {
> wrap = <li class="first"> | </li> |*| <li class="two"> |
> </li>
> XY = 125,72
> 5 = IMAGE
> 5 {
> file = fileadmin/templates/images/butt_1.gif
> }
> 10 = IMAGE
> 10 {
> XY = 125,72
> file = fileadmin/templates/images/butt_2.gif
> }
> 15 = IMAGE
> 15 {
> XY = 125,72
> file = fileadmin/templates/images/butt_3.gif
> }
> 20 = IMAGE
> 20 {
> XY = 125,72
> file = fileadmin/templates/images/butt_4.gif
> }
> 25 = IMAGE
> 25 {
> XY = 125,72
> file = fileadmin/templates/images/butt_5.gif
> }
> 30 = IMAGE
> 30 {
> XY = 125,72
> file = fileadmin/templates/images/butt_6.gif
> }
> 35 = IMAGE
> 35 {
> XY = 125,72
> file = fileadmin/templates/images/butt_1.gif
> }
> 40 = TEXT
> 40.text.field = title
> 40.fontFile = fileadmin/templates/font/GARA.TTF
> 40.fontSize = 16
> # offset bestimmt die vertikale Ausrichtung der Schrift
> 40.offset = 15,25
> 40.fontColor = #FFFFFF
> 40.align = left
> }
>
> ACT = 1
> ACT < .NO
> ACT.ATagParams = class="main_current"
>
> }




Your TS is generating eight images for EVERY menu item. You just can't
see it because they're being generated one on top of the other--but
this is why each item seems to use "butt_1.gif" A basic GMENU--in fact
any of TYPO3's menu objects--basically provides a MODEL for rendering
each individual menu item. It is not necessary to specify the
rendering of each item individually because TYPO3 takes that model and
applies it to each page that happens to appear in the given menu.

Look at the examples in the TS By Example (linked elsewhere in this
thread); the examples Never have all of these multiple objects like
yours. Instead of trying to vary the buttons, you may find it easier
to simply put a background image 'behind' the buttons. This can be
done using CSS, or possible--depending on your specific needs--in the
GMENU itself.

--
Christopher Torgalson
http://www.typo3apprentice.com/
_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english






__________________________________________________ ________
Sent from Yahoo! Mail - a smarter inbox http://uk.mail.yahoo.com
_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #6  
Alt 15.01.2008, 18:30
Tomas Mrozek
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] error on GMENU

> I already tried to set the background colours through CSS, but as you
> see, I want 7 coloumns with different colours (that means 7 CSS
> classes).


"||" instead of "|*|" does the trick.

NO.allWrap = <li class="first">|</li> || <li class="two">|</li> || <li
class="three">|</li> || ...

> if I convert the text to GIF with transparent background, the text
> become unreadable.


You have to set both "backColor" and "transparentColor" to the same
value. That will make the image transparent but the text will have an
"edge" (=antialiasing).

Tomas Mrozek
_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
 

Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
Ansicht Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an


Ähnliche Themen

Thema Autor Forum Antworten Letzter Beitrag
[TYPO3] GMENU.RO and noLink Thomas Hempel typo3-english@lists.netfielders.de 1 27.09.2007 15:55
[TYPO3-german] Parse error: syntax error, unexpected T_STRING,expecting T_VARIABLE or '$' in/home/web/www/upgrade/typo3conf/ext/cooluri/class.tx_cooluri.php on line 37 Jochen Graf typo3-german@lists.netfielders.de 0 06.09.2007 15:05
Re: [TYPO3] GMENU and shortcuts mark schoenbaechler typo3-english@lists.netfielders.de 8 18.05.2007 21:34
[TYPO3] GMENU and shortcuts mark schoenbaechler typo3-english@lists.netfielders.de 5 12.05.2007 02:14
[TYPO3] Need Urgent help with GMENU Katja Kositer typo3-english@lists.netfielders.de 1 05.01.2007 12:45


Alle Zeitangaben in WEZ +1. Es ist jetzt 04:51 Uhr.


Powered by vBulletin® Version 3.7.2 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39