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
I have an image and there is a text on image. I want to make the text on image Editable. I want to Do this thing using Xslt.
Can any one help me.
Thanks
Hussain
you could use css to overlay your text on top of an image.... something like this:
<div class="image-with-text"><img src="your-image.jpg" alt="a nice image" /><h6>Sweet sweet text</h6></div>.image-with-text{position:relative}.image-with-text h6 {display:block; position:absolute; bottom:0; background: rgba(255,255,255,0.8)}the xslt will be something along the lines of:
<div class="image-with-text"><img><xsl:attribute name="src"><xsl:value-of select="umbraco.library:GetMedia($img0,'false')/data [@alias = 'umbracoFile']" /></xsl:attribute><xsl:attribute name="alt"><xsl:value-of select="umbraco.library:GetMedia($img0,'false')/@nodeName" /></xsl:attribute></img><h6><xsl:value-of select="umbraco.library:GetMedia($img0,'false')/@nodeName" /></h6></div>I hope that helps-Tim
Hi Tim
Thanks of Reply. Realy i did this thing.
is working on a reply...
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.
Continue discussion
who to Edit Text on image using Xslt
I have an image and there is a text on image. I want to make the text on image Editable. I want to Do this thing using Xslt.
Can any one help me.
Thanks
Hussain
you could use css to overlay your text on top of an image.... something like this:
<div class="image-with-text">
<img src="your-image.jpg" alt="a nice image" />
<h6>Sweet sweet text</h6>
</div>
.image-with-text{position:relative}
.image-with-text h6 {display:block; position:absolute; bottom:0; background: rgba(255,255,255,0.8)}
the xslt will be something along the lines of:
<div class="image-with-text">
<img>
<xsl:attribute name="src">
<xsl:value-of select="umbraco.library:GetMedia($img0,'false')/data [@alias = 'umbracoFile']" />
</xsl:attribute>
<xsl:attribute name="alt">
<xsl:value-of select="umbraco.library:GetMedia($img0,'false')/@nodeName" />
</xsl:attribute>
</img>
<h6><xsl:value-of select="umbraco.library:GetMedia($img0,'false')/@nodeName" /></h6>
</div>
I hope that helps
-Tim
Hi Tim
Thanks of Reply. Realy i did this thing.
Hussain
is working on a reply...
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.