Patan
Patan

Reputation: 17893

Display message in XSL formatting features for an RTF field in SDL Tridion 2011 Sp1

I have added some xsl formatting features to one RTF field in schema.

I have used the following snippet in it. For any error, I need to stop component save and display some custom message to user.

<xsl:message terminate="yes">
         <xsl:value-of select="'Some error message'"/>
</xsl:message>

Its stopping the component save, but not displaying the message.

Can any one letme know is there any better way of doing it.

Thanks in Advance.

Upvotes: 4

Views: 108

Answers (1)

Nuno Linhares
Nuno Linhares

Reputation: 10234

XSLT templates here cannot be used to display messages, only to transform content.

If you want to show an error message to the users, I'd recommend to check these 2 blogs:

Validating Content on Save - part 1

Validating Content on Save - part 2

Upvotes: 7

Related Questions