Copied to clipboard

Flag this post as spam?

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


  • praveen 113 posts 164 karma points
    May 27, 2011 @ 00:06
    praveen
    0

    Button Click on Featured News

    Hi

    Using version Umbraco 4.0

    what I have done so far.

    Code:

    <xsl:for-each select="umbraco.library:GetXmlAll()/descendant::node [@nodeTypeAlias='TLM NewsListing']/node [string(data [@alias='umbracoNaviHide']) != '1' and string(data [@alias='IsFeatureNews']) = '1' ]">
     <xsl:sort select="@createDate" order="descending"/>
     <xsl:if test="position()&lt;= 1">
      <div class="featnewsimg"><img src="{string(data [@alias='FeatureNewsPicture'])}" alt="featnews img" /></div>
      <div class="featnewscontent">
       <h2 class="sifr"><xsl:value-of select="./data [@alias = 'FeatureNewsHeader']"/></h2><br  />
       <xsl:value-of select="string(data [@alias = 'FeatureNewsText'])"  disable-output-escaping="yes"/><a href="{umbraco.library:NiceUrl(@id)}">read more</a>

      </div>
     </xsl:if>
    </xsl:for-each>

    Now I want to add some button on the Featured News image, when user clicks the image and the text would change, please see the image below with button, also when the page refreshes the images and the text should change.

    Please help, and thanks in advance

    Kind Regards

Please Sign in or register to post replies

Write your reply to:

Draft