Copied to clipboard

Flag this post as spam?

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


  • Brian Olsen 143 posts 424 karma points
    Mar 26, 2013 @ 07:39
    Brian Olsen
    0

    numbers after images in Xslt

    why do all the numbers come after the image

    /media/218/IMG_0999.jpg19001100800335jpg

  • Fuji Kusaka 2203 posts 4220 karma points
    Mar 26, 2013 @ 07:51
    Fuji Kusaka
    0

    Can you please post your xslt code  ?

     

  • Brian Olsen 143 posts 424 karma points
    Mar 26, 2013 @ 07:53
    Brian Olsen
    0
    <?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:Exslt.ExsltCommon="urn:Exslt.ExsltCommon" xmlns:Exslt.ExsltDatesAndTimes="urn:Exslt.ExsltDatesAndTimes" xmlns:Exslt.ExsltMath="urn:Exslt.ExsltMath" xmlns:Exslt.ExsltRegularExpressions="urn:Exslt.ExsltRegularExpressions" xmlns:Exslt.ExsltStrings="urn:Exslt.ExsltStrings" xmlns:Exslt.ExsltSets="urn:Exslt.ExsltSets"
        exclude-result-prefixes="msxml umbraco.library Exslt.ExsltCommon Exslt.ExsltDatesAndTimes Exslt.ExsltMath Exslt.ExsltRegularExpressions Exslt.ExsltStrings Exslt.ExsltSets ">


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

    <xsl:param name="currentPage"/>


    <xsl:template match="/">
        <xsl:for-each select="$currentPage/teaser/widgets/widget[showTeaser!='']">
            <xsl:if test="mediaType = '1'">
                <xsl:call-template name="billeder">
                </xsl:call-template>
            </xsl:if>
        </xsl:for-each>
    </xsl:template>
           
    <xsl:template name="billeder">
       


    <div  class="column {.//fyldh} paddingrb16">
    <div class="transition {.//fyldb} {.//fyldh}">



    <xsl:if test="$currentPage/teaser//umbracofile!=''">
    test
    <xsl:value-of select=".//fyldh" />
    <xsl:value-of select=".//fyldb" />
        <xsl:variable name="images" select="umbraco.library:Split(.//umbracofile, ',')"/>
        <xsl:for-each select='$images/value'>
            <xsl:variable name="galleryImage" select="umbraco.library:GetMedia(., false)"/><!-- get the media by id-->
    <xsl:value-of select="$galleryImage" />
        billede
    <img src="{$galleryImage/billedeCrop/crops/crop[@name='$column1x1']/@url}" alt=""/> <!-- the media item has a propery named 'imageCrops' and the crop name is 'Gallery Product'-->

        </xsl:for-each>
       

    </xsl:if>
       
    </div>
    <div class="textoverteasers {.//fyldb}">
    <div class="padding5">
    <span class="sortlilleoverskrift"><xsl:value-of select=".//overskrift" /></span>
    <br/>
    <div class="padding10">
    <span class="teasertext"><xsl:value-of select=".//bodyText" /></span>
    </div>
    </div>
    </div>
    </div>

    </xsl:template>

    </xsl:stylesheet>
  • Fuji Kusaka 2203 posts 4220 karma points
    Mar 26, 2013 @ 07:57
    Fuji Kusaka
    100

    Biran try

    <xsl:variablename="galleryImage"select="umbraco.library:GetMedia(., false)/umbracoFile"/>
  • 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