Форуми / Cotonti / Support / HTML on pages

Insert HTML

newbuk
#1 02.07.2010 05:12
I need to insert some HTML code into a page. How can I do this? What BBCodes do I need before and after to ensure the HTMl gets run correctly.

Any help appreciated.

KD
esclkm
#2 02.07.2010 13:31
Use search
no bb.
littledev.ru - мой маленький зарождающийся блог о котонти.
снижение стоимости программирования и снижение стоимости производства разные вещи. Первое можно скорее сравнить с раздачей работникам дешевых инструментов, чем со снижением зарплаты
ez
#3 02.07.2010 14:34
Is it static code or dynamic ?
What sort off things do you want to insert ?

The most simple solution depends on your answers...

You can use BBcodes, but the code must be somewhat static (there can be just a few dynamic parts)
You could use a TPL file.. but that depends on some factors..
and more ....
There could be an AJAX sort off thing (last resort)

Anyway lots off ways.. depending on your answer there is a 'best' solution
==- I say: Keep it EZ -==
pieter
#4 02.07.2010 14:54
Or an iFrame
... can we help you ...
newbuk
#5 04.07.2010 08:09
Hi Guys,

I want to paste some html whichs reference a graphic/page on another site to pull up an advert.

How would I reference a static page?

Thanks
ez
#6 04.07.2010 15:43
Add the html in your TPL.
==- I say: Keep it EZ -==
GHengeveld
#7 04.07.2010 16:43
Unless the advert should only be shown on one or a few pages, then you could just set the page encoding to HTML and use an iframe to load the external page.

Normally I don't like iframes (or frames at all) but in this scenario it seems the easiest solution. Alternatively you could use Javascript/jQuery to load the page/graphic (AJAX).

Just to be sure: are you fetching an entire page (html) or just an image (jpg, png, gif etc) or perhaps flash (swf)? In the case of images you can just use the [ img ] BBcode, for flash you will need HTML encoding and include the flash code (<object>) or use a BBcode for loading flash if you have that configured. Only in the case of entire pages you will need to use an iframe or javascript.