Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ellie 17 posts 52 karma points
    Aug 07, 2014 @ 16:30
    Ellie
    0

    head.xslt

    Hi,

    I am new in xslt code. I am going to manage header in master page content manage. I don't know how to make header background image and logo image content manage? thay are in master page. Thanks :)

    this is my page and here is my code

    <?xml version="1.0" encoding="UTF-8"?>

    <!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp "&#x00A0;"> ]>

    <xsl:stylesheet 

    version="1.0" 

    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 

    xmlns:msxml="urn:schemas-microsoft-com:xslt"

    xmlns:umbraco.library="urn:umbraco.library" xmlns:Examine="urn:Examine" 

    exclude-result-prefixes="msxml umbraco.library Examine ">

    <xsl:output method="xml" omit-xml-declaration="yes"/>

    <xsl:param name="currentPage"/>

    <xsl:template match="/">

    <!-- start writing XSLT -->

    <xsl:variable name="homeNode" select="umbraco.library:GetXmlNodeById(1276)"/>  

    <div style="background: url('../media/1138/bg_gradient.jpg') repeat-x scroll 0% 0% #FFF;">

    <div id="headercontainer"  style="width:100%;height:160px;">

    <div id="headerLeftRight"  style="diplay:block;max-width: 932px;margin: 0px auto;padding: 10px 0px;">  

    <div id="logocontainer" style="width:100%;float:left;">  

    <a href="home"> <img src="../media/1131/logo2.png" style="float:left;" class="leftSideLogoHolder"/></a>  

    <img src="../media/1132/stages2.png" style="float:right;" class="rightSideLogoholder"/>

    </div>

    </div>

    </div>

     </div></xsl:template>

    </xsl:stylesheet>

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies