Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
litespeed_wiki:cpanel:cpanel-plugin-custom-template [2018/07/09 18:34]
Michael Alegre [Preparing A Custom Template]
litespeed_wiki:cpanel:cpanel-plugin-custom-template [2018/07/09 18:41]
Michael Alegre [cPanel Plugin - Using A Custom Template]
Line 1: Line 1:
 ====== cPanel Plugin - Using A Custom Template ====== ====== cPanel Plugin - Using A Custom Template ======
  
-The LiteSpeed Web Cache Manager plugin for cPanel can be customized to load a custom template through the LiteSpeed WHM plugin. A custom template allows a hosting provider to modify or completely replace the content of the LiteSpeed Web Cache Manager plugin'​s landing page without modifying existing plugin files directly.+The LiteSpeed Web Cache Manager plugin for cPanel can be customized to load a custom template through the LiteSpeed WHM plugin. A custom template allows a hosting provider to modify or completely replace the content of the LiteSpeed Web Cache Manager plugin'​s landing page for all cPanel users without modifying existing plugin files directly.
  
 ===== Preparing A Custom Template ===== ===== Preparing A Custom Template =====
Line 8: Line 8:
 Now that you have created the template directory, you can either copy the existing index.php file under ''/​usr/​local/​cpanel/​base/​frontend/​paper_lantern/​ls_web_cache_manager/​landing/​default''​ into this directory to get started or copy over your own version from elsewhere. This file will handle calling any custom code or files you need to mange and display the new landing page while still having relative access to all the existing classes, functions, and pages already built into the plugin. Now that you have created the template directory, you can either copy the existing index.php file under ''/​usr/​local/​cpanel/​base/​frontend/​paper_lantern/​ls_web_cache_manager/​landing/​default''​ into this directory to get started or copy over your own version from elsewhere. This file will handle calling any custom code or files you need to mange and display the new landing page while still having relative access to all the existing classes, functions, and pages already built into the plugin.
  
-**Note:** It is strongly recommended that all custom template code is backed up at different location to prevent ​loosing these changes on uninstall or upgrade of the LiteSpeed Web Cache Manager plugin. As such, we recommend using a symlink in place of these files in the actual plugin.+**Note:** It is strongly recommended that all custom template code is backed up at different location to prevent ​possible lose during ​uninstall or upgrade of the LiteSpeed Web Cache Manager plugin. As such, we also recommend using a symlink in place of these files in the actual plugin ​location.
  
 ===== Setting A Custom Template ===== ===== Setting A Custom Template =====
  • Admin
  • Last modified: 2018/07/18 13:55
  • by Michael Alegre