 |
 |
 |
 |
 |
| Author |
Message |
Designer
Joined: 19 Oct 2007 Posts: 11
|
|
expiry date for news? |
|
Is it possible to set the expiry date for news article,
the date when article will be automatically deleted?
|
|
| Mon Oct 22, 2007 6:51 pm |
|
 |
Guest
|
|
|
Please login to hide the ads.
|
|
|
|
 |
Designer
Joined: 19 Oct 2007 Posts: 11
|
|
|
|
Anyone?
|
|
| Thu Oct 25, 2007 7:17 pm |
|
 |
D72

Joined: 22 Feb 2007 Posts: 217 Location: NL |
|
|
|
Well i think it's not possible that an article will be deleted automaticly after a period of time.
I do know that it's possible to setup a template so future articles will be visible as it's not shown default.
After the giving date is reached/expired of a future article, the article is placed automaticly in an "archive".
But that's not really an answer on your question, sorry.
Maybe there's a combination or a hack to change whats in this topic:
click
For creating a real expiring date you have to wait for someone else.
I think it's an interesting feature though.
|
|
| Thu Oct 25, 2007 8:45 pm |
|
 |
Designer
Joined: 19 Oct 2007 Posts: 11
|
|
|
|
Thanks D72,
I have managed to adjust script to make article invisible automatically after certain date, but had problems with categories, because they still show articles regardless of time. So I have to give up ( for now )
Any ideas?
|
|
| Fri Oct 26, 2007 10:01 am |
|
 |
D72

Joined: 22 Feb 2007 Posts: 217 Location: NL |
|
|
|
To order your news other then time you could use your include like this. The include below show your articles ordered by the date.
 |  |
<?php
$sort = array('date', 'DESC');
$schedule = true;
$category = "2";
$number = 5;
$template = "YourTemplate";
include $cutepath.'/show_news.php';
?>
|
Here by category
 |  |
<?php
$sort = array('category', 'DESC');
$schedule = true;
$category = "2";
$number = 5;
$template = "YourTemplate";
include $cutepath.'/show_news.php';
?>
|
Here by title
 |  |
<?php
$sort = array('title', 'DESC');
$schedule = true;
$category = "2";
$number = 5;
$template = "YourTemplate";
include $cutepath.'/show_news.php';
?>
|
and so on...
And change this one in the show.news.php
Click
Otherwise the whole future date thing won't work.
Hope that this one brings you closer to your needs. In understand you want to expire articles automaticly after a certain giving date. But as far as i know it's not possible (yet)
|
|
| Fri Oct 26, 2007 7:00 pm |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|
 |
 |
 |
|