How to use html in the Closed Site dialog box

Post

Posted
Rating:
#9274 (In Topic #3214)
Avatar
Standard member
Malatesa is in the usergroup ‘Well-settled’
If the site is closed, Composr shows a box with text in it. How would I add an image there?

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.

Image

Screenshot from 2023-08-13 07-53-36.png

Screenshot from 2023-08-13 07-53-36.png
Online now: No Back to the top

Post

Posted
Rating:
Item has a rating of 5
#9275
Avatar
Site staff
Adam Edington is in the usergroup ‘Super-moderators’
Comcode (Comcode help – Composr) is the way but if you want to close the site and use a completely custom html page, create a closed.html in the root of your install. You will still be able to access the website by appending ?keep_force_open=1 to the URL.
Online now: No Back to the top

Post

Posted
Rating:
#9289
Avatar
Site director
Patrick Schmalstig is in the usergroup ‘Administrators’
I don't think the closed message supports Comcode / whatnot.

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.
Online now: No Back to the top

Post

Posted
Rating:
Item has a rating of 5 (Liked by Patrick Schmalstig)
#9291
Avatar
Site staff
Adam Edington is in the usergroup ‘Super-moderators’
Comcode works actually, just for the record.
Online now: No Back to the top

Post

Posted
Rating:
Item has a rating of 5 (Liked by Adam Edington)
#9292
Avatar
Site director
Patrick Schmalstig is in the usergroup ‘Administrators’

Adam said

Comcode works actually, just for the record.

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.
Online now: No Back to the top

Post

Posted
Rating:
#9293
Avatar
Site staff
Adam Edington is in the usergroup ‘Super-moderators’
Image worked for me (using the example code from the Comcode help page) but perhaps there is an issue with non-local images?
Online now: No Back to the top

Post

Posted
Rating:
#9520
Avatar
Standard member
machbrown2 is in the usergroup ‘Fan in training’

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


Regards

Mach Brown
Online now: No Back to the top

Post

Posted
Rating:
#9521
Avatar
Site director
Patrick Schmalstig is in the usergroup ‘Administrators’
machbrown2 forum posts utilize / filter HTML so if you were trying to demonstrate such, you may need to edit your post. It got significantly broken / cut off.

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.
Online now: No Back to the top

Post

Posted
Rating:
Item has a rating of 5 (Liked by Keith Parker)
#9525
Avatar
Standard member
machbrown2 is in the usergroup ‘Fan in training’
Hello,
 

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


Regards

Mach Brown
Online now: No Back to the top

Post

Posted
Rating:
#9527
Avatar
Standard member
DigitalGuidance is in the usergroup ‘Fan in training’
In a Closed Site dialog box, you can use HTML to customize the content and appearance of the dialog box. This can be done by including HTML markup within the dialog box's code. For example, you can use HTML tags like <div>, <p>, <h1>, <h2>, etc., to structure the content and style it using CSS. Additionally, you can include links (<a> tags) or images (<img> tags) to provide more interactive and visually appealing content. However, it's important to note that the specific implementation of HTML in a Closed Site dialog box will depend on the platform or system you are using to create and manage the dialog box.





Online now: No Back to the top
1 guest and 0 members have just viewed this.

Statistics

Forum statistics:
  • 2,053 topics, 7,195 posts, 10,839 members
  • Our newest member is PurplewaveIndia
Birthdays:
Back to Top