[color=red]yyyy.month.day-time[/color]for all news articles. How to do that? Is there a good way to set document alias to
[color=red]yyyy.month.day.time-sometext[/color]for selected article where sometext is some specific text (initial value of document alias, for example)?
// Get the relevant dates
$published = $_POST['pub_date'];
$created = $_POST['createdon'];
$edited = time();
// Set which date value to use
if ($published != '') {
$date = $published;
} elseif ($created != '') {
$date = $created;
} else {
$date = $edited;
}
$published = ''; $created = '';