Copied to clipboard

Flag this post as spam?

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


  • Natasha 79 posts 195 karma points
    Oct 22, 2013 @ 17:51
    Natasha
    0

    Getting my rss feed to scroll with jquery cycle 2

    Hi All

    I have finally got my feed to work, but I would love it to be a scrolling feed can anyone tell what I'm doing wrong?  This is my XSLT and I'm using umbraco 4.7

    <?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:value-of select="umbraco.library:RegisterJavaScriptFile('cycle', '/Scripts/jquery.cycle.min.js')"/>
    <div class="cycle-slideshow"
        data-cycle-fx="scrollHorz"
        data-cycle-timeout="0"
        data-cycle-prev="#prev"
        data-cycle-next="#next"
        >
      
     
      <xsl:variable name="MyFeed" select="umbraco.library:GetXmlDocumentByUrl('http://blog.ncb.org.uk/syndication.axd')" />

      <ul>
        <xsl:for-each select="$MyFeed/rss/channel/item">
          <div>
          <li><h4><xsl:value-of select="title" /></h4>
          
            
            <p><xsl:value-of select="concat(substring(umbraco.library:StripHtml(./description),1,100),'...')" /></p>
              <a class="button" href="{link}" target="_blank">Read More</a>        
          </li>
       
        </xsl:for-each>
      </ul>
     
      </div>
    </xsl:template>
    </xsl:stylesheet>

    The url is http://staging.ncb.baigentpreview.com/

     

    please help

    Thanks in advance

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Oct 22, 2013 @ 19:44
    Jan Skovgaard
    0

    Hi Natasha

    I've just had a look at the url you posted and it seems like it's working as intended? I see a caroussel that cycles by itself...so I guess it's solved? :)

    /Jan

  • Natasha 79 posts 195 karma points
    Oct 23, 2013 @ 11:10
    Natasha
    0

    Hi Jan 

    Thanks for your reply.

    I think I should have made it more explicit not the carousel at the top which works fine but the feed at the bottom left of the page.  I have now named it blog spot for ease of reference.

     

    Thanks

  • Natasha 79 posts 195 karma points
    Oct 23, 2013 @ 12:44
    Natasha
    0

    Hi again

     

    I have done it using a different jquery function vticker - if anyone else is experiencing the same problem http://richhollis.github.io/vticker/

    Best wishes

    Natasha

  • 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