Archive problem
-
- Posts: 21
- Joined: Mon 1. Oct 2012, 09:20
Archive problem
Hi,
Due to lack of good documentation, I found it very confusing of archive option with phpwcms.
1. In admin -> Site Structure, there is "archive" checkbox, what should happen if I check this option ?
2. In article, I can have "available after end date (archive) ", let say if end date is already passed, what should be happen ? will it move to archive automatically ?
Does No.1 will overwrite No. 2 ?
The important is how can I display the archive documents/articles ?
I create an article Called " View Archives", with content-part html, and put in the replacement tag:
{ARTICLE_MENU_ARCHIVE:40,0,0} , as I want to archive article category 40, based on the explanation in
http://www.phpwcms-howto.de/wiki/doku.p ... hive-count,
and save the rt_article_menu_archive.php into location : template/inc_script/frontend_render/
But it doesn't display anything. What am I missing here ???
Regards,
Sky
Due to lack of good documentation, I found it very confusing of archive option with phpwcms.
1. In admin -> Site Structure, there is "archive" checkbox, what should happen if I check this option ?
2. In article, I can have "available after end date (archive) ", let say if end date is already passed, what should be happen ? will it move to archive automatically ?
Does No.1 will overwrite No. 2 ?
The important is how can I display the archive documents/articles ?
I create an article Called " View Archives", with content-part html, and put in the replacement tag:
{ARTICLE_MENU_ARCHIVE:40,0,0} , as I want to archive article category 40, based on the explanation in
http://www.phpwcms-howto.de/wiki/doku.p ... hive-count,
and save the rt_article_menu_archive.php into location : template/inc_script/frontend_render/
But it doesn't display anything. What am I missing here ???
Regards,
Sky
Re: Archive problem
You can check mark a structure level as "archive". This does mean your articles will be still visible after enddate if you call them by their correct name (should be of some importance for search engines). Bute they are invisible for CP "article menu" and others.
The mentioned RT ( ) will override this.
Look into http://www.phpwcms-howto.de/wiki/doku.p ... to-archive ( too...)
The mentioned RT ( ) will override this.
Look into http://www.phpwcms-howto.de/wiki/doku.p ... to-archive ( too...)
It's mostly all about maintaining two or three customer's sites Still supporter for the band Mykket Morton. Visit Mykket Morton on FB. Listen Mykket Morton and live videos on youtube.
Now building a venue for young artists to get wet on stage, rehearsal rooms, a studio, a guitar shop - yes I'm going to build some guitars.
Now building a venue for young artists to get wet on stage, rehearsal rooms, a studio, a guitar shop - yes I'm going to build some guitars.
Re: Archive problem
Supplement:
An article will disappear from the frontend when the expiration date is reached.
But if you have the category switched to [x] Archive and the article to [x](available after end date (archive)) then this article is still displayed in this category.
Knut
An article will disappear from the frontend when the expiration date is reached.
But if you have the category switched to [x] Archive and the article to [x](available after end date (archive)) then this article is still displayed in this category.
Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
-
- Posts: 21
- Joined: Mon 1. Oct 2012, 09:20
Re: Archive problem
Thanks.
However, how do I display list of article / category that already marked archive , automatically ? So next time, when another article/category is marked archive, it will be displayed in that list ?
Do I use any special replacement tag for archive to display all the archive stuff ?
Regards,
Sky
However, how do I display list of article / category that already marked archive , automatically ? So next time, when another article/category is marked archive, it will be displayed in that list ?
Do I use any special replacement tag for archive to display all the archive stuff ?
Regards,
Sky
Re: Archive problem
There is no automatic for your desired behavior.
I think you are talking about the frontend.
A very simple way:
- Set up a second archive category ([x] Archive).
- And use the RT "Article move into archive".
Knut
I think you are talking about the frontend.
A very simple way:
- Set up a second archive category ([x] Archive).
- And use the RT "Article move into archive".
Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
-
- Posts: 21
- Joined: Mon 1. Oct 2012, 09:20
Re: Archive problem
Dear Knut,
-> Set up a second archive category ([x] Archive).
How do I do that ? Can provide detail steps ?
Thanks.
Regards,
Sky
-> Set up a second archive category ([x] Archive).
How do I do that ? Can provide detail steps ?
Thanks.
Regards,
Sky
Re: Archive problem
1. Create a new category where you like.
2. Switch this category to [x] Archive.
3. Use the RT "Article move into archive". The expired articles are automatically moved from the old category to the new category when a user in FE accesses the category that includes expired articles.
4. You can show the expired articles in this new category in FE and BE.
If all expired articles from all the categories to be collected in a particular category , the php snippet must be adapted.
Knut
2. Switch this category to [x] Archive.
3. Use the RT "Article move into archive". The expired articles are automatically moved from the old category to the new category when a user in FE accesses the category that includes expired articles.
4. You can show the expired articles in this new category in FE and BE.
If all expired articles from all the categories to be collected in a particular category , the php snippet must be adapted.
Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
-
- Posts: 21
- Joined: Mon 1. Oct 2012, 09:20
Re: Archive problem
Ok, I created new site structure called "View Archive", and I marked following:
[x] visible [x] public [x] SSL [x] sitemap [x] archive
I created rt_article_move_to_archive.php, and upload to Folder: template/inc_script/frontend_render.
so what's next ?
[x] visible [x] public [x] SSL [x] sitemap [x] archive
I created rt_article_move_to_archive.php, and upload to Folder: template/inc_script/frontend_render.
so what's next ?
Re: Archive problem
You are running a SSL-Site???[x] visible [x] public [x] SSL [x] sitemap [x] archive
Please read the description text for the php-snippet again.
This script is working for one article list in one category and one archive category.
The ID of the source category (where the article list is) please register in $my_article_cat . The Target- or archive category (where the articles at expiration to be kept) please register in $my_archive_cat .
.......
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )