Conditional Portal Shortcut
From SmartWiki
On the Edit Portal Shortcut screen there is a new condition box; it has no impact on current shortcuts if the user leaves it empty. The system compiles the logic using the current user as the primary logic.
Example:
1. displays only if the user's city is mississauga.
@city@='mississauga'
2. displays only if the user's company is located in mississauga.
@parent.city@='mississauga'
3. displays only if the user's company =IBM.
@parent.name@='IBM'
4. displays only if the user has utas scope access of appid 10026, this is a little tricky as the system needs to compare a list instead of a single value
instr('@utascopeaccess@' , ',10026,')>0
5. displays only an xmas greeting shortcut after 2007-12-01
Now()>'2007-12-01 00:00'
6. displays only if the user has a particular role (i.e. System Administrator), this is a little tricky as the system needs to compare a list instead of a single value
instr('@me.roles@' , ';System Administrator;')>0
Impact:
Multiple shortcuts can be added to a role but only users whose system access meets the conditions in the shortcut will see the shortcut. This means that there can be one role named Client and all shortcuts that are client specific can reside in the same portal but users will only see the portals that are related to their company.

