I am converting some older product info PI modules so they will work on my latest version upgrade site. I have tried all sorts of things but after changing the code in each of the files when I upload and instal them all I see in the admin layout page is a Zero rather than what is set for the module width col-12 mb-3. The correct setting is shown when I edit or view the settings in the right hand column, but zero in the main page section.
Am I doing something wrong when I convert the modules as the code looks very similar to to any of the latest versions.
When converting older PI modules to latest version col-12 mb-3 only shows as 0
-
BrockleyJohn
- Certified Developer
- Posts: 173
- Joined: Mon Mar 01, 2021 5:37 pm
- Phoenix Version:
- : Buy Me A Beverage
- Has thanked: 2 times
- Been thanked: 30 times
Re: When converting older PI modules to latest version col-12 mb-3 only shows as 0
The old modules' set function & template just used a number for the columns
The new modules have a free text field for the classes
Make sure your updated module has no set_func and that the template has none of the col- stuff
You will need to uninstall and reinstall to clear the function
The new modules have a free text field for the classes
Make sure your updated module has no set_func and that the template has none of the col- stuff
You will need to uninstall and reinstall to clear the function
-
raiwa
- Certified Developer
- Posts: 1640
- Joined: Sat Dec 21, 2019 8:08 am
- Phoenix Version: 1.1.0.6
- : Buy Me A Beverage
- Has thanked: 70 times
- Been thanked: 152 times
Re: When converting older PI modules to latest version col-12 mb-3 only shows as 0
And specifically remove the (int)cast in the first line of the template files
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing
Need Help?viewtopic.php?f=10&t=27
https://docs.google.com/spreadsheets/d/ ... sp=sharing
Need Help?viewtopic.php?f=10&t=27
-
14Steve14
- Senior Contributor
- Posts: 920
- Joined: Fri Oct 25, 2019 7:01 pm
- Phoenix Version: v1.0.9.1
- Has thanked: 17 times
- Been thanked: 103 times
Re: When converting older PI modules to latest version col-12 mb-3 only shows as 0
Thank you both. I have lots of specially coded older modules that need adding and updating so its going to take a while to find all these little changes.BrockleyJohn wrote: ↑Sat May 23, 2026 9:22 am The old modules' set function & template just used a number for the columns
The new modules have a free text field for the classes
Make sure your updated module has no set_func and that the template has none of the col- stuff
You will need to uninstall and reinstall to clear the function
-
14Steve14
- Senior Contributor
- Posts: 920
- Joined: Fri Oct 25, 2019 7:01 pm
- Phoenix Version: v1.0.9.1
- Has thanked: 17 times
- Been thanked: 103 times
Re: When converting older PI modules to latest version col-12 mb-3 only shows as 0
This was the problem. me rushing and not paying attention. All working good now.