Ignore:
Timestamp:
2023-09-12T12:02:26+12:00 (9 months ago)
Author:
kjdon
Message:

in the gs2 interface, the home page defines serviceList template, to override the one in gslib. due to the way the pagexsl and gslibxsl were combined, the gslib template was coming second, and therefore being used. I have made this add gslib elements into the page first, then the page elements, so that the page elements will override the gslib ones

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/core/transform/expand-gslib.xsl

    r33667 r38104  
    4141    </xsl:for-each>
    4242   
    43     <xsl:call-template name="expand_gslib_elements" />
    44    
    4543    <!-- add content of gslib to the page stylesheet -->
    4644    <xsl:for-each select="/pageAndGslibXsl/gslibXsl/xsl:stylesheet">
    4745      <xsl:call-template name="expand_gslib_elements" />
    4846    </xsl:for-each>
    49    
     47
     48        <!-- now add all the page elements, so that they come *AFTER* the
     49gslib ones -->
     50    <xsl:call-template name="expand_gslib_elements" />
    5051      </xsl:for-each>
    5152    </xslt:stylesheet>
Note: See TracChangeset for help on using the changeset viewer.