Getting Started
Ответ
Installation
Follow the normal Joomla! installation procedure. The installation package is compatible with Joomla! 3.x. There is also a legacy version available universally compatible with both Joomla! 1.5 and Joomla! 1.6/1.7/2.5.
Usage
With On Time, you use {ontime:interval}{/ontime} tags to hide the parts of your article unless the current time corresponds to your schedulled time interval.
The interval parameter can be one of the following:
- 'starttime'—the selected part of the page is shown on the selected day and time. E.g., {ontime:'2015-12-02'}This passage is available on December 02, 2015.{/ontime}
- 'starttime'-'endtime'—the selected part of the page is shown on the starttime and hidden on the endtime. E.g., {ontime:'2015-12-02'-'2016-01-22'}This passage is availabe December 02, 2015 thru January 22, 2016.{/ontime}
- -'endtime'—the selected part of the page is hidden on the endtime. E.g., {ontime:-'2016-01-22'}This passage is availabe until January 22, 2016.{/ontime}
Note that the starttime and the endtime should be MySQL-formatted datetime values delimited by single quotation marks.
Добавить комментарий