With the recent work done by @heatherbell , @burt & others, along with the layout I'm looking to achieve for the footer of my site, I got to thinking can we make more sections of the site with PI modularity?
In this instance I'm thinking the footer but could it also be done for the header and other pages?
In terms of header and footer would we need to consider height and width in the modularity?
What are peoples thoughts?
More Modular Sections - Footer
-
LeeFoster
- Contributor
- Posts: 263
- Joined: Sun Feb 28, 2021 9:41 pm
- Phoenix Version: v1.0.8.20
- Has thanked: 1 time
- Been thanked: 5 times
Re: More Modular Sections - Footer
So it is possible and quite simple to do. It's taken me about 1.5 hours to do using @heatherbell's modular contact us but I now have a PI modular footer.
You do not have the required permissions to view the files attached to this post.
-
LeeFoster
- Contributor
- Posts: 263
- Joined: Sun Feb 28, 2021 9:41 pm
- Phoenix Version: v1.0.8.20
- Has thanked: 1 time
- Been thanked: 5 times
Re: More Modular Sections - Footer
So I'm currently in the process of updating my footer to work on 1.0.8.20 and I'm having an issue with how MODULE_CONTENT_I_INSTALLED works. I've created a footer version of it, however, when I install a footer module it also updates to the configuration value with the contect of MODULE_CONTENT_I_INSTALLED as well.
Can anyone offer any advice?
Can anyone offer any advice?
- burt
- Core Team
- Posts: 4551
- Joined: Tue Oct 29, 2019 9:37 am
- Phoenix Version: v1.1.0.8
- : Buy Me A Beverage
- Has thanked: 252 times
- Been thanked: 412 times
Re: More Modular Sections - Footer
So far as I recall, there are only three possibilities for Layout modules;LeeFoster wrote: ↑Tue Sep 24, 2024 10:07 am So I'm currently in the process of updating my footer to work on 1.0.8.20 and I'm having an issue with how MODULE_CONTENT_I_INSTALLED works. I've created a footer version of it, however, when I install a footer module it also updates to the configuration value with the contect of MODULE_CONTENT_I_INSTALLED as well.
Can anyone offer any advice?
- index
- contact us
- product info
To add another would mean (I think, I haven't explored) a core code change in admin (one of the cgm files), a new layout module, and some child modules. Sounds like your new layout module uses MODULE_CONTENT_I_INSTALLED when it should use something like MODULE_CONTENT_FOOTER_INSTALLED
Hope this shines a light.
In return for my few minutes on this post, please take few minutes on this [ viewtopic.php?p=17822#p17822 ] and give us some feedback on the new look/features.
I am not here to build for you.
I am here to build with you. Let's help each other.
I am here to build with you. Let's help each other.
-
LeeFoster
- Contributor
- Posts: 263
- Joined: Sun Feb 28, 2021 9:41 pm
- Phoenix Version: v1.0.8.20
- Has thanked: 1 time
- Been thanked: 5 times
Re: More Modular Sections - Footer
I've already added footer as a Layout module -burt wrote: ↑Tue Sep 24, 2024 1:14 pm So far as I recall, there are only three possibilities for Layout modules;
- index
- contact us
- product info
To add another would mean (I think, I haven't explored) a core code change in admin (one of the cgm files), a new layout module, and some child modules. Sounds like your new layout module uses MODULE_CONTENT_I_INSTALLED when it should use something like MODULE_CONTENT_FOOTER_INSTALLED
Hope this shines a light.
In return for my few minutes on this post, please take few minutes on this [ viewtopic.php?p=17822#p17822 ] and give us some feedback on the new look/features.
Code: Select all
const GROUP_KEYS = [
'contact_us' => 'MODULE_CONTENT_CU_INSTALLED',
'index' => 'MODULE_CONTENT_I_INSTALLED',
'product_info' => 'MODULE_CONTENT_PI_INSTALLED',
'footer' => 'MODULE_CONTENT_FOOTER_INSTALLED',
];