Keven Ages wrote:
I’m trying to keep my header graphics out of view of the user in Lenya when they are in ‘edit’ mode.
I disable the navigation in my template when the editor is used by (I use 1.4 but it shouldn't be too different for 1.2): *passing the "rendertype" to my page2xhtml.xsl transformation in my publications sitemap like so
          <map:when test="xslt/page2xhtml-{4}.xsl">
            <map:transform src="fallback://xslt/page2xhtml-{4}.xsl">
              <map:parameter name="root" value="{base-url:{2}:{3}}"/>
              <map:parameter name="publication-id" value="{2}"/>
              <map:parameter name="area" value="{3}"/>
              <map:parameter name="url" value="{5}"/>
<map:parameter name="document-id" value="{page-envelope:document-id}"/> <map:parameter name="document-type" value="{page-envelope:document-type}"/> <map:parameter name="language" value="{page-envelope:document-language}"/> <map:parameter name="contextprefix" value="{request:contextPath}"/>
              <map:parameter name="title" value="{dublincore:title}"/>
              <map:parameter name="rendertype" value="{1}" />
            </map:transform>
          </map:when>
*capture the parameter in my page2xhtml.xsl with
    <xsl:param name="rendertype" select="''" />
*then use the parameter to decide if the menu should be displayed with
    <xsl:if test="$rendertype != 'edit'">
      <xsl:apply-templates select="/cmsbody/xhtml:[EMAIL PROTECTED] = 'menu']/*" 
/>
    </xsl:if>


I’m new to Lenya and XSLT and can’t seem to find any info on this on Lenya’s site or the net.

Basically what I’m trying to do is have the header graphic update itself depending on the page it’s on (ie, about us header graphic would appear on the about us page) w/o the image showing up in edit mode, so that the user does not change or mess with it at all.
How do you wish to map the graphic to the page? Is it just the text in the graphic that changes? If so you might want to look at svg rasterized to a jpg or png if you can't get by without the image (style banner with css instead). Cool thing about svg is that you can still use css (site redesigns without touching photoshop).

--Doug



Any help would be much appreciated - if there is any more info I can give to assist - please let me know.

Cheers,

Keven


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to