Copied to clipboard

Flag this post as spam?

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


  • Anders Dahl Tollestrup 73 posts 52 karma points
    Apr 08, 2009 @ 09:20
    Anders Dahl Tollestrup
    0

    Problems with GetMedia and macro parameters

    Hi

    I'm having some difficulties with the GetMedia method, when using with a XSLT variable based on a number macro parameter.

    [code]


    <script type="text/javascript"><br />
        $(document).ready(function() {   <br />
            $('#jq_imageFader').innerfade({   <br />
                speed: 'slow',   <br />
                timeout: <xsl:value-of select="$imageTime" />,   <br />
                type: 'sequence',   <br />
                containerheight: '100px'  <br />
            });  <br />
        });  <br />
    </script>







    [/code]

  • Daniel Lindstrom 454 posts 271 karma points
    Apr 08, 2009 @ 09:34
    Daniel Lindstrom
    0

    Does it only fail on validation when saving, but works in front end if you skip validation?

  • Daniel Lindstrom 454 posts 271 karma points
    Apr 08, 2009 @ 09:37
    Daniel Lindstrom
    0

    My guess is that the $imageFolder never holds any value, due to miss-spelling or something similar. Some things you could test:

    Check the macro parameter setup.
    Put an xsl:if around GetMedia to test if $imageFolderId really contains any value before accessing GetMedia.
    Print out the value of $imageFolder using value-of while debugging.

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Apr 08, 2009 @ 09:50
    Ismail Mayat
    0

    anderstollestrup,

    the images in the folder how were they uploaded was it manually one by one or massupload using zipupload or something like that?

    Regards

    Ismail

  • Anders Dahl Tollestrup 73 posts 52 karma points
    Apr 08, 2009 @ 09:55
    Anders Dahl Tollestrup
    0

    Hi

    @daniel_l: I have tried to output the content of the variable $imageFolderId and it's the exact same value as my workaround: 1086!

    @imayat12: I'm using manual uploaded images in the media section. Just created a folder (ID:1086), which contains there images.

    /Anders

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Apr 08, 2009 @ 10:01
    Ismail Mayat
    0

    anders,

    In media goto the folder and just click save on each image item dont need to change anything just try it and then reload your page see if the images turn up.

    Regards

    Ismail

Please Sign in or register to post replies

Write your reply to:

Draft