I created a menu, and then created a LINK item.
Is there a way I can include the $name variable (for whichever user is loggedin) in that link?
How do I Pass Variable =$name in URL from Menu?
Moderators: tjay, seadap, Rogue4ngel, matthewhayashida
-
- Joomla! Fledgling
- Posts: 4
- Joined: Wed Feb 27, 2008 10:21 pm
-
- Joomla! Apprentice
- Posts: 41
- Joined: Sat Dec 15, 2007 3:02 pm
- Location: Washington DC Metro
Re: How do I Pass Variable =$name in URL from Menu?
Is that because the link is external (non-Joomla! content)?
Denise
-
- Joomla! Fledgling
- Posts: 4
- Joined: Wed Feb 27, 2008 10:21 pm
Re: How do I Pass Variable =$name in URL from Menu?
yes!
I need to send the username over to a separate site passthru authentication... or whatever it is called.
anyway to do this?
I need to send the username over to a separate site passthru authentication... or whatever it is called.
anyway to do this?
-
- Joomla! Apprentice
- Posts: 41
- Joined: Sat Dec 15, 2007 3:02 pm
- Location: Washington DC Metro
Re: How do I Pass Variable =$name in URL from Menu?
Is it a must that the link be part of a menu? You might consider creating a module (its appearance on the Front-end could be simply a clickable image), but that would allow you to collect the username or userid and append it to the URL and then redirect them to the external site.
Denise
-
- Joomla! Fledgling
- Posts: 4
- Joined: Wed Feb 27, 2008 10:21 pm
Re: How do I Pass Variable =$name in URL from Menu?
Hmm... i think it needs to be in the menu because there really needs to be as few clicks as possible.
is ther any way to do that?
is ther any way to do that?
-
- Joomla! Apprentice
- Posts: 41
- Joined: Sat Dec 15, 2007 3:02 pm
- Location: Washington DC Metro
Re: How do I Pass Variable =$name in URL from Menu?
I haven't found a way yet to accomplish this using the menu system as is.
My suggestion about creating a module would not cause the user to click more than once. By using a module, the user information is gathered as the page is created and the link that is generated would have the user info appended. That way, they click once and it takes them directly to the external site. You're just using the module for its ability to gather the user data and create the link as you need it to be.
My suggestion about creating a module would not cause the user to click more than once. By using a module, the user information is gathered as the page is created and the link that is generated would have the user info appended. That way, they click once and it takes them directly to the external site. You're just using the module for its ability to gather the user data and create the link as you need it to be.
Denise
-
- Joomla! Fledgling
- Posts: 4
- Joined: Wed Feb 27, 2008 10:21 pm
Re: How do I Pass Variable =$name in URL from Menu?
where are links stored? could I hard code into the menu a ?username=$username to just be appended on EVERY menu link? where there variable isn't used doens't matter... where it is, it is used?