Board Logo

Custom Tags in Tigra menu
vienna - 10/25/2006 at 01:55 PM

I want to change the text of one top level menu item from Login to Log Out (depending on whether the user is logged in or not). I want to use custom tags from my Java developer:

<abc: ifLoggedIn>'LOG OUT'</usa: ifLoggedIn>
<abc: ifLoggedOut>'LOG IN'</usa: ifLoggedOut>

Is it possible to incorporate this?

Thanks.


tigra - 10/25/2006 at 10:39 PM

You can change the text inside the items structure with your server side script. For that move the items structure from menu_items.js into the <script> tag side the main document. Then you can use your server side code to print in the values you need. Alternatively you can have several items files (say menu_items_loggedin.js and menu_items_loggedout.js) and link one of them depending on the status of the user.


vienna - 10/26/2006 at 12:40 PM

Thanks a lot. I'll give it a try.


Softcomplex: http://www.softcomplex.com/
Back to forum: http://www.softcomplex.com/forum/