Archive problem

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
skywalker826
Posts: 21
Joined: Mon 1. Oct 2012, 09:20

Archive problem

Post by skywalker826 »

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
skywalker826
Posts: 21
Joined: Mon 1. Oct 2012, 09:20

Re: Archive problem

Post by skywalker826 »

anyone ?
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Re: Archive problem

Post by update »

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 ( 8) ) will override this.
Look into http://www.phpwcms-howto.de/wiki/doku.p ... to-archive ( 8) 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.
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Re: Archive problem

Post by flip-flop »

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
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
skywalker826
Posts: 21
Joined: Mon 1. Oct 2012, 09:20

Re: Archive problem

Post by skywalker826 »

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
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Re: Archive problem

Post by flip-flop »

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
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
skywalker826
Posts: 21
Joined: Mon 1. Oct 2012, 09:20

Re: Archive problem

Post by skywalker826 »

Dear Knut,

-> Set up a second archive category ([x] Archive).

How do I do that ? Can provide detail steps ?

Thanks.

Regards,
Sky
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Re: Archive problem

Post by flip-flop »

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
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
skywalker826
Posts: 21
Joined: Mon 1. Oct 2012, 09:20

Re: Archive problem

Post by skywalker826 »

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 ?
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Re: Archive problem

Post by flip-flop »

[x] visible [x] public [x] SSL [x] sitemap [x] archive
You are running a SSL-Site???

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 )
Post Reply