Addon:
Lots of extra Modules to better design your home page.
Download:
viewtopic.php?f=28&t=160
Note:
Many Index Layout Modules went into Core Code recently, so you might not need this addon.
Ask if you are not sure what you need.
--
Questions/Support
s06e01 - Index Page Layout QUESTIONS/SUPPORT
- bonbec
- Contributor
- Posts: 190
- Joined: Mon Oct 26, 2020 12:23 pm
- Phoenix Version: V1.1.0.7
- Has thanked: 54 times
- Been thanked: 40 times
pi modules - public $group
Hello,
Looking at the pi modules in detail, I noticed that "public $group =" contains different values:
- i_modules_a
- i_modules_b
- i_modules_c
- i_modules_d
- ...
What is the meaning of these a, b, c, d, ...?
What value should we use when creating our own pi module?
Looking at the pi modules in detail, I noticed that "public $group =" contains different values:
- i_modules_a
- i_modules_b
- i_modules_c
- i_modules_d
- ...
What is the meaning of these a, b, c, d, ...?
What value should we use when creating our own pi module?
Old MS2.2 PHP7.4 site being converted to CE Phoenix v1.1.0.6 PHP 8.3
-
ecartz
- Core Team
- Posts: 3084
- Joined: Tue Nov 05, 2019 6:02 pm
- Phoenix Version:
- Has thanked: 4 times
- Been thanked: 208 times
Re: s06e01 - Index Page Layout
Those are the default locations for the module to appear. You can use any of a -i for your own modules. The default widths for product info are
A
BC
DE
F
GH
I
skipping any empty ones.
The default ones on product_info all appear in B and C. So if you want to appear above them, put yours in A. B and C put them with them (check sort order next). D - I would be below. I'm not sure about the index ones, as I don't have those installed.
Which displays likeSlot Width: A
12
Slot Width: B
7
Slot Width: C
5
Slot Width: D
6
Slot Width: E
6
Slot Width: F
12
Slot Width: G
6
Slot Width: H
6
Slot Width: I
12
A
BC
DE
F
GH
I
skipping any empty ones.
The default ones on product_info all appear in B and C. So if you want to appear above them, put yours in A. B and C put them with them (check sort order next). D - I would be below. I'm not sure about the index ones, as I don't have those installed.
Last edited by ecartz on Tue Oct 27, 2020 3:14 pm, edited 1 time in total.
- burt
- Core Team
- Posts: 4547
- 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: s06e01 - Index Page Layout
>> What is the meaning of these a, b, c, d, ...?
You can change the width of the Groups A thru I in the main Controller Module;
admin > modules > content > π Modular Index
aka /admin/modules_content.php?module=cm_i_modular
In each child module you can select it to go into Group A thru I, noting that any group with no content is not displayed.
admin > layout modules > index
aka /admin/modules_i.php
>> What value should we use when creating our own pi module?
Any of A thru I.
You can change the width of the Groups A thru I in the main Controller Module;
admin > modules > content > π Modular Index
aka /admin/modules_content.php?module=cm_i_modular
In each child module you can select it to go into Group A thru I, noting that any group with no content is not displayed.
admin > layout modules > index
aka /admin/modules_i.php
>> What value should we use when creating our own pi module?
Any of A thru I.
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.
- bonbec
- Contributor
- Posts: 190
- Joined: Mon Oct 26, 2020 12:23 pm
- Phoenix Version: V1.1.0.7
- Has thanked: 54 times
- Been thanked: 40 times
Re: s06e01 - Index Page Layout
Thanks for the explanations, but I don't really understand :
So when we have public $group = 'i_modules_a'; it means that the module is specifically designed to go into zone A, when we have public $group = 'i_modules_b'; it means that the module is specifically designed to go into zone B, right ?
In fact, during testing, when I changed public $group = 'i_modules_a'; in public $group = 'i_modules_b'; I didn't notice any change, hence my question.
So when we have public $group = 'i_modules_a'; it means that the module is specifically designed to go into zone A, when we have public $group = 'i_modules_b'; it means that the module is specifically designed to go into zone B, right ?
In fact, during testing, when I changed public $group = 'i_modules_a'; in public $group = 'i_modules_b'; I didn't notice any change, hence my question.
Old MS2.2 PHP7.4 site being converted to CE Phoenix v1.1.0.6 PHP 8.3
-
ecartz
- Core Team
- Posts: 3084
- Joined: Tue Nov 05, 2019 6:02 pm
- Phoenix Version:
- Has thanked: 4 times
- Been thanked: 208 times
Re: s06e01 - Index Page Layout
The modules almost certainly override the default values with a setting. For example, look at the PI Buy Button: https://github.com/gburton/CE-Phoenix/b ... button.php
Code: Select all
'PI_BUY_GROUP' => [
'title' => 'Module Display',
'value' => 'C',
'desc' => 'Where should this module display on the product info page?',
'set_func' => "tep_cfg_select_option(['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I'], ",
],