hide image's info fields value in admin panel?

7 posts by 3 authors in: Forums > CMS Builder
Last Post: December 1, 2022   (RSS)

Hi,

Is there any way to hide the image's info value in the sections where is the upload fields (admin back-end)?

Thank you,
Karls

Hi,

If I understand you correctly, you can disable any info fields by deleting the info field contents for that upload field in the section editor 'your image upload field' > 'modify' > delete the default title and caption entry in the info fields.

This is a global change for the info fields for that upload field, so those particular info fields will not display anywhere and will not be available for viewers, etc.

 I don't know how to accomplish just hiding them in that particular image list while keeping them active in other places.

Hope that helps,

Jerry Kornbluth

The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Hi Jerry,

I want to keep the value info1 but hide it on the admin back-end.
Thank you anyway.

Karls

Sorry I couldn't help more.

Jerry Kornbluth

The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

By Dave - November 29, 2022

Hi Karls, 

There's no official way to hide those fields.  

However, if you're comfortable modifying the code though you can try this:

  • Open /cmsb/lib/menus/default.php
  • Search for this: echo $row['_infoFields']
  • Add these slashes to "comment out" this line
  • <?php // echo $row['_infoFields']; ?>

Keep in mind these custom changes will be overwritten the next time you upgrade.  What we recommend anytime you make custom changes to the CMSB files is to create a file called /cmsb/_CUSTOM_CHANGES_.txt that lists the files and content changed.  That way anyone upgrading in the future will notice that file in the CMSB root and be able to easily recreate those changes.

Hope that helps!

Dave Edis - Senior Developer
interactivetools.com

Thank you Dave,

This is perfect for me!

Karls

By ht1080z - December 1, 2022 - edited: December 1, 2022

Hi Dave,

I cannot find default.php within this folder (/cmsb/lib/menus/) or any folder inside the lib folder. (using v3.56)

PS: I found the required string inside the /cmsb/lib/menus/default/uploadList.php and it worked!

Thank you again!
Karls