Page 1 of 1

s06e01 - Index Page Layout QUESTIONS/SUPPORT

Posted: Tue Oct 27, 2020 10:03 am
by admin
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

pi modules - public $group

Posted: Tue Oct 27, 2020 1:13 pm
by bonbec
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?

Re: s06e01 - Index Page Layout

Posted: Tue Oct 27, 2020 2:43 pm
by ecartz
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
Slot 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
Which displays like

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.

Re: s06e01 - Index Page Layout

Posted: Tue Oct 27, 2020 2:57 pm
by burt
>> 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.

Re: s06e01 - Index Page Layout

Posted: Tue Oct 27, 2020 3:33 pm
by bonbec
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.

Re: s06e01 - Index Page Layout

Posted: Tue Oct 27, 2020 3:37 pm
by ecartz
bonbec wrote: Tue Oct 27, 2020 3:33 pm 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.
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'], ",
        ],
So if you changed that from pi_modules_c to something else, it would still get set to pi_modules_c when the setting was read. Whereas if you change the configuration setting, it will change the group.

Re: s06e01 - Index Page Layout

Posted: Tue Oct 27, 2020 4:01 pm
by bonbec
OK thanks a lot. This time I understood :)