We’re with you. JoomShaper is offering a 20% Discount on all plans due to the impact of COVID-19

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

More than a month 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

More than a month ago #Permalink
Hi there,

Please share a screenshot that you want to change exactly.

-Thanks

KE Comm

More than a month 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

More than a month ago #Permalink
Thanks, that's what I was looking for and couldn't find in the file! :)

Toufiq - Staff

More than a month 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.
Be one of the first to reply to this post!

123

Templates

327444

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