I am setting up a subscription site where there will be attachments to each node that are time sensitive...within a couple of days, the info in the attachments is more or less useless.
what would be the best way to prevent non-members gaining access to those attachments for a few days.
I realise I could make a tpl file and wrap the file attachments div in some sort of conditional php based on date/node creation time. Is there a neater way?
Regards
Neil
neil@esl-lounge.com wrote:
I am setting up a subscription site where there will be attachments to each node that are time sensitive...within a couple of days, the info in the attachments is more or less useless.
what would be the best way to prevent non-members gaining access to those attachments for a few days.
I realise I could make a tpl file and wrap the file attachments div in some sort of conditional php based on date/node creation time. Is there a neater way?
Maybe the Node Access module will help you?
Unfortunately, that module only seems to deal with the access to view, edit, delete tabs according to roles, permissions, etc.
----- Original Message ----- From: "Earnie Boyd" earnie@users.sourceforge.net To: support@drupal.org Sent: Wednesday, April 14, 2010 11:26 PM Subject: Re: [support] protecting time sensitive content for X days
neil@esl-lounge.com wrote:
I am setting up a subscription site where there will be attachments to each node that are time sensitive...within a couple of days, the info in the attachments is more or less useless.
what would be the best way to prevent non-members gaining access to those attachments for a few days.
I realise I could make a tpl file and wrap the file attachments div in some sort of conditional php based on date/node creation time. Is there a neater way?
Maybe the Node Access module will help you?
-- Earnie -- http://progw.com
-- http://www.for-my-kids.com
[ Drupal support list | http://lists.drupal.org/ ]