Thanks for your work-around suggestion Matthew. I’ve gone a different route because I was still unsure how zipping would solve the problem with having a button to activate the download.
I’d still have to trigger the download somehow right?
Cheers,
Craig
I understand that it works in any theme, I have used it that way myself. To focus back on the original question: would Button Plus pass along the download attribute that Flat Button, Sweet Button or Foundation 1 Button do not.
It doesn’t seem to and I’ve moved on to another solution for the time being, but it would still be good to know for future reference if there’s any fairly easy way to do it.
I must have an older version (1.5.8), not sure why it’s not updating for me. Or are we talking about another button stack? It’s named FoundationButtonPlus.stack in the stacks library.
That’s why I said that it’s an old Foundation 1 addon stack.
It’ looks like the newer ButtonPlus 2 uses href="%id=link -href%" so any attributes from the RW link Dialog are dropped, am I right?
Now the BP2 and BP1 do have an “add data attributes” option, and if you set the name to download and the file name to the data value it should work. I tried it on BP2 and it does work.
F6 button has a similar option called “add custom Attribute” as well as a checkbox to add the download.
ButtonPlus2 absolutely does work for the download attribute, just like it works with any attribute entered directly into its settings - nice and simple.
I’ve put the image in resources as cross origin restrictions often apply to the download attribute - i.e. make sure that the source is on the same domain as the link.