Control Web Panel

Developers => New Modules => Topic started by: pro-cms on September 07, 2022, 12:05:24 PM

Title: CLIENT AREA MODULE CREATION
Post by: pro-cms on September 07, 2022, 12:05:24 PM
Please enable us to create client area modules we have documentation but even after the creation of the module, we can't assign it to the user in the features section.
Please help
Title: Re: CLIENT AREA MODULE CREATION
Post by: josemnunez on September 12, 2022, 01:13:08 PM
Hola

you must manually add the module in the following file so that it can be displayed in the module features

/usr/local/cwpsrv/htdocs/resources/conf/user_panel/menuConf.php
Title: Re: CLIENT AREA MODULE CREATION
Post by: pro-cms on September 17, 2022, 03:05:16 PM
Thanks,  it was previously encrypted now I am facing issues on my custom module html side not loading and i just copied the example module without modification,

in /usr/local/cwpsrv/var/services/user_files/modules/ when i add echo "Whatever" It loads white page with the word(without side menu or other stuffs from main template), when i remove echo  it returns error 500, can you check or help how to solve the issue
Regars
Title: Re: CLIENT AREA MODULE CREATION
Post by: josemnunez on September 19, 2022, 08:57:10 PM
1.
Update cwp to the latest version

2. run the following command to uncompress the html css and js on the user side


Code: [Select]
echo '{"compress_js":false,"compress_html":false}' > /usr/local/cwp/.conf/.devtools_config
Title: Re: CLIENT AREA MODULE CREATION
Post by: pro-cms on September 21, 2022, 10:11:24 AM
Hellow thanks, i tried but the issue still persist,  it does as explained above can you share more details for me to consider in my checklist
Title: Re: CLIENT AREA MODULE CREATION
Post by: josemnunez on September 21, 2022, 11:53:01 AM
Please open a free ticket refer to this forum thread, add access to your server and all the details of the module