cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

HTML rendering of text fields

SMAINIL
Super Contributor

Hello,

 

I have a question about HTML descriptions and specifically about the rendering of text fields like "Comment".

 

For example, I have a object with the following layout:

object_comment.png

 

In a description I just use the line:

[Property=Comment/]

 

And here is the final rendering:

generated_text.png

So is there a way to have the same layout in the website than in the field of the Mega Object?

 

Thanks for your help

 

Stéphane

2 Replies

RBalazs
Super Contributor

Hi,

 

Try this from VB macro, it keeps some of the formatting:

 

oOrgUnit.GetFormated("~f10000000b20[Comment]", "html")

 

SVanSchoonlandt
Honored Contributor

By default the comment field is an rtf field I thought. The word styles are not converted/mapped to html styles I would say. Maybe if you change the format of a text field to HTML instead of rtf that works. Never done this, I would try it out with a new metaattribute first though.

 

regards

 

stijn