Needs review
Project:
Views (for Drupal 7)
Version:
7.x-3.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
22 Apr 2013 at 22:06 UTC
Updated:
31 Jan 2019 at 23:06 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
ravi.kumar88 commentedThere are two alternatives to achieve this:
1. Instead of selecting "Output this field as a link" choose "Rewrite the output of this field" and in the text write as below:
<span name="desired_name">[title]</span>where [title] is one of the rewrite pattern (you can choose any).
2. By applying the patch you will be able to get a Name field under the "REWRITE RESULT ->Output this field as a link" as shown in screen shot.Just insert the name of the field that will be assigned as an attribute to the field.
Comment #2
Mołot commentedSetting status to "needs review" to get testbot's evaluation of above patch.
Comment #4
Mołot commented#1: 1977100.patch queued for re-testing.
Comment #5
Mołot commentedPatch works for 7.x-3.7
Changing do dev and re-testing to see if it can be readily applied there.
Comment #6
Mołot commented#1: 1977100.patch queued for re-testing.
Comment #7
rv0 commentedeven more fun would be completely custom attributes, to support HTML5 data attributes
Comment #8
Yuri commentedThe patch does not apply well.
Comment #9
Yuri commentedThe option to use "Rewrite the output of this field" also does not work for example rel="width:500"
The width: is stripped out.
Comment #10
chris matthews commentedRemoved the trailing whitespace on lines 33 and 38 of the patch in #1 to views_handler_field.inc.