How to use Drupal rules to adapt content access permissions for nodes that are older than 1 week? -


i have special content type named "example". want show new nodes of type anonymous users of site.

what need: after 1 week node created, content access permissions (content access module installed) changed users particular role able see node.

should triggered on cron or what? or how nodes older 1 week?

could provide instructions on how that? because i'm new rules module , have no ideas.

you should able rules (see this question, not want close), i'd go tiny custom module implementing hook_cron, fetch nodes creation date < (now - 1 week), , modify permissions each of them.

it should more efficient rule approach explained in first link, need loop on nodes on each cron execution. , rules can quite more annoying writing plain php. prefer learning drupal api spending hours clicking in rules interface (rules great, it's hard).

good luck


Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -