Developer forum

Forum » Feature requests » News:HrefValid tag

News:HrefValid tag


Reply
Hi,

Would be great if the News module also generated a New:Href2 or similar. Basically the same as the News:Href tag but where & is displayed as & for validation reasons.

Best Regards,
Nuno

Replies

 
Nicolai Høeg Pedersen
Reply
That is considered a bug. The News:href tag should validate.

It has been fixed and have bugnumber TFS5363 - will be out with the service release.
 
Reply
Perfect, thanks

Nuno Aguiar
 
Reply
Hi,

Working with the Pool Module and the Page Title (http://www.vilagiorgi.com/Default.aspx?AreaID=13), the problem with & char validation also happens. Should I report this through support, or can you attach it to the news module validation fix?

Best Regards,
Nuno
 
Nicolai Høeg Pedersen
Reply
Best way would be reporting it to support.
 
Reply
will do, thanks
 
Reply
Hi,
Seems that the bugfix has created a new bug:
Using XSLT templates you will get something like this in the News.Href. I have tried to enter the example below, but have also uploaded a file where the bug can be found on each news item on the "News.Href" element.

You can use HTML templates without problems....

/Sten

PS: The soloution is running 19.1.1.0


<



News.Href>/Default.aspx?ID=911&amp;amp;PID=1591&amp;amp;M=NewsV2&amp;amp;Action=1&amp;amp;NewsId=1981</News.Href>
 
Nicolai Høeg Pedersen
Reply

&amp;amp; is the xml encoded version of &amp;. If you set disable-output-escaping="yes" it should be displayed correctly.

<xsl:value-of select="News.Href" disable-output-escaping="yes"/>