Keyword

Download Permissions in K2

More
13 years 3 months ago #97269 by Tim
Download Permissions in K2 was created by Tim
Is there a way to allow users to see the K2 Items such as an Attachment, but not download it unless they login/create an account?  Can anyone recommend a strategy or extension for this?

 

Thanks!

Please Log in or Create an account to join the conversation.

More
13 years 3 months ago #97270 by william white
Replied by william white on topic Download Permissions in K2
Create an override for the category in question.

edit the item.php file in the override - find the block that shows the attachments -

use the juser to find out if the user is registared

wrap the code that displays the attachments in a test if user is registared (do normal display)

else

(copy the code that displays and remove the link to the download displaying only the name

endif

Please Log in or Create an account to join the conversation.

More
13 years 3 months ago #97271 by Tim
Replied by Tim on topic Download Permissions in K2
Thanks William,

 

Nice, but there are no extensions or K2 built in functionality for this eh...

 

 

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum