Closed (fixed)
Project:
Views data export
Version:
8.x-1.x-dev
Component:
User interface
Priority:
Minor
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
18 Oct 2021 at 19:16 UTC
Updated:
7 Nov 2025 at 15:39 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #3
samalander commentedI've created a merge request on GitLab.
It's my first GitLab MR; just in case I did it wrong, here's also its patch file.
Comment #4
drasgardian commentedAttached patch uses the view display's title rather than name as the text on the link.
Comment #7
svendecabooterI have created a new branch / merge request that updates this functionality, by also adding the option to manually set the title via the Views UI - through the Data export style settings.
I used this approach because my Views title gets altered dynamically (via contextual filters), whereas I want the data export icon title to be fixed.
Hope this helps.
Comment #11
kala4ekAdded 2 commits to MR !6 to fix the following issues:
Comment #12
kala4ekAdding changes from MR !6 as patch (to have direct link to exatcly that changes).
Comment #13
steven jones commentedYES!!! This would be so cool! Let's get the MR up to date.
Comment #16
steven jones commentedLet's focus on MR!6 and let's use the attributes collection to pass in the title, rather than adding a new attribute directly in the template.
Comment #17
steven jones commentedComment #18
pooja saraah commentedAddressing the comment #16
setting the title attribute in the #attributes array in PHP, and then using {{ attributes }} in the template.
Attached patch for current version.
moving this issue to needs review.
Comment #19
pooja saraah commentedComment #20
awearring commentedSince 1.7 was release patch #18 (and #12) no longer apply
Comment #21
awearring commentedComment #22
steven jones commentedFeature requests should go against the latest dev version.
And I've updated the MR, will try to get this one merged this week.
Comment #23
awearring commentedUpdated patch to work with 8.x-1.7
Comment #24
steven jones commentedComment #25
steven jones commentedI've changed slightly the implementation and taken out the custom configuration, I'm not sure we need to have another title, do we?
The patches here had it using an attributes array, and the title was in that, not sure if the approach with moving the title in a preprocess is better/worse, opinions?
@svendecabooter would that suffice for you? You mentioned that the title was being set by contextual filters? But presumably that's optional? You could turn that feature off, can't you?
Comment #27
steven jones commentedMerged.