Download all button should disable in attachments list .
is it possible to do without changing/modifying existing code
No. If you don't want people downloading things, then don't put them on a page they can see.
Hi there,
Nic is correct. If the users have access to view the attachments on the page then they also have the permissions to download them.
I created a feature request for this some time ago that you're welcome to watch and vote:
Otherwise, it will require that you modify the code to disable the add-on, which you were trying to avoid.
Let us know if you have any questions.
Kind Regards,Shannon
Thanks Shannon
but as per my requirement i have to modify the code ..i checked you modify the code doc..they have mentioned need to edit .vm file and update with below code
$generalUtil.htmlEncode($generalUtil.shortenString($attachment.fileName, 35))
how can we restrict for specific page as per above codeplease help me on this
Hi,
You won't be able to restrict it; this is only to completely disable it.
To restrict it you only need to simply restrict who has permissions to access the page and its attachments. As long as someone has access to view the page and its attachments, they'll be able to download them.
shall i add some if condition to restrict specific page in .vm file ?
It looks like you're new here. Sign in or register to get started.