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.
- Need support for version 10? The core development team is no-longer offering it for free (unless it's a critical bug that breaks your entire site or a serious security hole). Please consider hiring me instead if you need v10 support or a non-critical bug fix. Or, ask the community in the forums!
- Do you enjoy Composr? Please consider contributing your talent to the project or recommending Composr to others. Even small contributions make a big impact in the Composr community.
- Do you have feedback for us? You can report bugs, suggest features, or give feedback on the Free support options page.
- Do you need professional service with your Composr website? Please consider contracting me for your needs through my company, PDStig, LLC. Doing so will also help fund Composr development.
- Want to watch live streams of me developing Composr CMS? Please subscribe to me on Twitch to be notified when I stream. Composr development streams are usually spontaneous / not scheduled in advance as work priorities come first.




Adam said
Comcode works actually, just for the record.
From “Post #9,291”, 26th August 2023, 5:20 pm
Noted. I'll investigate why img failed to work.
- Need support for version 10? The core development team is no-longer offering it for free (unless it's a critical bug that breaks your entire site or a serious security hole). Please consider hiring me instead if you need v10 support or a non-critical bug fix. Or, ask the community in the forums!
- Do you enjoy Composr? Please consider contributing your talent to the project or recommending Composr to others. Even small contributions make a big impact in the Composr community.
- Do you have feedback for us? You can report bugs, suggest features, or give feedback on the Free support options page.
- Do you need professional service with your Composr website? Please consider contracting me for your needs through my company, PDStig, LLC. Doing so will also help fund Composr development.
- Want to watch live streams of me developing Composr CMS? Please subscribe to me on Twitch to be notified when I stream. Composr development streams are usually spontaneous / not scheduled in advance as work priorities come first.




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
Mach Brown



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.
- Need support for version 10? The core development team is no-longer offering it for free (unless it's a critical bug that breaks your entire site or a serious security hole). Please consider hiring me instead if you need v10 support or a non-critical bug fix. Or, ask the community in the forums!
- Do you enjoy Composr? Please consider contributing your talent to the project or recommending Composr to others. Even small contributions make a big impact in the Composr community.
- Do you have feedback for us? You can report bugs, suggest features, or give feedback on the Free support options page.
- Do you need professional service with your Composr website? Please consider contracting me for your needs through my company, PDStig, LLC. Doing so will also help fund Composr development.
- Want to watch live streams of me developing Composr CMS? Please subscribe to me on Twitch to be notified when I stream. Composr development streams are usually spontaneous / not scheduled in advance as work priorities come first.


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 Patrick Schmalstig
Mach Brown

