How to us it?

1. Installation

The package installation occurs as a normal concrete5 add-on installation. You can purchase the package directly from your dashboard or purchase it on the marketplace and upload it to the packages folder via FTP, and then install the package from the dashboard installation page.

2. Using it

To set page publish and expiration time go to page edit properties:

Then you see something similar to this, click custom attributes:

And scroll down to see the new attribute, click that to add it to page attributes:

That will then come up like this:

In this form you can select both publish and expire date or only one of them. And after "save" or "publish changes" if you are in edit mode, changes will take effect. 

3. Finding hidden page

When page is hidden (or other word expired) it will not be visible in sitemap or any other page listing. To change that go to dashboard sitemap and open options by clicking the right corner 'options'. Then you will see checkbox 'Show System Pages' and click that. After that you will see pages which are hidden.

 

4. Enabling hidden page after uninstalling the package

The method this package uses is make the page deactive. There is no activate button in the dashboard but it will be triggered to active when you move the page. By moving the page under the page where the page already is the behavior is like just enable the page.

Note! When the package is installed and an expire is set to page the movement wont't enable the page because it will be hidden right away.

 

Note

By default when page is set to visible or unvisible cache will be cleared. If you don't want to use this behavior you can set code like below to your site.php to disable cache clearing.

define('CODAONE_PAGE_TIMER_CLEAR_CACHE', false);