Protected Node needs Views capabilites

Niels Hackius - April 7, 2009 - 19:19
Project:Protected node
Version:6.x-1.5
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Issue tags:views
Description

hej,

how do I make protected_node and views work together?

Currently I am using one of the default views, the "frontpage"-view and it forces all users to enter a password upon loading the frontpage now?

Help would be appricated, thank you very much.

#1

Niels Hackius - April 8, 2009 - 17:16
Title:Protected Node and Views?» Protected Node needs Views capabilites
Category:support request» feature request
Priority:critical» normal
Status:active» needs review

I created a handler, so you can exclude protected_nodes from a view. Don't know if this is the correct way, its my first time working w/ views.

You need to do this:

  • Apply patch to protected_node.module - this makes it views aware
  • Put both *.inc files in protected_node directory
AttachmentSize
protected_node_patch.tar.gz 1.33 KB

#2

Niels Hackius - April 9, 2009 - 13:41
Category:feature request» support request
Status:needs review» needs work

I just realized that this does not work due to some preloader views uses.

How to solve this?

#3

Niels Hackius - April 16, 2009 - 13:41
Status:needs work» closed

I solved this with a hack myself. I attached it for reference - not as a solution. You also need the files attached above.

This patch disables the automatic redirect, if only the teaser of the page is loaded. It much rather strips all information from the node, so it can also be listed. If the title is allowed to be shown the title will be shown in a listing.

Maybe someone will solve this some time in the future.

AttachmentSize
hack_protected_node_and_views.patch 4.43 KB
 
 

Drupal is a registered trademark of Dries Buytaert.