How to change dateformat in pagelists

Permalink
In the standard page_lists the date of child posts are displayed as "date-number / month(short) / year / timestamp"
But I want to only show the date as "day / month" without any year or time of these posts (so not of the page itself);
I can't find a way to change this within a page-list view template.
Does this mean I have to change the controller?

In the view template there is only this simple part:

[code]
<?php if (isset($includeDate) && $includeDate) {
?>
<div class="ccm-block-page-list-date"><?php echo h($date) ?></div>
<?php
} ?>
[code]

I have attached the default controller; now how do I change Page-list dates to only a day/month without any year of start-time or end-time..? I am not a very good PHP programmer so help is much appreciated.

1 Attachment

jirosworld
 
jirosworld replied on at Permalink Reply
jirosworld
Surely someone should know..?
jirosworld replied on at Permalink Best Answer Reply
jirosworld
Thanks for nothing;
in case there is anyone out there still using Concrete5 here is the answer:
add to the pagelist view.php this definition:

$pdate = $page->getCollectionDatePublicObject();
    $datePublic = $dh->date('j F', $pdate->getTimestamp());


Then add to the HTML view that gets spit out this line:

<?php if (isset($includeDate) && $includeDate): ?>
<div class="ccm-block-page-list-date"> <?php echo $datePublic; ?></div>
<?php endif;    ?>
PixelFields replied on at Permalink Reply
PixelFields
This is exactly what I was looking for, thank you so much! Worked perfectly.