Add an option to open export links in a new tab in Views Data Export

Created on 24 July 2024, 5 months ago
Updated 5 August 2024, 5 months ago

Problem/Motivation

The Views Data Export module currently does not provide an option to open the export links in a new tab. This feature can enhance user experience by allowing users to keep their current view intact while accessing the export files in a new tab.

Steps to reproduce

  1. Enable the Views Data Export module.
  2. Create a view with a data export display.
  3. Observe that the export links do not have an option to open in a new tab.

Proposed resolution

Add a new configuration option to the Views Data Export settings to allow the export links to be opened in a new tab. This can be done by:

  • Adding a checkbox option in the display settings form.
  • Passing this option to the theme layer.
  • Modifying the export link template to use this option to set the target attribute.

Remaining tasks

  • The options must be added to the form within the view.
  • The branch template must be edited to make it able to open in another tab.

User interface changes

A new checkbox option "Open in new tab" will be added to the export settings form in the Views UI.

API changes

No API changes are anticipated.

Data model changes

No data model changes are anticipated.

Feature request
Status

Needs review

Version

1.4

Component

Code

Created by

🇨🇷Costa Rica thony1199

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024