Changeset 28331


Ignore:
Timestamp:
09/30/13 16:28:24 (8 years ago)
Author:
jlwhisler
Message:

Updated Homepage tutorial files to use library_name variable instead of hard-coding library. Added an icon for the page. Corrected the AddUser url.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • documentation/trunk/tutorial_sample_files/custom/gs3-homepage.txt

    r27885 r28331  
    22
    33<xsl:template name="collectionsList">
    4 <xsl:for-each select="./page/pageResponse/collectionList/collection">
    5 <xsl:variable name="collectionName" select="@name"/>
    6 <li>
    7 <a href="library/collection/{$collectionName}/page/about">
    8 <xsl:value-of select="displayItem[@name='name']"/>
    9 </a>
    10 </li>
    11 </xsl:for-each>
    12 </xsl:template>
     4    <xsl:for-each select="./page/pageResponse/collectionList/collection">
     5    <xsl:variable name="collectionName" select="@name"/>
     6        <li>
     7        <a href="{$library_name}/collection/{$collectionName}/page/about">
     8        <xsl:value-of select="displayItem[@name='name']"/>
     9        </a>
     10        </li>
     11    </xsl:for-each>
     12</xsl:template> 
    1313
    1414
     
    4949<xsl:when test="$username">
    5050<li><a>
    51 <xsl:attribute name="href">library/admin/AccountSettings?s1.username=<xsl:value-of select="$username"/></xsl:attribute><xsl:value-of select="$username"/>
     51<xsl:attribute name="href"><xsl:value-of select="$library_name"/>/admin/AccountSettings?s1.username=<xsl:value-of select="$username"/></xsl:attribute><xsl:value-of select="$username"/>
    5252</a></li>
    53 <li><a href="library/admin/AddUser">Register a new user</a></li>
    54 <li><a href="library/admin/ListUsers">Administration</a></li>
    55 <li><a><xsl:attribute name="href">library?logout=</xsl:attribute>Logout</a></li>
     53<li><a href="{$library_name}/admin/AddUser">Register a new user</a></li>
     54<li><a href="{$library_name}/admin/ListUsers">Administration</a></li>
     55<li><a><xsl:attribute name="href"><xsl:value-of select="$library_name"/>?logout=</xsl:attribute>Logout</a></li>
    5656</xsl:when>
    5757<xsl:otherwise>
    58 <li><a href="?a=p&amp;sa=login&amp;redirectURL=library%3Fa=p%26sa=home">Login
     58<li><a href="?a=p&amp;sa=login&amp;redirectURL={$library_name}%3Fa=p%26sa=home">Login
    5959<xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'login_tip')"/></xsl:attribute>
    60 
    6160</a></li>
    6261</xsl:otherwise>
Note: See TracChangeset for help on using the changeset viewer.