smaller reset larger        English         

Main Menu

All times are in GMT -8 (DST) :: The time is now 9:14 am.

Sub Menu

Article Data
Article Ref
1790-AZXN-3141
Written By
Josh Olson
Date Created
Tue, 17th Apr 2007
 
(Lost?)

   Modifying the Login page to limit the available skins

Question 

How do I modify the webmail login page so only certain skins are available to my users?

Answer 

This requires modifying the login.wssp page like the following example
(in "patch" syntax):

--- login.wssp-orig     2007-04-03 08:47:22.000000000 -0700
+++ login.wssp  2007-04-03 09:20:53.000000000 -0700
@@ -55,6 +55,9 @@
             <!--%%IF NOT(EXISTS(restoreSessionPage))-->
             <tr>
-               <td nowrap
class="externalField">%%HTML:STRING("LayoutTag")%%</TD>
-               <td><SELECT name=SessionSkin><OPTION value="*"
SELECTED><!--%%STRINGMENU NULL() IN skinNames DISPLAY
DICTIONARY("SkinNames")--></SELECT></td>
+               <td nowrap
class="externalField">%%HTML:STRING("LayoutTag")%%</TD>
+               <td><SELECT name=SessionSkin><OPTION value="*" SELECTED>
+                          <OPTION VALUE="Aquinox">Aquinox
(default)</OPTION>
+                          <OPTION VALUE="Simplex">Simplex</OPTION>
+                          </SELECT></td>
             </tr>
             <!--%%ENDIF-->

We simply remove the STRINGMENU WSSP command, and replace it by a static
list of the available skins, in HTML.

In the above example - it is worth noting that while the real default
Skin Layout in CGatePro was defined as "Simplex", the menu states the
default is "Aquinox". This was done intentionally to demonstrate the
difference between the actual preferences and the displayed ones. This
example is continued below.

How Useful Was This Article?      (Rating: 100%    Votes: 3)  

Select a Rating

Article Comments 

There are currently no comments.