We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum
Output a file to download to specific members
We have an issue regarding the members app and trying to create a way to allow them to download files specifically for a member.
I've added the following to members.html:
<perch:members type="text" id="first_name" label="First name" listing="true" order="1" /> <perch:members type="text" id="last_name" label="Last name" listing="true" order="2" /> <perch:members type="file" id="quote_pdf" label="Quote" listing="true" order="3" />
As you can see the last of these is type "file", and now under a specific member we can upload a file, in this case a quote personalise to them.
The issue is we cannot find a way to output that in the members profile page or any page once that member is logged in.
We have tried:
<?php perch_member_form('quotes.html'); ?>
That directs to a simple html file with:
<perch:members type="file" id="quote_pdf" label="Quote" listing="true" order="3" />
But this ends up blank, similarly, we tried the get function:
<?php echo perch_member_get('quote_pdf'); ?>
But my understanding is this only works with a string. Is there any known way to output a file download link?
Want to reply to this thread?Login with Perch