You need to sign in to do that
Don't have an account?
barbkuntz
Sites converting <!--….--!>
We are having our Sites-based website translated into 3 new languages. As part of the process, we are adding directive tags <!--….--!> to tell the translator robots what to do with certain pieces of information. The trouble is, Salesforce.com is changing the text between those tags to asterisks <!--*****--!> which renders them unreadable. How can I keep Salesforce from doing this?
Well, that little hack didn't work, but I did finally get a solution from Salesforce support which may also help some of you. Good luck!
++++++++++++++++++++++++++++++++++++++
1). Create a custom label with a param for the text in the label:
<labels>
<fullName>SourceCommentLabel</fullName>
<language>en_US</language>
<protected>true</protected>
<shortDescription>Label that allows you to include comments in the rendered source.</shortDescription>
<value><!-- {0} --></value>
</labels>
2). Use apex:outputText tag to include a comment:
<apex:outputText escape="false" value="{!$Label.SourceCommentLabel}">
<apex:param value="mp_trans_disable_start"/> </apex:outputText>
All Answers
This is a huge need for Sites. No conditional comments support.
I'm willing to bet it's a "protection" feature so your secrets are not leaked to the world. Clever of them, if you ask me. Anyways, you're not interested in that, so I'll cut to the chase. Here is a "hack" I've found that appears to work. At least, until they fix it.
Thanks - we'll give this a try. I'll let you know how it turns out.
Well, that little hack didn't work, but I did finally get a solution from Salesforce support which may also help some of you. Good luck!
++++++++++++++++++++++++++++++++++++++
1). Create a custom label with a param for the text in the label:
<labels>
<fullName>SourceCommentLabel</fullName>
<language>en_US</language>
<protected>true</protected>
<shortDescription>Label that allows you to include comments in the rendered source.</shortDescription>
<value><!-- {0} --></value>
</labels>
2). Use apex:outputText tag to include a comment:
<apex:outputText escape="false" value="{!$Label.SourceCommentLabel}">
<apex:param value="mp_trans_disable_start"/> </apex:outputText>