Date and time published not showing

Permalink Browser Info Environment
Hi!

I installed Easy News through the Dashboard. I have added a news item but it won´t show the date stamp. E.g "Posted by admin on January 10, 2011".

Any ideas? Is there some hidden preferences I haven´t found?

Type: Discussion
Status: New
shiki
View Replies:
hanicker replied on at Permalink Reply
hanicker
Hi, sorry for the really late reply. That information is provided thanks to the block easy news page list. So it not, by default, showed inside the news page, if not in the news list block.
One solution is to create a page type that also embed this content:
<div class="publishdate"><?php echo strftime("%F %j, %Y", strtotime($cobj->getCollectionDatePublic())); ?></div>

You can copy remaining part from default, fullpage or other custom pages of your theme, and call it news.php
Hope it helps, don't worry to ask for a better explanation.
shiki replied on at Permalink Reply
shiki
Thanks for the reply!

I duplicated one of the templatefiles and added the code, but where exactly do I put the file news.php?
hanicker replied on at Permalink Reply
hanicker
You have to put news.php inside the theme folder and then following instructions insidehttp://www.concrete5.org/documentation/developers/pages/themes... to activate the new page type
geek2009 replied on at Permalink Reply
geek2009
I would like to do the same thing as shiki, but am having some problems. I would just like everyone to know off the bat that I am a complete noob to Concrete5. I would like for the date to show on my home page (using the soul mate theme). Where do I put this code within the home.php file?
hanicker replied on at Permalink Reply
hanicker
Hi, I'm sorry. I have some problem to understand you request. If it's referred to easy news, the best way to provide date of news is to use easy news block.

If you want to show the current date, you can add a php block containing
echo date("F j, Y");

seehttp://php.net/manual/en/function.date.php... for formatting the output
geek2009 replied on at Permalink Reply 1 Attachment
geek2009
I have the easynews block setup on my homepage to show 2 entry's and then have the page numbers under it to see the older entry's. On my home page, I would like for it to have the date posted included. Attached is a word file with what I am looking for.
hanicker replied on at Permalink Reply 1 Attachment
hanicker
Ah, ok.
Solution was already posted here:
http://www.concrete5.org/marketplace/addons/easy-news/support/publi...
Put the file attached inside (after renaiming to date.php)
packages\easy_news\blocks\easynews_list\templates

edit page containing list block, click on that block, select custom template and than date
geek2009 replied on at Permalink Reply
geek2009
Thank You!! I really appreciate it!

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

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

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.