[TYPO3] How to put a mailto link in Tmenu?

Martin Kindler kindlerm at arcor.de
Wed Mar 15 12:18:52 CET 2006


I'll try it. Thanks again!

Martin

> -----Ursprüngliche Nachricht-----
> Von: typo3-english-bounces at lists.netfielders.de 
> [mailto:typo3-english-bounces at lists.netfielders.de] Im 
> Auftrag von Peter Klein
> Gesendet: Mittwoch, 15. März 2006 12:11
> An: typo3-english at lists.netfielders.de
> Betreff: Re: [TYPO3] How to put a mailto link in Tmenu?
> 
> 
> Hi Martin. Unfortunatly all the annotations to the manuals, 
> which contained 
> a lot of valuable info is gone, and I haven't been able to 
> find the info 
> after the design update on typo3.org. :(
> 
> But what you could do is create a very simple IProcFunc, and 
> then do a 
> "debug($mennuArr)" which should list out the fields available...
> 
> -- 
> Peter Klein/Umloud Untd
> 
> "Martin Kindler" <kindlerm at arcor.de> skrev i en meddelelse 
> news:mailman.12341.1142419036.3122.typo3-english at lists.netfiel
> ders.de...
> Peter,
> 
> thank you! That is exactly what I needed.
> 
> Anyway, I am sure that at some point I will have to use the 
> IProcFunc mechanism. Thanks for the pointer to the example 
> (I'll manage to understand
> (hopefully) enough of the Danish :-)), but I would like to 
> have some description of the data type being used in menuArr 
> to know which fields are available. I have searched all the 
> "Core" docs but there seems to be nothing. Am I correct? 
> Examples are important but only show some basic mechanism. I 
> can work through the PHP code, but this is very 
> time-consuming. If someone has a pointer to some 
> documentation, please tell me!
> 
> Martin
> 
> > -----Ursprüngliche Nachricht-----
> > Von: typo3-english-bounces at lists.netfielders.de
> > [mailto:typo3-english-bounces at lists.netfielders.de] Im Auftrag von 
> > Peter Klein
> > Gesendet: Dienstag, 14. März 2006 21:51
> > An: typo3-english at lists.netfielders.de
> > Betreff: Re: [TYPO3] Hoe to put a mailto link in Tmenu?
> >
> >
> > Hi Martin. If your site doesn't use mountpoints, then you can do it 
> > using typoscript alone..
> > In the following example, the link to the page with UID=31,
> > is substituted
> > with the email address.
> >
> > --- cut --
> >   lib.menu = HMENU
> >   lib.menu.1 = TMENU
> >   lib.menu.1 {
> >     NO {
> >       doNotLinkIt = 1
> >       stdWrap.typolink.parameter {
> >         field = uid
> >         override = mail at mail.me
> >         override.if {
> >           value = 31
> >           equals.field = uid
> >         }
> >       }
> >       allWrap = <br />
> >     }
> >   }
> > -- cut --
> >
> > As for IProcFunc examples, then I posted one on the danish 
> usergroup a
> > couple days ago. (the text is in danish, but not the code ;)
> > http://lists.netfielders.de/pipermail/typo3-ug-denmark/2006-Ma
> > rch/002756.html
> >
> > ---
> > Peter Klein / Umloud Untd.
> >
> > "Martin Kindler" <kindlerm at arcor.de> wrote in message 
> > news:mailman.12038.1142356244.3122.typo3-english at lists.netfiel
> > ders.de...
> > Thanks Peter!
> >
> > That sounds promising. But as I am rather new to PHP hacking in T3, 
> > can you tell me where in the docs I can find a definition 
> of the data 
> > type used for the parameter menuArr in the IProcFunc (or more 
> > generally an introduction to IProcFunc)? I have found the 
> example by 
> > Kasper but it does not tell much.
> >
> > Martin
> >
> > > -----Ursprüngliche Nachricht-----
> > > Von: typo3-english-bounces at lists.netfielders.de
> > > [mailto:typo3-english-bounces at lists.netfielders.de] Im 
> Auftrag von 
> > > Peter Klein
> > > Gesendet: Dienstag, 14. März 2006 16:14
> > > An: typo3-english at lists.netfielders.de
> > > Betreff: Re: [TYPO3] Hoe to put a mailto link in Tmenu?
> > >
> > >
> > > Hi Martin. Create a small IProcFunc, that either adds an
> > extra (fake)
> > > menuitem, or replaces on of the current menuitems with your
> > maillink.
> > >
> > > --
> > > Peter Klein/Umloud Untd
> > >
> > >
> > > "Martin Kindler" <kindlerm at arcor.de> skrev i en meddelelse 
> > > news:mailman.11944.1142348716.3122.typo3-english at lists.netfiel
> > ders.de...
> > I want to have a simple "mailto"-link in one of my menus. How can I 
> > accomplish this? My first solution was an "External URL"-type page 
> > with a mailto-URL. Works, but opens a "transfer"-page in 
> addition to 
> > the "new mail" form of your preferred mail program. Bad!
> >
> > Another idea was to just hardcode it. Meaning changing my 
> TMENU into a 
> > COA with the old TMENU as one element and my "mailto" as 
> another. This 
> > works too but has the disadvantage of not supporting different 
> > languages easily (also the placing of the mailto link is not really 
> > beautiful as changing the order means splitting the TMENU into two 
> > ...)
> >
> > What is "best practice" in doing this? I searched the 
> mailing list and 
> > found a posting with the same question but no answer.
> >
> > Martin
> >
> >
> >
> > _______________________________________________
> > TYPO3-english mailing list
> > TYPO3-english at lists.netfielders.de
> > http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
> >
> >
> >
> >
> 
> 
> 
> 





More information about the TYPO3-english mailing list