TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv

Die TYPO3 Mailingliste - nicht fragen: lesen!

[TYPO3] GMENU and shortcuts

This is a discussion on [TYPO3] GMENU and shortcuts within the typo3-english@lists.netfielders.de forums, part of the TYPO3-Mailinglists: ENGLISH category; Hi List, I am trying to create a GMENU, where menu-items that represent shortcut-pages are visible, but with ...


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 10.05.2007, 19:20
mark schoenbaechler
Gast
 
Beiträge: n/a
Standard [TYPO3] GMENU and shortcuts

Hi List,

I am trying to create a GMENU, where menu-items that represent shortcut-pages are visible, but with their links disabled.

I found several threads that provided some clues, but I haven't succeeded yet. I have tried following:

1) The stdWrap-approach

NO {
nolink = 1
stdWrap.cObject = CASE
stdWrap.cObject {
key.field = doktype
4 = TEXT
default = TEXT
default {
field = nav_title
typolink.parameter.field = uid
typolink.extTarget.field = target
}
}

This disables all links.


2) The globalVar-approach

[globalVar = TSFEage|doktype = 4]
lib.menu_2.1.NO {
noLink = 1
}
[global]

This has no effect.


I would appreciate any help.

cheers,

Mark.
_______________________________________________
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 10.05.2007, 19:28
Christopher Torgalson
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] GMENU and shortcuts

Hi,

On 5/10/07, mark schoenbaechler <typo3-english (AT) lists (DOT) netfielders.de> wrote:
> Hi List,
>
> I am trying to create a GMENU, where menu-items that represent shortcut-pages are visible, but with their links disabled.
>
> I found several threads that provided some clues, but I haven't succeeded yet. I have tried following:
>
> 1) The stdWrap-approach
>
> NO {
> nolink = 1
> stdWrap.cObject = CASE
> stdWrap.cObject {
> key.field = doktype
> 4 = TEXT
> default = TEXT
> default {
> field = nav_title
> typolink.parameter.field = uid
> typolink.extTarget.field = target
> }
> }
>
> This disables all links.
>
>
> 2) The globalVar-approach
>
> [globalVar = TSFEage|doktype = 4]
> lib.menu_2.1.NO {
> noLink = 1
> }
> [global]
>
> This has no effect.
>
>
> I would appreciate any help.



Your first approach looks generally ok. You can probably accomplish
what you want using a CASE cObject [1]. It's like a php switch
statement; you set up options for rendering based on some value--in
this case the value of the doktype field in the page record).


--
Christopher Torgalson
http://www.typo3apprentice.com/


[1] http://typo3.org/documentation/docum...1.0/view/8/17/
_______________________________________________
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 11.05.2007, 01:06
JoH asenau
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] GMENU and shortcuts

> Your first approach looks generally ok. You can probably accomplish
> what you want using a CASE cObject [1]. It's like a php switch
> statement; you set up options for rendering based on some value--in
> this case the value of the doktype field in the page record).


But the first approach wont work with a GMENU since there is no stdWrap
available like in TMENU.

There are allWrap+stdWrap and allstdWrap
Since it's about creating a link for the whole item I guess allStdWrap will
do.

HTH

Joey

--
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
openBC/Xing: http://www.cybercraft.de
T3 cookbook: http://www.typo3experts.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!
  #4  
Alt 11.05.2007, 09:43
mark schoenbaechler
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] GMENU and shortcuts

Very cool, guys!

the allStdWrap hint worked – regarding the links. However, now my graphical titles are not rendered anymore...

I guess I would have to add something to allStdWrap to re-enable the rendering of the bitmaps. But how?

Would you be so kind and help me once again? I would really appreciate.

cheers,

Mark.

Here's my code:

NO {
stdWrap.htmlSpecialChars = -1
allStdWrap.cObject = CASE
allStdWrap.cObject {
key.field = doktype
4 = TEXT
4 {
field = nav_title
wrap = <div class="menuL1inactive"> | </div>
}
default = TEXT
default {
field = nav_title
typolink.parameter.field = uid
typolink.extTarget.field = target
wrap = <div class="menuL1off"> | </div>
}
}

XY = 145, 20
backColor = #ffffff
10 = TEXT
10.text.field = title
10.text.crop = 25 | ... | 1
10.fontColor = #333333
10.fontFile = fileadmin/fonts/TheSansRegular.ttf
10.fontSize = 12
10.niceText = 1
10.niceText.sharpen = 0
10.niceText.scaleFactor = 5
10.offset = 0, 16
}
_______________________________________________
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 11.05.2007, 16:28
JoH asenau
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] GMENU and shortcuts

> the allStdWrap hint worked - regarding the links. However, now my
> graphical titles are not rendered anymore...
>
> I guess I would have to add something to allStdWrap to re-enable the
> rendering of the bitmaps. But how?
>
> Here's my code:
>
> NO {
> stdWrap.htmlSpecialChars = -1
> allStdWrap.cObject = CASE
> allStdWrap.cObject {
> key.field = doktype
> 4 = TEXT
> 4 {
> field = nav_title
> wrap = <div class="menuL1inactive"> | </div>
> }
> default = TEXT
> default {
> field = nav_title
> typolink.parameter.field = uid
> typolink.extTarget.field = target
> wrap = <div class="menuL1off"> | </div>


Well - allStdWrap will work, but not if you are using a cObject here, since
this will replace the original cObject, which is a GIFBUILDER element.
It will work, if you use allStdWrap to assign just the typolink and a wrap
to the images generated by the GIFBUILDER.

Something like this:

allStdWrap {
typolink {
parameter {
field = uid
if {
value = 4
equals.field = doktype
negate = 1
# enables typolink only
# if doktype != 4
}
}
}
outerWrap.cObject = CASE
outerWrap.cObject {
key.field = doktype
default = TEXT
default.value = <div class="menuL1off"> | </div>
4 = TEXT
4.value = <div class="menuL1inactive"> | </div>
}
}

HTH

Joey

--
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
openBC/Xing: http://www.cybercraft.de
T3 cookbook: http://www.typo3experts.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 12.05.2007, 02:14
mark schoenbaechler
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] GMENU and shortcuts

Thank you for your suggestion, but unfortunately I can't get it to work. The outerWrap works like a charm, but the links are still active for the shortcut menu-items.

Please correct me if i am wrong: If I understand correctly, the function first checks if the doktype is 4. Through 'negate', the function returns 'false' and the typolink.parameter.field then equals false and the link should not be rendered. Sorry if this sounds silly, but it helps me learn.
So why doesn't this work then?

Mark.
_______________________________________________
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 equivalent of innerwrap Nikolas Hagelstein typo3-english@lists.netfielders.de 3 28.02.2007 16:18
[TYPO3] image lang gmenu Bas van der Togt typo3-english@lists.netfielders.de 0 21.01.2007 15:07
[TYPO3] Need Urgent help with GMENU Katja Kositer typo3-english@lists.netfielders.de 1 05.01.2007 12:45
Re: [TYPO3] How to use Chinese characters in GMENU Nikolas Hagelstein typo3-english@lists.netfielders.de 3 12.12.2006 21:02
[TYPO3] How to use Chinese characters in GMENU Peter Klein typo3-english@lists.netfielders.de 1 12.12.2006 16:43


Alle Zeitangaben in WEZ +1. Es ist jetzt 00:33 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 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74