WebsiteBaker Support (2.12.x) > Modules
OFA - sort by status active / inactive
(1/1)
dbs:
In OneForAll 2.0.2.23, sorting by status active/inactive does not work in the backend. This is because all fields have the same content (a whitespace).
The following can help.
In modify.php create a new line after line 244 ($active_title = ...).
New line
--- Code: ---$active = $item['active'] == 1 ? '<span style="display:none">1</span>' : '<span style="display:none">0</span>';
--- End code ---
Then change line 254 from:
--- Code: ---<span class="mod_<?php echo $mod_name;?>_active<?php echo $item['active'];?>_b" title="<?php echo $active_title;?>">& #160;</span>
--- End code ---
Change to:
--- Code: ---<span class="mod_<?php echo $mod_name;?>_active<?php echo $item['active'];?>_b" title="<?php echo $active_title;?>"><?php echo $active;?>;</span>
--- End code ---
This may be a better way to solve it, but it works.
Navigation
[0] Message Index
Go to full version