By Hideto on Tuesday, 29 August 2017
Posted in Technical Issues
Replies 8
Likes 0
Views 613
Votes 0
Hello,

I want to show "Published Date" for all layouts.
But on GRID Layout, List of Authors, and Calendar module, "Created Date" is shown instead.

I noticed this issue when I changed the publish date of existing posts.


On other layouts such as Category layout, Entry layout, Tag layout, Single Author layout, there is no problem. "Published Date" is shown properly.

(Settings > Views > Each Layout > Post Date Source is set to "Publishing Date")


How can I fix this issue?


Thanks,
Rikao
Hi there,

Unfortunately, for Calendar Module and Grid menu, there are no settings to set on which types of date to be use currently. And for authors listing layout, it seems that i does not follows what have set on the view's settings. I have created a ticket internally and this fixes will be included on our next release version.

By the way, her i attached together hot fixes, where it will use published date for your authors listings page. Please apply attached file at this path .../components/com_easyblog/themes/wireframe/authors/default.php and see how it goes
·
Tuesday, 29 August 2017 11:58
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Abdul,

Thanks for the file.
It fixed the issue for Authors listing page.

For grid and calendar, I'll wait for the next update.
Thank you,

Rikao
·
Tuesday, 29 August 2017 13:35
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

For grid and calendar, I'll wait for the next update.

Sorry for not explaining it clearly. I have created a ticket internally only for Authors listing and not for grid and calendar module. As those two dont have those setting to be configured currently and for authors listing, there are settings on it, and it should followed have set on the settings itself.

it would be best if you can submit a feature request regarding this issues by creating a new ticket on the forums and set it to "Feature Request", so everyone else could vote for it, the more people request on this, and we will priority consider it.

Thanks for your understanding
·
Tuesday, 29 August 2017 13:48
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for your reply.
For grid and calendar, actually, I thought it's a kind of bug, because I don't see any reason to choose "Created Date" instead of "Published Date" for most people.

But I understand that the fix will not be included in the next update.
In that case, will you please advise me how to customize?

I guess I need to modify the file below for Grid layout. How should I change?
/components/com_easyblog/themes/wireframe/blogs/grid/default.php

<meta itemprop="datePublished" content="<?php echo $post->getDisplayDate($this->params->get('post_date_source', 'created'))->format(JText::_('DATE_FORMAT_LC4'));?>">


Which file for calendar?

Thanks for your help,
Rikao
·
Tuesday, 29 August 2017 14:21
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

For grid, you can apply codes below and see how it goes.
[gist type="php"]
<meta itemprop="datePublished" content="<?php echo $post->getDisplayDate($this->params->get('blogger_post_date_source', 'publish_up'))->format(JText::_('DATE_FORMAT_LC4'));?>">
[/gist]

Which file for calendar?

For calendar, it is not possible currently, as it is required for you to do modifications on its cores files. Thanks for your understanding
·
Tuesday, 29 August 2017 15:39
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Abdul,

Thank you for the code!

In my previous post, I picked up the wrong line.
I was able to show "Published date" by replacing the line 154

<?php echo $post->getDisplayDate()->format(JText::_('DATE_FORMAT_LC1')); ?>

with

<?php echo $post->getDisplayDate($this->params->get('blogger_post_date_source', 'publish_up'))->format(JText::_('DATE_FORMAT_LC1')); ?>



I understand about the calendar.

Thanks,
Rikao
·
Tuesday, 29 August 2017 20:38
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for updating Rikao, glad that your issues are resolved now.
·
Tuesday, 29 August 2017 22:07
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post