Skip to content

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

This guide is designed for Merciglobal internal developers aiming to customize thumbnail sizes for particular entry modules in Merciglobal Cloud ERP. Adjusting the thumbnail size can enhance visibility and improve layout alignment based on the module's requirements.


📚 Operation: Change Thumbnail Size

Some modules within Merciglobal Cloud ERP may benefit from customized thumbnail dimensions. This document explains how to adjust thumbnail sizes for individual entry modules.


🔧 How to Customize Thumbnail Size

Follow these step-by-step instructions:

✅ Step-by-Step Instructions

  1. Open libfuncs.php

  2. This file supports module-specific function overrides.

  3. Define a Custom Thumbnail Function

  4. Use the format:

function <table_name>_thumbnailSize() {
    return 250; // Set desired thumbnail width in pixels
}
  1. Replace <table_name>

  2. Substitute with the actual database table name of the module.

  3. Example:

  4. For a module using the products table:

function products_thumbnailSize() {
    return 300; // Example: setting thumbnail width to 300px
}
  1. Save the File and Clear Cache (if needed)

  2. Ensure that all changes take effect across the ERP interface.


📊 Result

Once implemented, thumbnails in the designated module will appear using the specified width across the Merciglobal Cloud ERP interface.


📆 Best Practices

  • 🔄 Maintain consistent sizes across similar modules for uniform design.
  • ⏳ Use optimal dimensions to preserve loading speed.
  • ⚠️ Avoid unnecessarily large values unless needed for high-resolution content.

📅 Additional Notes

  • This approach is ideal for customizing specific modules without impacting global thumbnail settings.
  • ⚖️ Always test changes on a staging environment before deploying to production.

Happy Customizing with Merciglobal Cloud ERP! 🎨