• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • 😌 This community is user driven. Be polite with other users.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.
  • Chevereto Support CLST

    Support response

    Support checklist

Remove or limit image descriptions

imghut

💖 Chevereto Fan
Any way to remove/disable the image description, or even better limit the number of characters a user can input?
 
Has anyone ever looked into this? This is one thing I would really like to see.
Thanks all
 
In Deutsch
-------------
Du kannst in der folgenden Datei den entsprechenden Code entfernen.
/app/themes/Peafowl/snippets/anywhere_upload.php
Zeile 327 bis 330

Anleitung:
  1. Kopiere die Datei /app/themes/Peafowl/snippets/anywhere_upload.php in den Ordner /app/themes/Peafowl/overrides/snippets
  2. Öffne die kopierte Datei und gehe zu Zeile 327.
  3. Entferne die Zeilen 327 - 330. Alternativ kannst Du diese auch nur auskommentieren.
    HTML:
     <div class="input-label"> <label for="form-description"><?php _se('Description'); ?> <span class="optional"><?php _se('optional'); ?></span></label>
    <textarea id="form-description" name="form-description" class="text-input no-resize" placeholder="<?php _se('Brief description of this image'); ?>"></textarea>
                    </div>
  4. Speicher die Datei ab und erfreue dich darüber, das das Feld der Beschreibung für kommende Uploads verschwunden ist.
Ich hoffe ich konnte Dir helfen.

Allerdings ist es so, das noch weitere Anpassungen von nöten sind, da es so noch so sein wird, das beim Bearbeiten von Bildinformationen das Feld Beschreibung weiterhin existiert.
Hierzu müsste der gleiche vorgang mit der Datei /app/themes/Peafowl/snippets/form_image.php gemacht werden. (Zeile 30-33)


Bestehende Bildbeschreibungen bleiben erhalten, können aber über die Datenbank geleert werden. (PhpMyAdmin)

---------------------------
Translated into english
---------------------------
You can remove the appropriate code in the following file.
/app/themes/Peafowl/snippets/anywhere_upload.php
Line 327 to 330

Manual:
  1. Copy the file /app/themes/Peafowl/snippets/anywhere_upload.php to the folder /app/themes/Peafowl/overrides/snippets
  2. Open the copied file and go to line 327.
  3. Remove lines 327 - 330. Alternatively, just comment out them.
    HTML:
     <div class="input-label"> <label for="form-description"><?php _se('Description'); ?> <span class="optional"><?php _se('optional'); ?></span></label>
    <textarea id="form-description" name="form-description" class="text-input no-resize" placeholder="<?php _se('Brief description of this image'); ?>"></textarea>
                    </div>
  4. Save the file and enjoy the fact that the description field for upcoming uploads has disappeared.
I hope I could help you.

However, there is still need for further adjustments, since it will still be so that when editing image information, the description field still exists.
For this, the same process would have to be done with the file /app/themes/Peafowl/snippets/form_image.php. (Line 30-33)


Existing image descriptions are retained, but can be emptied via the database. (PhpMyAdmin)
 
Back
Top