Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image fields not rendering in forms #13

Open
petealbertson opened this issue Jan 30, 2025 · 0 comments
Open

Image fields not rendering in forms #13

petealbertson opened this issue Jan 30, 2025 · 0 comments

Comments

@petealbertson
Copy link

Expected behavior

Adding a {{ cms:image image_label }} field to a layout should render the file chooser on the resource's new/edit form.

Actual behavior

Image/file chooser doesn't render and it appears it's never registered.

Steps to reproduce

  1. Add a {{ cms:image }} field to any page layout
  2. view any page's new/edit form
  3. No image/file chooser.

System configuration

Rails version: 7.2.2.1

CMS version: 3.0.0

Ruby version: 3.3.6

Possible solution

Looking at lib/comfortable_media_surfer/content/tags/image.rb, it appears the image tag class is missing a form_field method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant