Channel:Form
Last updated
Was this helpful?
Last updated
Was this helpful?
Ansel works in channel:form, however you will notice that it will appear largely unstyled. This is because it relies on many styles and icons normally found within ExpressionEngine's control panel, but are not easily available on the front-end.
Including the following css file, per the channel:form docs, is not sufficient.
You can include the entire common.min.css
file, which is what is used by ExpressionEngine in the control panel, but it may apply more styles than necessary. If you include this you will notice that the Ansel field displays its missing styles.
If you're using the legacy grid view in Ansel, you will not need to include the common.min.css
file, it still renders most of it's styles.
Ultimately it is up to you how to render the Ansel field in a channel:form. A little extra work to add custom styles may be necessary if you do not want to include common.min.css
.
We do recommend hiding the meta edit button since the slide out modal normally find when inside of the ExpressionEngine control panel is not available in channel:form tags.