I have created a download list, based on the
file list component. I have a requirement to provide functionality that allows the content editor to determine whether, on click, a file should be downloaded, opened in a new tab or opened in the current tab.
I started by creating a
droplist field on the template on which I set the
source to an options folder I'd created containing the above choices.
From here, I intended to set rules on the file to determine how it should behave based on what was selected in the
droplist but I realised that this functionality wasn't available in the rules engine.
Here's a picture of my variant, if it's useful:
How can I achieve this?