Adding HTML attributes to a value-of without using element
Hello,
I am currently working on a site which requires on certain pages to have the body text laid over an image. (The body text is a rich text editor field.) At the moment I'm not sure what the best approach to do this is as anything you type into the rich text editor is automatically appended the <p></p> tags. Here is my code snippet:
I know I could use an xsl:element and xsl:attribute to add the intro, noGapBottom and whiteText classes but then I would need to change the field type of the bodyText to simple editor I presume but I do not want to do this.
You could look into the RemoveFirstParagraphTag() function, but from what I've seen of it, it's rather buggy. Besides, what if there is a second paragraph?
Adding HTML attributes to a value-of without using element
Hello,
I am currently working on a site which requires on certain pages to have the body text laid over an image. (The body text is a rich text editor field.) At the moment I'm not sure what the best approach to do this is as anything you type into the rich text editor is automatically appended the <p></p> tags. Here is my code snippet:
I know I could use an xsl:element and xsl:attribute to add the intro, noGapBottom and whiteText classes but then I would need to change the field type of the bodyText to simple editor I presume but I do not want to do this.
Any ideas would be welcomed.
Thanks
You could look into the RemoveFirstParagraphTag() function, but from what I've seen of it, it's rather buggy. Besides, what if there is a second paragraph?
Argh ignore me. I've gone and got myself mixed up, baffoon.
is working on a reply...