How to manually archive an article?

Is Coranto not working properly for you? Here's where to ask for support help; for best results, follow these steps:
  • - Check your core/addon documentation for possible solutions
  • - Search these forums for similar problems that have already been solved
  • - If you're still stumped, check out THIS TOPIC, and post your question in this forum!!

Moderators: Spunkmeyer, Dale Ray, SrNupsen, Bluetooth, Jackanape

How to manually archive an article?

Postby clockwork-design » Thu Jul 11, 2013 10:41 am


I have a site with news articles that my client would like to manually archive. I have used categories, one for the 'live' articles, the other for 'archived' (not using Coranto's archive facility). I have specified 2 directories, one for 'live' articles, the other for 'archived' articles. 'Live articles' use one .tmpl file, 'archived' use a separate .tmpl file.

I am using a Maginot Static profile for the articles.

When I Modify News and change the category from 'live' to 'archived' the article is copied to the 'archived' directory but remains in the 'live' directory. Is there anyway the article can be moved so that it no longer shows in the 'live' article directory?

Thanks in advance.
User avatar
Posts: 5
Joined: Fri Feb 22, 2013 1:09 pm

Re: How to manually archive an article?

Postby SrNupsen » Tue Aug 06, 2013 6:55 pm

Maginot builds static files on the server. And Coranto by nature doesn't delete files once they're built. So if you change the the build location (path) by changing one of the parameters used for constructing this path, what will happen is that the next time you build news a new file will be built in the new location (and the old one will remain untouched, as there will be no profile building to that location anymore).

Quick and dirty solution: 1) Backup in case you mess up 2) Delete all files in he live directory 3) Rebuild.

I can see you don't want to make your client do that every time, so here's a better solution:

Create a separate profile for displaying the items in the live directory (unless you allready have it working this way) Once you change the category of an item from live to archived, it will no longer show up in this list - so even if the file will still be present in the live directory there will be no pointers to it.

If you want to physically wipe the file, I believe you would have to use the first solution.
Coranto is free software. I am available for custom work or troubleshooting. - transkripsjon, webdesign, nettsider, tekstbyrå - satire, politikk, kultur, sport, nettavis
Posts: 2229
Joined: Tue Jan 09, 2007 6:46 pm
Location: Nesodden, outside Oslo, Norway

Return to Troubleshooting

Who is online

Users browsing this forum: No registered users and 3 guests