By Henri on Monday, 12 December 2016
Posted in General Issues
Replies 1
Likes 0
Views 190
Votes 0
Hello,

On a previous ticket, I had this discussion :

[me] Change the published date : I will create pages from old content (= already published in my previous website) but I would like to keep a trace of the original publication date. The workaround is to add a custom field 'original date of publication' but I would prefer to change directly the displayed publication date.

[Mark] Unfortunately right now it's not possible to alter this.

I made a confusion between creation and published date ...

But I just see the seeting which seems cover my need (see screenshot 1).
Now I can display the old creation date.

The only drawback is that I am obliged to select a dd-mm-yyyy date format.
For my marathon stories, I do not need - and I do not know - the exact date.
The year will be enough : this is the story of 'London Marathon' written for the 2009 edition !

Any way to modify it ?
It is currently not possible to configure this but you could modify the theme files to help you achieve this. All you need to do is to edit the file /components/com_easyblog/themes/wireframe/blogs/entry/default.php and at line 105 locate the codes below,


<?php echo $post->getDisplayDate($this->entryParams->get('post_date_source', 'created'))->format(JText::_('DATE_FORMAT_LC1')); ?>


Replace it with,

[code type="php"]
<?php echo $post->getDisplayDate($this->entryParams->get('post_date_source', 'created'))->format('Y'); ?>
[/cpde]
·
Monday, 12 December 2016 14:17
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post