Beauty In Design Community
Welcome, Guest
Please Login or Register.
Lost Password?
_GEN_GOTOBOTTOM Post Reply

TOPIC: JoomlaOS Menu

#19
Stephen Phillips (Visitor)
Fresh Boarder
Posts: 0
graphgraph
JoomlaOS Menu 2007/02/02 23:47  
I have a question about the topmenu on JoomlaOS.
I modified one of the toolbar buttons "login" to reveal some static content. I would like to place a link in the topmenu to the same content, but I can't seem to call "loginRun" from there. Nothing happens when I click the link. Is there a way to call this script from within the topmenu?
Thanks for your help in advance.
  The administrator has disabled public write access.
#21
Brandon Rediger (User)
Expert Boarder
Posts: 21
graphgraph
Re:JoomlaOS Menu 2007/02/06 02:51  
When you say "From within the top menu" do you mean the Joomla menu? If that is the case...then no you cannot. The Joomla menus are not ajax loaded as of yet. You can, however, create a static link to the page you are trying to link to and it will look like the rest of the Joomla outputted menu.

Just reference the template index.php to see some of the static links that are in there.

I might have completly misunderstood what you were asking. Did I? Or does this make sense?
  The administrator has disabled public write access.
#23
Stephen Phillips (Visitor)
Fresh Boarder
Posts: 0
graphgraph
Re:JoomlaOS Menu 2007/02/06 17:10  
Thanks for the help.
You are close, but that's my fault, I wasn't clear.
I am trying to create a static link to "loginRun" from within:
<div id="topmenu">
<DIV class="slide" id="topmenuContent">

When I insert the link there, The choice shows up in the menu, but when i click it, it does nothing.
What should the syntax be for inserting a link to "loginRun" from within "topmenu"?
Thanks Again
  The administrator has disabled public write access.
#24
Brandon Rediger (User)
Expert Boarder
Posts: 21
graphgraph
Re:JoomlaOS Menu 2007/02/07 16:32  
I haven't tested it, but you should be able to do something like this:

Code:

<ul>          <li><a id="loginRun" class="mainlevel" href="#">Login</a></li       </ul>



The ID "loginRun" runs the script and class "mainlevel" is the styling for the menu.

The only thing I am thinking this might not work is running the same command twice. But not sure.

Maybe make a new script and make the above ID "loginRun2". Just copy this, paste it anywhere in the body and try it:

Code:

<SCRIPT type=text/javascript>   var loginWindoweffect = new Fx.Opacity('loginWindow').hide();   $('loginRun2').addEvent('click', loginWindoweffect.toggle.bind(loginWindoweffect));   </SCRIPT>

  The administrator has disabled public write access.
#25
Stephen Phillips (Visitor)
Fresh Boarder
Posts: 0
graphgraph
Re:JoomlaOS Menu 2007/02/07 16:53  
Thanks,
You were right!
The issue was calling the same code twice.
It worked when I added in the "loginRun2"
Thanks Again
  The administrator has disabled public write access.
_GEN_GOTOTOP Post Reply
© Copyright 2007 Best of Joomla, Powered by FireBoardget the latest posts directly to your desktop
Contact Information