Form tag in HTML block

Is there a way to stop the HTML editor from stripping out the <form> tag? I have HTMLPurifer off. I saw a post about it five years ago, but there was no resolution. I am looking for a way around it. I suppose I could use an iframe, but it’s not ideal.

You’re trying to put this on a page, right?

If I recall correctly this has to do with the HTML editor and how it works internally, and the fact that it’s already inside a <form> (the form you’re using to edit the page).

I don’t know that there was a really workable solution; we’re not blocking the tag but the editor is losing/dropping it.

You might consider using page or block templates to do this (requires Omeka S 4.1.0 or newer). You could write your form in a file within your theme and set it as a template for (for example) the HTML block, and then you’d just have to choose that template for your block when editing the page.

Yeah, I figured there wasn’t a way to let the tag in the editor. I just made a separate template for what I wanted. Thanks.

This topic was automatically closed 360 days after the last reply. New replies are no longer allowed.