How to use html in the Closed Site dialog box
Regular html seems to be filtered out.
I looked for information on but it's not mentioned in the tempcode tutorial, much, not the comcode tutorial. The [img] tag only returns the url of the image.
Screenshot from 2023-08-13 07-53-36.png
If you would like it to, please add a feature request on the tracker: My View - Composr CMS feature tracker . As Adam mentioned, you can also make your own closed page.
Adam said
Comcode works actually, just for the record.
From “Post #9291”, 9th Apr 2012
Noted. I'll investigate why img failed to work.
hello
Composr CMS uses Comcode for content creation, and it's designed to be secure to prevent potential security vulnerabilities. By default, HTML is often restricted to ensure safe content rendering. However, Composr provides various ways to include images in Comcode without directly using HTML.
To add an image within a Composr box or content, you can use the
What I do is put spaces in between the tags, e.g. < img > and just tell people to remove the spaces. Sometimes a code block will work too.
Composr uses Comcode for templating, and embedding images within Comcode can be done using the image Comcode tag. However, if regular HTML is not working as expected, you might need to use Comcode's image tag specifically.
Here's an example of how you can use the image tag in Composr to display an image within a box:
Code
[block param="box"][image="URL_OF_YOUR_IMAGE" caption="Optional Image Caption"][/block]
Replace "URL_OF_YOUR_IMAGE" with the actual URL or path to your image.
Alternatively, if you want to use a background image for the box, you can use the background parameter:
Code
[block param="box" background="URL_OF_YOUR_IMAGE" caption="Optional Image Caption"]Your text goes here.[/block]
Again, replace "URL_OF_YOUR_IMAGE" with the actual URL or path to your image.
Make sure to adjust the Comcode according to your needs and the specific requirements of the Composr platform you are using.
If you are facing issues, you may want to check the Composr forums or documentation for any platform-specific considerations or restrictions related to embedding images within boxes.
Last edit: by PDStig

