Support Forums

Support Offline : Mon - Fri / 10am - 6pm (GMT +6)

Your Time: Our Time:

Article addon shows 'published date' instead of 'created date'

Featured Lock Resolved Issue
http://m1.ke-server.de#news

Spectrum template.

The article addon on the right shows the published date, although the addon promises to display the created date. I want to use this for events, which means I need to be able to show dates in the future.

6 Answers

Toufiq - Staff

3 weeks ago #Permalink
Hi there,

Thanks for your reply. Please follow my instruction.

Go to the file location
templates/shaper_spectrum/sppagebuilder/addons/articles/site.php

Find out the code

$output .= '<span class="sppb-meta-date" itemprop="dateCreated">' . JHtml::_('date', $item->publish_up, 'd') . '</span>';
$output .= '<span class="sppb-meta-month" itemprop="dateCreated">' . JHtml::_('date', $item->publish_up, 'M') . '</span>';


And replace with this code

$output .= '<span class="sppb-meta-date" itemprop="dateCreated">' . JHtml::_('date', $item->created, 'd') . '</span>';
$output .= '<span class="sppb-meta-month" itemprop="dateCreated">' . JHtml::_('date', $item->created, 'M') . '</span>';


-Thanks

Toufiq - Staff

3 weeks ago #Permalink
Hi there,

Please share a screenshot that you want to change exactly.

-Thanks

KE Comm

3 weeks ago #Permalink
The date shown in the front end is the published date of the article, not the created date!

I want it to show the created date. If you use the published date , you cannot use dates in the future!

Attachments (2)

  • 2019-04-25 08_36_47-Mehrer Compression GmbH - Firefox Developer Edition.png
    2019-04-25 08_36_47-Mehrer Compression GmbH - Firefox Developer Edition.png 1.8 KB
  • 2019-04-25 08_38_59-SP Page Builder - Edit Page - Mehrer Compression - Administration - Firefox Deve.png
    2019-04-25 08_38_59-SP Page Builder - Edit Page - Mehrer Compression - Administration - Firefox Deve.png 20.9 KB

KE Comm

3 weeks ago #Permalink
Thanks, that's what I was looking for and couldn't find in the file! :)

Toufiq - Staff

3 weeks ago #Permalink

Thanks, that's what I was looking for and couldn't find in the file! :)


Hi there, You are most welcome & Thanks


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Leaderboard (30 days)

Sifat

Sifat

Total Accepted Answers: 122
Paul Frankowski

Paul Frankowski

Total Accepted Answers: 115
Toufiq

Toufiq

Total Accepted Answers: 62
Pavel

Pavel

Total Accepted Answers: 4
Peter Atkin

Peter Atkin

Total Accepted Answers: 2

100+

Templates

200,000+

Community Users

Newsletter

Don’t miss any updates of our new templates and extensions and all the astonishing offers we bring for you.
We never spam

Joomla! ® name is used under a limited license from Open Source Matters in the United States and other countries. JoomShaper.com is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.

Connect Us