User Tools

Site Tools


en:user:interfaces

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
en:user:interfaces [2019/09/22 23:46] – [How to change just one template] kjdonen:user:interfaces [2019/09/23 00:02] – [How to change just one template] kjdon
Line 66: Line 66:
 The new about.xsl file doesn't have to implement everything in the old version. You can add in only the templates that you want to change. The new about.xsl file doesn't have to implement everything in the old version. You can add in only the templates that you want to change.
  
-For example, this might be the collection's about.xsl. We are only changing 1 template.+For example, this might be the collection's about.xsl. We are only changing 1 template. The rest of the about page templates will come from the defualt XSL file: web/interfaces/default/transform/pages/about.xsl,
 <code> <code>
 <?xml version="1.0" encoding="ISO-8859-1"?> <?xml version="1.0" encoding="ISO-8859-1"?>
Line 79: Line 79:
  
   <xsl:template name="coll-description">   <xsl:template name="coll-description">
-    <xsl:value-of select="/page/pageResponse/collection/displayItemList/displayItem[@name='description']" disable-output-escaping="yes"/> +    <xsl:value-of select="/page/pageResponse/collection/displayItemList/ 
-   <h4>This collection has <xsl:value-of select="/page/pageResponse/collection/metadataList/metadata[@name='numDocs']"/> docs.</h4>+displayItem[@name='description']" disable-output-escaping="yes"/> 
 +   <h4>This collection has <xsl:value-of select="/page/pageResponse/collection/ 
 +metadataList/metadata[@name='numDocs']"/> docs.</h4>
  </xsl:template>  </xsl:template>
  
en/user/interfaces.txt · Last modified: 2023/03/13 01:46 by 127.0.0.1