Hi folks,
I’m adding some PDF documents to a page. But I only want to allow people to download those documents if they are logged in as site users. I don’t want to hide the document.
I could perhaps have two images - one that’s just a PDF image and one that is the actual file linkl, and just hide/show each one as appropriate. But this seems overly complicated, plus there could be a number of those PDF documents on the page, and also the page needs to be editable by a non-technical designer (I don’t want them messing with the code!).
If you have a number of PDF files then better insert them in a database, link the database to a repeater on the page using a dataset and then show/hide the repeater. That would be one of the most straight forward solution.