Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > HTML in Custom Document Type View modes: 
User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 1/14/2011 2:33:30 PM
   
HTML in Custom Document Type
I have a custom document type I created and one of the text fields there is some HTML, <a> tags especially. They all render correctly except for the fact that when you hover over the link it has the full link of the document and the actual HTML link at the end. The attribute is of type Text (4000) and the field is a Textarea.

For instance the field in my document type has <a href="www.msn.com" target="_blank">MSN</a>

It renders as: http://dev.xxxx.org/cms/getdoc/e70ded1d-d581-4c5a-9f50-b276326443dd/www.msn.com

How do I fix this?

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 1/14/2011 2:43:23 PM
   
RE:HTML in Custom Document Type
One other interisting part is it renders the HTML correctly when I view the source but prepends the document URL at the beginning of the <a> tag.

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 1/17/2011 3:09:39 AM
   
RE:HTML in Custom Document Type
Hello,

Could you please try to append http:// infront of your link, like this:

<a href="http://www.msn.com" target="_blank">MSN</a>

This might help to generate a standard link without rewriting. Please let me know if it helped.

Best regards,
Boris Pocatko