MG 1.1 Custome created fields, expand by default?

sross

Active member
Hi, my users are missing the expand button and think the fields are missing. Can someone tell me how to have the expand button 'expanded' by default? Must be in media_add template? but not a coder so need instruction. Thanks




Screen Shot 2016-02-16 at 11.12.14 PM.webp
 
It's fairly simple.

Go to Admin CP > Appearance > Search Templates > And search for a template with a title of xengallery_media_add_item

Open that template and in the template code look for:
Code:
{$requiredInput}

And replace that with:
Code:
1

Save the template, and it will always be expanded by default from now on.

Incidentally, it is also expanded by default if any of the fields are set to be required. So if there are any fields that must be filled out, you could set them to be required and it has the same effect without having to edit templates.
 
Top Bottom