vienna
Junior Member
Posts: 2
Registered: 10/25/2006
Member Is Offline
|
| posted on 10/25/2006 at 01:55 PM |
|
|
Custom Tags in Tigra menu
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
Administrator
Posts: 1926
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 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
Junior Member
Posts: 2
Registered: 10/25/2006
Member Is Offline
|
| posted on 10/26/2006 at 12:40 PM |
|
|
Thanks a lot. I'll give it a try.
|
|
|