MG 2.2 Description Required

chrisf

Member
Is there an easy way to require a description on media that is uploaded so the gallery does not default to changing it to the random file name of the uploaded picture? Thanks!
 
Solution
Edit the xfmg_media_add_macros template.

Change this:
HTML:
<xf:textboxrow name="{$namePrefix}[title]" value="{{ mustache('title') }}"

To this:
HTML:
<xf:textboxrow name="{$namePrefix}[title]" value=""

To require a description edit the next block of code down and add required="required" like so:
1616274468108.png
Edit the xfmg_media_add_macros template.

Change this:
HTML:
<xf:textboxrow name="{$namePrefix}[title]" value="{{ mustache('title') }}"

To this:
HTML:
<xf:textboxrow name="{$namePrefix}[title]" value=""

To require a description edit the next block of code down and add required="required" like so:
1616274468108.png
 
Solution
Brogan, thank you again. I was looking there and missed that part :( Any way to make the description required? Do not see in the template where it even checks to see that the title is required. I appreciate all of your help the last few weeks. Thanks!
 
Top Bottom