0

I am using the Add-on AJW Export to export member details in CSV format. Each time the page loads the CSV format downloads automatically. Anyone any suggestions how to activate the download via a click rather than on page load..

Code looks like this:

{exp:ajw_export sql="SELECT * FROM exp_member_data" format="csv" filename="members.csv" }

2

You can do it like this:

<a href="members/index" class="button">Download</a>

(place this button anywhere you want)

Just create group in your templates called members and add {exp:ajw_export sql="SELECT * FROM exp_member_data" format="csv" filename="members.csv" } to index file.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.