The idea is to provide some information as to the purpose about the view type for the developer. It's not visible output content. It takes Full HTML. It appears somewhere around the view columns.
You can click and edit it.
Would this be useful? I think if a view is very complex, it would make it easier to understand if one goes away for awhile, comes back and forgets what the view does.
| Comment | File | Size | Author |
|---|---|---|---|
| #21 | 522318-views-display_description-human_name_1.patch | 14.27 KB | dawehner |
| #19 | snapshot6.png | 56.1 KB | dawehner |
| #19 | 522318-views-display_description-human_name.patch | 10.47 KB | dawehner |
| #17 | snapshot5.png | 22.8 KB | dawehner |
| #16 | 522318-views-display_description-human_name.patch | 6 KB | dawehner |
Comments
Comment #1
merlinofchaos commentedI agree, this could be useful.
This would go well alongside a 'human readable' name for a View, which is something that Views have never had and have always needed.
Patches will be considered.
Comment #2
dawehnerSo as i think its basically splitted into two parts:
- human readable name for a view
- note/description for every display handler
Comment #3
dawehnerHere it comes.
Comment #4
dagmarWe should allow users define this values when creates a new view.
It is similar to this patch but with changes in the function views_ui_add_form(&$form_state) {}
Comment #5
dawehnerYes i missed this. Thanks for giving me the function name :)
Comment #6
dagmarThe patch doesn't apply anymore. admin.inc have changed a lot since last commit.
I would like to see this Readable name in a more visible place, something like:
Last featured messages: This views displays in fashion way the last ten nodes that have been flagged as featured.
Maybe we can add this legend in top of the view display, just below of Views name. Or maybe popup with a ? icon.
I don't know, but thats is the idea...
Comment #7
dagmarFor reference: #330160: It should be more obvious on how to edit a description
Comment #8
merlinofchaos commentedAfter converting line endings, this patch now applies again.
(This patch is exactly the same, just has line endings converted).
Comment #9
merlinofchaos commentedWe aren't allowed to modify views_schema_1() -- see my comments on #635336: Remove unused fields from the view
Comment #10
dawehnerNew version, resolved conflicts in display.inc
Comment #11
merlinofchaos commentedThis needs to be updated now that the .install file fixes have been committed. WE do need to make sure that both fresh install and updates work, so just putting it in an update function is not enough.
Comment #12
dawehnerUpdate
Comment #13
merlinofchaos commentedHm. This has display description as defaultable? Why would that be? The display name isn't, certainly the description should be unique to the display.
Comment #14
dawehnerChanged the defaultable and changed the update-id to 6009
Comment #15
dawehnerOH nice patch name. Here is a rerole
Comment #16
dawehnerHere is a updated version.
I'm wondering whether the tag should still be used as the admin-title, see screeshot. The description/human-readable name is not there.
Comment #17
dawehnerHere is the screenshot
Comment #18
merlinofchaos commentedYes, I think these should be broken out into separate line items on the main form.
Comment #19
dawehnerHere is the new patch.
Comment #20
merlinofchaos commentedDoesn't quite apply to D7.
Comment #21
dawehnerHere is a first patch.
Comment #22
dawehnerPorted. It's working fine, when you clear the menu cache :)
Commited to the 7.x-3.x branch.