I'm having trouble finding how to do a single entry view for a logged in user that lets them click to download a PDF of that view.
How can I make a View that lets a non-admin user of the site get a View that's limited to an entry associated with their ID (or better yet: their email address)?
I don't see any question specifically about PDFs so I'll address the issue of showing entries for the logged in user. If you want to display only the current user's entry, add a Filter that says 'UserID is equal to current_user' - as seen here.
Thanks, Rob. I can't get the frm-pdf to show a download link for the pdf in a view listing or the detail view. In the View editor, I place the frm-pdf shortcode with the parameters I want and it does not render the shortcode, just prints the full text of the shortcode: "[frm-pdf view="1234"..]"
If a shortcode is being displayed as the text of the shortcode, that means, specifically in your case that frm-pdf is not recognized. You're certain you have the PDF addon enabled? Even if your parameters were wrong, it should try to do _something_ with it. In my situation, I've used do_shortcode in PHP code and it works do_shortcode('[frm-pdf label="Invoice" filename="invoice" view="invoice-pdf" mode="view" target="_blank" public="1" id=' . $load->getInvoiceId() . ']');
Please login or Register to submit your answer