Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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()<= 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
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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()<= 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
is working on a reply...