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

I want to use the article image as the cover image Sngine blog #96

Open
nguyenvanphus opened this issue Jun 29, 2024 · 0 comments
Open

Comments

@nguyenvanphus
Copy link

nguyenvanphus commented Jun 29, 2024

Sngine 3.11

I have a problem that I need help with:

I want to Force users to upload images when posting (because upload does not have a mandatory function)

Can you help me?

I used the required attribute but it didn't work

`



{__("Cover")}



                </button>
                <div class="x-image-loader">
                  <div class="progress x-progress">
                    <div class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100"></div>
                  </div>
                </div>
                <i class="fa fa-camera fa-lg js_x-uploader" data-handle="x-image"></i>
                <input type="hidden" class="js_x-image-input" name="cover" required>
				
			
				
              </div>
            </div>
          </div>`

__feeds_article.tpl.txt
Attach files 1
Attach files 2
blogs.tpl.txt
blogs-upload.txt

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