How can i add html into a page?

14 Mar '18, 10:44 PM
4,870 Views
No Forum Badges

Hi, I´m trying to add html code, to display instructions, the html code contains images and buttons.

I have been trying a script component and it doesn´t works for me.

I hope you can help me.

 
x 0
Follow
Answer Answer at this question and get points!
Forum Hero - Level 9

Hi Axel,

if you want to show a simple text/html you could refer to the Message component. in fact you can set ''text/html' for the Content Type Parameter. In this case you can follow these steps:

  • Select the Message component from the Grid View
  • Click on the blue point near the Component Layout Property item in the Properties View
  • Set the Content Type in the shown Layout Parameters window.

I suggest you to see here: https://my.webratio.com/learn/learningobject/how-to-model-feedback-messages-v-72

If you want to define and show a more complex structure that should contain text and images you could refer to the CKEditor widget. In fact this lets you to integrate in your page a text/html editor. It is as an extension of the simple text area. Moreover you could set it as read only. For more details about this widget you can refer to this article https://my.webratio.com/learn/learningobject/how-to-model-rich-text-editing-v-72

Moreover you can obtain better results if you consider also the Details component.

At the end if this section will contain only instructions, the action buttons should be putted outside this "area". You could divide these instructions and put each part in specific zones of your page.

I hope this will help you

 
x 0
Answer at this question and get points!