Skip to content
Snippets Groups Projects

Update README.txt

Open Manoj Raj requested to merge issue/node_expire-3320655:3320655-replace-txt into 7.x-2.x
1 file
+ 16
23
Compare changes
  • Side-by-side
  • Inline
+ 16
23
NODE EXPIRE
===========
# NODE EXPIRE
## INTRODUCTION
This module allows you to set a "timer" into content nodes. When it reaches
zero, you can perform any type of action with the node, such as unpublishing
it or sending an email to the author.
@@ -29,8 +29,7 @@ If using Views module, all data will be exported, allowing you to build
custom lists.
INSTALL
=======
## INSTALL
This module is not (YET at least) compatible with previous versions.
So its only indicated to new sites.
@@ -39,8 +38,7 @@ So its only indicated to new sites.
Shift back is not recommended, because some content type settings can be lost.
USAGE
=====
## USAGE
The first thing you should do is give the proper permissions:
"administer node expire" will allow you to enable the feature on node types
@@ -61,8 +59,7 @@ a configuration section. It is located in "Workflow" area under Rules module
configuration section.
CREDITS
=======
## CREDITS
Daryl Houston <daryl@learnhouston.com> (Original author)
Andrew Langland (D5-dev and D6-dev rewrite)
@@ -70,16 +67,15 @@ Bruno Massa (D6 v2 rewrite)
Nik Alexandrov (D7-dev rewrite)
RULES MODULE EXAMPLE
====================
## RULES MODULE EXAMPLE
For those people that want to use this module quickly, import the code below on
admin/rules/ie/import and it will automatically configure it to unpublish the
content once it expires. Just paste it and have fun.
-------------------------------------------------------------------------------
"Content expired unpublish".
"Content expired unpublish".
```
{ "rules_content_expired_unpublish" : {
"LABEL" : "Content expired unpublish",
"PLUGIN" : "reaction rule",
@@ -90,10 +86,9 @@ content once it expires. Just paste it and have fun.
"DO" : [ { "node_unpublish" : { "node" : [ "node" ] } } ]
}
}
```
RULES MODULE EXTRA EXAMPLES FOR TESTING
=======================================
## RULES MODULE EXTRA EXAMPLES FOR TESTING
Below are some more rules, which are handy for testing. By enabling/disabling
those rules you can publish/unpublish or promote/unpromote content
@@ -102,10 +97,8 @@ Just enable necessary rules, run cron and see the result. It is helpful during
the tests to turn on an option "Allow expire date in the past" in the module
configuration section.
-------------------------------------------------------------------------------
"Content expired publish".
```
{ "rules_content_expired_publish" : {
"LABEL" : "Content expired publish",
"PLUGIN" : "reaction rule",
@@ -116,11 +109,10 @@ configuration section.
"DO" : [ { "node_publish" : { "node" : [ "node" ] } } ]
}
}
```
-------------------------------------------------------------------------------
"Content expired remove from front page".
```
{ "rules_content_expired_remove_from_front_page" : {
"LABEL" : "Content expired remove from front page",
"PLUGIN" : "reaction rule",
@@ -130,10 +122,10 @@ configuration section.
"DO" : [ { "node_unpromote" : { "node" : [ "node" ] } } ]
}
}
```
-------------------------------------------------------------------------------
"Content expired promote to front page".
```
{ "rules_content_expired_promote_to_front_page" : {
"LABEL" : "Content expired promote to front page",
"PLUGIN" : "reaction rule",
@@ -147,3 +139,4 @@ configuration section.
]
}
}
```
Loading