Hi guys, I've had a look through the threads here but can't find an answer.
We've installed the module and had a play.
- Can I protect a page generated by views with the module?
- What does the protected node views extension (sub)module do , I can't find any documentation.
We have a use case where we have a view which contains teasers to a node type which holds media (which can be downloaded by clients).
We either want to completely password protect the page or password protect the file downloads.
Our case is complicated somewhat in that we manually generate the download link on the teaser because we are using the http://drupal.org/project/file_force
module to force the file to be downloaded rather that have the browser try and open the file.
any help much appreciated, thanks!
Comments
Comment #1
AlexisWilke commented> - Can I protect a page generated by views with the module?
If you mean by that, protect the output of a view, yes, but not directly. The idea is fairly simple though:
1) Install the InsertView module
2) Create a node and insert the view in that node: [view:name=display=args], then protect the node with a password
However, you cannot just protect the links of a page... although if you also get the InsertNode module, you probably can.
1) Install the InsertView and InsertNode modules
2) Create an empty node with just the links
3) Create a node with the content and then insert the empty node with something like [node:123]
With explicit teasers (the <!--break--> comment) you should be able to make this work in (or not in) teasers as required.
Thank you.
Alexis Wilke
http://drupal.org/project/InsertNode
http://drupal.org/project/insert_view
Comment #2
AlexisWilke commentedAnd you were correct, I did not have any documentation for the Views support.
http://www.m2osw.com/doc-protected-node-views
Comment #3
hixster commentedWow , thanks for the quick response on this Alexis and for providing that additional documentation, that is great. I think we'll go for the first solution you proposed, using Insert Views or just attaching a block to a protected page.
Thanks again for your help! I shall mark as fixed.