Need Help with Script - Preferences

1 view
Skip to first unread message

cind...@gmail.com

unread,
Aug 26, 2008, 2:35:21 PM8/26/08
to Toro Projects
I am trying to prevent all but our staff, faculty, and students from
being able to change their preferences. I would like to make that tab
unavailable for everyone else. I have added some script to the
html.xsl file in the CHeader folder. If anyone could look at it and
let me know if it's correct, I would really appreciate it. We are
going to restart Academus to put this into effect and I would like to
have the correct code before doing so. Thanks for your help.

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:param name="baseActionURL">default</xsl:param>
<xsl:param name="authenticated">false</xsl:param>
<xsl:param name="locale">en_US</xsl:param>
<xsl:template match="header">
<xsl:if test="$authenticated != 'false'">
<a href="{$baseActionURL}?uP_root=root" class="uportal-
navigation-category">Home </a> |
<a href="{$baseActionURL}?uP_fname=layout-sitemap"
class="uportal-navigation-category"> Site Map </a> |
<xsl:if test="chan-mgr-chanid">
<a href="{$baseActionURL}?uP_fname={chan-mgr-chanid}"
class="uportal-navigation-category"> Channel Admin </a> |
</xsl:if>
<a href="{$baseActionURL}?uP_fname={preferences-chanid}"
class="uportal-navigation-category"> Preferences </a> | <a
href="Logout" class="uportal-navigation-category"> Logout </a>
</xsl:if test="full-name='Student User' or full-name='Admin
User' or full-name='Staff User' or full-name='Faculty User'">
<a href="{baseActionURL}?uP_root={preferences-chanid}"
class="headerlinks">Preferences</a>

</xsl:template>
</xsl:stylesheet>


Cindy
ci...@randolphcollege.edu
Reply all
Reply to author
Forward
0 new messages