![]() A user who does not have the permission to set the expiration time, will be presented with an error saying that the post can't be created after an expiration date. OR, a site where the user might need explicit permissions to set their own node expiration. Node Expire is designed for a site where there is only one (or a handful) of administrative persons and they all have the ability to set an expiration for a node. I recommend setting up a sandbox to play with rules before implementing it on a production site. Rules isn't exactly for the faint-at-heart and will take some trial and error to get it right. ![]() Keep in mind though that "powerful = complicated". Use Rules to unpublish a node if you have a lot of users and you don't want them to set their own expirations. These are done at the system level where the user doesn't even know it's happening nor can they make any changes to how it operates. Then I setup two rule triggers, one that says "When content is created, schedule the unpublish rule set" and another that says "When content is unpublished, then published, schedule the rule set". I first setup a rule set that would unpublish a content type (post). Rules is a very powerful module that allows certain "Actions" to happen on a Drupal site, after certain "Conditions" are met. So, what exactly is the difference between the Rules and Node Expire Modules? I didn't want them to mess with the expiration at all. Thats when I came across the Node Expire module.Īfter some extensive playing with both modules, I finally decided to go with the rules module because it will allow a node to transparently be unpublished without any say-so or input from the user. ![]() Not knowing the power of the Rules module, I went in search of a module that would expire a node after a set time that I specified. I'm guessing there are so many posts being put out that most people only look at the first few days.Īnywho, I wanted the ability on the site, for a mass number of users to create a post and have the post / node automatically expire after 45 days. The well known has a similar feature where a post would expire after 45 days but they recently changed it to 30. One of the features I wanted on the site, was the ability to transparently expire a node after x days (45 to be exact). I recently created a classified website (Jan 2009) that is dedicated to used asphalt equipment.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |