There are getting to be more and more cases where people will need to put multiple instances of the same field in a view. ui_name() has no way of distinguishing which is which. There are also more instances where these fields are being used externally, such as in Panels. Being able to override the ui_name() could be very valuable in keeping Views understandable.

I think this is mostly a textfield that becomes an option in the base views_handler and ui_name() tests it; if it's not empty, it uses it, otherwise it uses the existing formula.

Comments

dawehner’s picture

Status: Active » Needs review
StatusFileSize
new3.87 KB

Here is a patch.

This added quite some calls " parent::options_form"

Perhaps the title/description could get some native language love.

dawehner’s picture

StatusFileSize
new3.95 KB

New version: It overrides the "group", too

merlinofchaos’s picture

Assigned: Unassigned » merlinofchaos
Status: Needs review » Active

So far my only issue with this is taht "Custom UI Name" probably isn't meaningful to users. Let's go with "Administrative title" and explain that this is how the field will show up in the View edit as well as anywhere else that the view might be administered.

merlinofchaos’s picture

Status: Active » Needs review

Whoops. Didn't mean to change status.

dawehner’s picture

StatusFileSize
new3.96 KB

Updated the patch based on the feedback.

merlinofchaos’s picture

Status: Needs review » Fixed

Committed to 3.x in 6 and 7, with a slight wording tweak.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

iamjon’s picture