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
-
Open
libfuncs.php
-
This file supports module-specific function overrides.
-
Define a Custom Thumbnail Function
-
Use the format:
function <table_name>_thumbnailSize() {
return 250; // Set desired thumbnail width in pixels
}
-
Replace
<table_name>
-
Substitute with the actual database table name of the module.
-
Example:
-
For a module using the
products
table:
function products_thumbnailSize() {
return 300; // Example: setting thumbnail width to 300px
}
-
Save the File and Clear Cache (if needed)
-
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! 🎨