s06e01 - Index Page Layout QUESTIONS/SUPPORT

Open to all! Ask other shopowners for help.
Post Reply
admin
Contributor
Posts: 217
Joined: Wed Oct 30, 2019 1:34 pm
Phoenix Version:
Has thanked: 20 times
Been thanked: 22 times

s06e01 - Index Page Layout QUESTIONS/SUPPORT

Post 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

Tags:


Join The Code Co-op to get access to your library in the Code Co-op Forum
User avatar
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

Post 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?
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

Post 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.
Last edited by ecartz on Tue Oct 27, 2020 3:14 pm, edited 1 time in total.
User avatar
burt
Core Team
Posts: 4546
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: s06e01 - Index Page Layout

Post 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.
I am not here to build for you.
I am here to build with you. Let's help each other.
User avatar
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

Post 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.
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

Post 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.
User avatar
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

Post by bonbec »

OK thanks a lot. This time I understood :)
Old MS2.2 PHP7.4 site being converted to CE Phoenix v1.1.0.6 PHP 8.3


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply