Global widget listing

The selection of global widgets shown in the global widgets ‘tab’ varies dependng on which group you are in. That seems counter-intuitive - if widgets are truly global shouldn’t they show in the list irrespective of which group you happen to be in. I am speaking here of administrative users.

Moreover, some of my widgets shown in ‘all widgets’ as global are not showing up in the global list and I need to see them. I surmise that if I could remember which group they were first made in I might find them there but since they are ‘global’ I don’t see the group given in the ‘all widgets’ listing. In case LW sees this and wants to check an example, please see the attachment.

-= G =-

I have run into this many times, and agree it can be frustrating to not know which group(s) you can find the widget in. Try this…

  1. Go to Groups and edit any group.
  2. Click “Other group settings” at the bottom.
  3. Under “Global widgets” check the box next to the widget you are missing and save the group.
  4. You should see that widget in that group now.
  5. Edit the widget and check the “Display for all groups automatically” box.

Hey folks, sorry to hear this has been frustrating. That “All Widgets” view could definitely use an overhaul, but in the short-term maybe a custom script like this will help?

This could go into public_html/livewhale/private/all-widgets.php and then be viewed by logged-in admins at /livewhale/private/all-widgets.php via browser:

<?php
require '../index.php';

if (!$_LW->isLiveWhaleUser()) {
	die('Must be logged in.');
};

if (!$_LW->userSetting('core_admin')) {
	die('This page is admin-only.');
};

echo '<h1>All widgets</h1><table class="all-widgets"><thead><tr><th>id</th><th>gid</th><th>title</th><th>type</th><th>edit link</th></tr></thead><tbody>';

foreach($_LW->dbo->query('select', 'id, gid, title, type', 'livewhale_widgets')->run() AS $res2) {
	echo '<tr><td>'.$res2['id'].'</td><td>'.(!empty($res2['gid']) ? $res2['gid'] : 'Global').'</td><td>'.$res2['title'].'</td><td>'.$res2['type'].'</td><td><a href="/livewhale/?widgets_edit&id='.$res2['id'].'">edit link</a></td></tr>';
};

echo '</tbody></table><style>.all-widgets td, .all-widgets th {border: 1px solid black; padding: 10px;}';
?>