In the Fivestar module, there is an excellent live preview of all the Fivestar settings as you adjust the various options (number of stars, various flag texts, Fivestar format, etc.) This helped tremendously with users understanding what various options did in the UI. Flag has already got a lot of textfields, and there are a lot of issues suggesting more yet:
#301680: Create message: "Login to [flagname] [nodetitle]"
#1138162: Raw tokens shown in UI for bulk operations and empty bookmarks page
Plus some issues that would increase the flexibility/complexity of the Flag text itself:
#1256012: Allow html text instead of plain link text
To prevent Flag from becoming entirely confusing with its dozen of textfields, we should imitate Fivestar and provide a live preview of all of these options as the user populates the fields.
Examples of things to include in the Preview:
Flag link: Bookmark Unflag link: Remove from Bookmarks Anonymous message: Login or Register to boomark this content Bulk operations:
We might also figure out a way to do things like display the AJAX behavior as needed. But just getting the basic behavior in place would be a huge help.
Comment | File | Size | Author |
---|---|---|---|
#5 | 1291670-5.flag_.admin-iframe-preview.patch | 10.49 KB | joachim |
#2 | flag-admin-preview.tpl_.php_.txt | 442 bytes | quicksketch |
#1 | flag_iframe_preview.patch | 9.01 KB | quicksketch |
Comments
Comment #1
quicksketchI haven't finished the necessary JavaScript to do the reloading after each change, but this is a good start on this functionality.
Comment #2
quicksketchLast patch is missing this tpl.php file too.
Comment #3
joachim CreditAttribution: joachim commentedUpping the version.
This looks like a great feature but I don't have the JS skills to know what needs doing here.
Comment #4
joachim CreditAttribution: joachim commentedTagging.
Comment #5
joachim CreditAttribution: joachim commentedHere's that patch rerolled with a few tweaks: documentation, changed variable names for 3.x, changed the height of the iframe.