HI @rainer
Not sure if this is just me, but after installing this on a 1.0.8.20 version, everything works as it should, but the pages list is not sorted alphabetically when editing the addon in the admin area.
Is there a way of sorting these so its easier to find and select the files?
I have attached the below image to show what I mean.
Holiday - Promotional Message
Holiday message pages list not sorted alphabetically - Holiday - Promotional Message
-
14Steve14
- Senior Contributor
- Posts: 923
- Joined: Fri Oct 25, 2019 7:01 pm
- Phoenix Version: v1.0.9.1
- Contact:
Re: Holiday message pages list not sorted alphabetically
The module uses a core function to retrieve the pages. So I do not think that It can be addressed within the module.
Anyway I’m on unplugged holidays (without computer) until 25 of September. I’ll have a look when I’m back.
Edit: I had a look into a 1.0.8.20 store I have access to admin and which has that module installed. The sort order is alphabetic. This must be something in your store’s core.
Anyway I’m on unplugged holidays (without computer) until 25 of September. I’ll have a look when I’m back.
Edit: I had a look into a 1.0.8.20 store I have access to admin and which has that module installed. The sort order is alphabetic. This must be something in your store’s core.
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
-
raiwa
- Certified Developer
- Posts: 1640
- Joined: Sat Dec 21, 2019 8:08 am
- Phoenix Version: 1.1.0.6
- : Buy Me A Beverage
- Contact:
Re: Holiday message pages list not sorted alphabetically
I thought it may be something in my core but have no idea where to look as it was a new install of 1.0.8.20 pro version only a few weeks ago and all I have done is added in some modules. I will ask on the main forum if you have no ideas where to look.
-
14Steve14
- Senior Contributor
- Posts: 923
- Joined: Fri Oct 25, 2019 7:01 pm
- Phoenix Version: v1.0.9.1
- Contact:
Re: Holiday message pages list not sorted alphabetically
You should search for the function which is used to retrieve the pages. As I have no computer with me, I can’t and of course I do not know by memory where it is defined.
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
-
raiwa
- Certified Developer
- Posts: 1640
- Joined: Sat Dec 21, 2019 8:08 am
- Phoenix Version: 1.1.0.6
- : Buy Me A Beverage
- Contact:
Re: Holiday message pages list not sorted alphabetically
check this file " includes\system\versioned\1.0.5.6\page_selection.php"14Steve14 wrote:I thought it may be something in my core but have no idea where to look as it was a new install of 1.0.8.20 pro version only a few weeks ago and all I have done is added in some modules. I will ask on the main forum if you have no ideas where to look.
-
Omar_one
- Senior Contributor
- Posts: 678
- Joined: Fri Oct 25, 2019 5:06 pm
- Phoenix Version: v1.0.8.16
- Contact:
Re: Holiday message pages list not sorted alphabetically
Gary came up with a solution in a post in the main forum and it cured the problem I was having. His suggestion was to add into includes\system\versioned\1.0.5.6\page_selection.php a sort after copying ot into the override folder.Omar_one wrote:check this file " includes\system\versioned\1.0.5.6\page_selection.php"14Steve14 wrote:I thought it may be something in my core but have no idea where to look as it was a new install of 1.0.8.20 pro version only a few weeks ago and all I have done is added in some modules. I will ask on the main forum if you have no ideas where to look.
Code: Select all
$files = array_unique($files);
sort($files); // new line of code
$output = Config::select_multiple($files, $values, $key) . '<br>'
. new Tickable('p_all', ['class' => ' '], 'checkbox') . ' ' . TEXT_ALL;-
14Steve14
- Senior Contributor
- Posts: 923
- Joined: Fri Oct 25, 2019 7:01 pm
- Phoenix Version: v1.0.9.1
- Contact: