Archives for pages is a way to store and access pages by their publication period (usually month and year). It displays a list of available months and leads a visitor to pages published during that month.
#1. Features
-
Select categories where to grab pages.
-
Use full category permissions, options and custom template for archives if necessary.
-
SE-friendly parameters.
-
Can display months menu on index, page and page list.
-
Displays items count.
-
Cache option.
#2. Installation
-
Download the plugin and extract "pagearchive" to your plugins directory.
-
Go to Administration / Extensions / Page Archive and install the plugin.
-
Go to Administration / Structure / Pages and create a "fake" category for page archives.
-
Go to Administration / Extensions / Page Archive / Configuration and put your category code there. By default it is "archives".
-
Put {PHP|pagearchive} tag to your index.tpl or any other tpl where you want this widget to appear.
#3. Advanced usage
-
To customize archives category title, description, default sorting order and template name, just edit these properties of the "fake" category you created.
-
By default you can customize archives category output in "page.your_fake_category_name.tpl".
-
To customize the markup of the months menu, copy "plugins/pagearchive/tpl/pagearchive.tpl" to your theme's "plugins" folder and edit it.
-
A rule for URLEditor custom preset looks like this:
page c=archives&year=*&month=* {cot_url_catpath()}/{$year}/{$month}
(where archives is your fake category name)
Поблагодарили: 217 раз
That was fast!)
Поблагодарили: 87 раз
Почему то не сработало page c=archives&year=*&month=* {cot_url_catpath()}/{$year}/{$month}
Обновил урлтранс и кеш чистил) в хтацесс ничего не писал