HTML-asset after SP2

Sandrilyon

New member
No one rule that creates HTML pages in session doesn't allow to use tags inside of <body>. So, we cannot use no <img>, no <b>, no more tags. Every tag is ignoring. Just naked text.

What to do to show to user the instructions in session?
 
I have TRS19 PE SP2 installed and do not have this problem. I just tested a session that uses a HTML asset and it is working perfectly. As an added test I downloaded from the DLS a session (created for TANE a few years ago) that includes a HTML asset and it also worked perfectly.

As a third test I opened the downloaded HTML asset and checked its contents - everything is present, no missing tags. I then committed the asset and ran its session again with the same result - it worked perfectly.

I am not sure what you mean by

No one rule that creates HTML pages in session doesn't allow to use tags inside of <body>.

What do you mean by "no one rule"?

EDIT: If you mean a rule that creates HTML pages? Then there is no rule that does that. The Message Popup Rule will allow you to enter a few lines of text that it will display in a small browser window. It will also allow you to include a full HTML coded page, with all the tags it supports, that was created in a text editor. See http://online.ts2009.com/mediaWiki/index.php/How_to_Create_a_HTML_Asset
 
Last edited:
I found the source of the issue. The fact is the tags don't work in <font> tag, so I have to insert <img> beyond it. Somthing has chaned after SP2.
The problem has gone.
 
I found the source of the issue. The fact is the tags don't work in <font> tag, so I have to insert <img> beyond it. Somthing has chaned after SP2.
The problem has gone.

Great you have found the fix :) I'll save this in case I face the same problem later. Thank you.
 
The fact is the tags don't work in <font> tag,

No, that theory does not tally with HTML assets. I use <font> tags extensively in HTML assets and they are all working correctly in SP2.


  • Make sure that all your <font> tags are correctly terminated by </font> tags
  • Remember that Trainz HTML is a small subset of full HTML, not all tags or tag sub commands work. The only sub command I use in <font> is "color".


On rereading your post ... I have never enclosed an <img> tag between <font> </font> tags in a HTML asset as the font would/should have no effect on the image, BUT consider my second dot point above.
 
Last edited:
Back
Top