Is there any way to display the date the page was published in

Permalink Browser Info Environment
I'm liking grand gallery but I really need a way to show the page date in each masonry card, along with the title and description. I can get the first two but I don't see any way to include page publication time to it. Is there some way to add this manually? It's pretty important to have dates on each of the card for what I want to do. I really hope there's some reasonable way to do it. I'm not skilled enough to bust into the block and edit it to create this feature.

Type: Ticket
Status: Archived
Kibbles
View Replies:
Parasek replied on at Permalink Reply
Parasek
1. Copy content of file:

packages\grand_gallery\blocks\grand_gallery\view.php

into (create folders and files if they don't exist):

application\blocks\grand_gallery\templates\masonry_cards_custom.php

2. In new template, replace lines 158-160:

<?php if ($image['view_description']): ?>
<div class="gg-item-card-text-description"><?php echo nl2br(h($image['view_description'])); ?></div>
<?php endif; ?>

with (only one line):

<div class="gg-item-card-text-description"><div style="margin-bottom: 10px;"><?php echo h(date('d.m.Y H:i', strtotime($image['pageCreatedTime']))); ?></div><?php echo nl2br(h($image['view_description'])); ?></div>

Checkhttps://www.php.net/manual/en/function.date.php... to see how to display date in different format.

3. Go back to your browser and change block template to "Masonry Cards Custom".

4. Edit your block, in "Settings" tab select "masonry_cards" for "Basic Template (only for Custom Templates)".
ConcreteCMS replied on at Permalink Reply
ConcreteCMS
Attention: Since there has been no activity on this issue for two weeks, this issue has been automatically archived.

To re-open this issue, reply to this message.

concrete5 Environment Information

# concrete5 Version
Core Version - 8.5.2
Version Installed - 8.5.2
Database Version - 20190925072210

Browser User-Agent String

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.