Closed (fixed)
Project:
References
Version:
7.x-2.x-dev
Component:
User interface
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
31 Jan 2011 at 23:21 UTC
Updated:
10 Apr 2011 at 00:02 UTC
Jump to comment: Most recent file
Currently, argument summaries for reference fields display raw nids (resp. uids)
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | references_argument_title-1046898-5.patch | 4.42 KB | yched |
| #4 | references_argument_title-1046898-4.patch | 5.9 KB | yched |
| #2 | references_argument_title-1046898-2.patch | 5.93 KB | yched |
Comments
Comment #1
yched commentedWorking on it.
Comment #2
yched commentedAttached patch adds the two missing D6 behaviors - display node title (resp user name) instead currently of nid (resp uid) :
- in arguments summary lists (relies on the 'name table' and 'name field' properties used by the default views_handler_argument handler)
- in title '%n' placeholders (relies on a custom references_handler_argument handler)
But, after much head-scratching, I only manage to have the 'arguments summary' part work by patching views to fix a possible bug there. I'll post the patch in the Views queue and ask for feedback over there.
Also, the references_handler_argument handler introduced here is common to both noderef and userref, and thus needs to be exposed at a higher level (in D6, such handlers were exposed by content.module).
Therefore, the patch introduces references.module as a wrapper for common functionnality. Other views handlers or plugins will need this too.
No commitment on the actual rate to which bits of 'similar' code from noderef and userref will be refactored and factorized out into references.module in the future, but at least the door is open.
Comment #3
yched commentedViews issue + patch : #1059646: Argument summaries : 'title table' not correctly joined ?
Comment #4
yched commentedfix whitespace styling error
Comment #5
yched commentedRerolled after #962694: [release blocker] Make Node Reference Relationships Work in Views and #1046886: [release blocker] Use the 'many_to_one' views filter handler
Comment #6
yched commented#1059646: Argument summaries : 'title table' not correctly joined ? got fixed in Views dev, so the patch now works fine (retested).
Committed (1st d.o git commit, at last !).