Skip to content

Change Thumbnail Size for a Particular Entry Module in Merciglobal Cloud ERP

This guide is intended for MerciGlobal internal developers who want to customize the thumbnail size for specific entry modules within the Merciglobal Cloud ERP system.

Operation: Change Thumbnail Size

Sometimes, specific modules in Merciglobal Cloud ERP require different thumbnail sizes for better visibility or layout alignment. This document walks you through how to change the thumbnail size for a particular entry module.

How to Do It?

To customize the thumbnail size:

Step-by-Step Instructions

  1. Navigate to libfuncs.php
  2. This file contains module-specific function overrides.

  3. Declare a function with the format:

function <tablename>_thumbnailSize() {
    return 250; // Change the size value as needed
}
  1. Replace <tablename> with the actual database table name corresponding to the module for which you want to change the thumbnail size.

  2. Example: For a table named products, the function would look like:

function products_thumbnailSize() {
    return 300; // Set desired thumbnail width in pixels
}
  1. Save the File and Clear Cache (if applicable)
  2. This ensures the change reflects across the system.

Result

Once implemented, the respective module will render thumbnails at the specified size wherever applicable within the Merciglobal Cloud ERP interface.

Best Practices

  • Keep size values consistent across similar modules for visual harmony.
  • Use a size that doesn't impact page loading speed.
  • Avoid hardcoding large values unless necessary for high-res imagery.

Additional Notes

  • This method is ideal for customizing single modules without affecting the global layout.
  • Always test changes on a staging environment before pushing to production.

Happy Customizing! 🎨