Macro Parameters, Text and Multiline Text problem: double quotes and breaklines
Hello,
Im running
umbraco v
4.0.3 (Assembly version: 1.0.3625.27276),
asp.net 3.5 on windows server 2008 r2, IIS 7
I found out that when I create a macro, and add Multiline Text parameter, the text that is insered into the parameter get truncated after a double quote.
so if I insert into my multiline parameter a text like: hello "world" and publish the page, the text saved into the macro parameter is just hello. Infact, if re-edit the macro's parameter, i only see the truncated text.
An another problem is that text insered into Multiline Text parameter desn't preserve breaklines.
The value of the macro parameter needs to be HTML encoded - which the Umbraco UI usually does for you.
If you are manually editing the value, then you will need to encode the text. If you are not sure about the HTML encodings, there is a reference guide:
Thank you for your response. I have already tried to html encode the text, but with the same result:
hello "word" is truncated to hello
hello "word" is truncated to hello
I really can't understand what is going wrong: after publishing the page, all the text after " or" is lost. Is there maybe a configuration that should be set?
Could anybody please, just try to paste " hello "word" " into a text/multiline text macro's parameter and publish the page to see if the same problem happens?
Macro Parameters, Text and Multiline Text problem: double quotes and breaklines
Hello,
Im running
I found out that when I create a macro, and add Multiline Text parameter, the text that is insered into the parameter get truncated after a double quote.
so if I insert into my multiline parameter a text like: hello "world" and publish the page, the text saved into the macro parameter is just hello.
Infact, if re-edit the macro's parameter, i only see the truncated text.
An another problem is that text insered into Multiline Text parameter desn't preserve breaklines.
my macro's xslt:
<xsl:output method="xml" omit-xml-declaration="yes"/>
<xsl:variable name="Code" select="/macro/Code"/>
<xsl:param name="currentPage"/>
<xsl:template match="/">
<xsl:value-of select="$Code" />
</xsl:template>
As you can see my xslt file does nothing special, it just prints a parameter into my page.
Am I doing something wrong?
Any help is really appreactiated.
Thank you.
Hi myro,
The value of the macro parameter needs to be HTML encoded - which the Umbraco UI usually does for you.
If you are manually editing the value, then you will need to encode the text. If you are not sure about the HTML encodings, there is a reference guide:
http://www.w3schools.com/tags/ref_entities.asp
Cheers, Lee.
Hello Lee,
Thank you for your response.
I have already tried to html encode the text, but with the same result:
I really can't understand what is going wrong: after publishing the page, all the text after " or " is lost.
Is there maybe a configuration that should be set?
Could anybody please, just try to paste " hello "word" " into a text/multiline text macro's parameter and publish the page to see if the same problem happens?
Thank you
Hi myro,
I have the same issue, did you ever find a solution?
Thanks,
Matt
Hello!
Experiencing the same problem - will post if i figure something out.
// Thomas G
is working on a reply...