Garvin - I want to experiment with something, although its ultimate use is anything but certain.
First, do we have a current way to fetch a list of user groups? When creating or editing an entry, I want to experiment with saving one or more groups with the entry then altering what is displayed via entries.tpl based on those values....
I am just not sure how to proceed from here for the "faked plugin" concept, especially since the example earlier in this thread was for a radio button, not a multi select list.
I know, I know... I'm probably in for yet another self-imposed headache!!!!
EDIT: OK, I'm part way there... I can get the groups as:
Code: Select all
$groups = serendipity_getAllGroups();
echo '<select name="groups[]" multiple="multiple">';
foreach ($groups as $group) {
echo '<option value="' . $group[id] . '">' . $group[name] . '</option>';
}
Now I just need to do this within the context of the "faked plugins".