Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

$LastEdited.ago not showing properly in loop


Go to End


3 Posts   483 Views

Avatar
Praveen

Community Member, 49 Posts

27 September 2014 at 12:57am

Edited: 27/09/2014 6:00pm

<% control Results %>
<p>Last edited $LastEdited.ago</p>
<% end_control %>

$LastEdited.ago is not showing the elapsed time correctly. Please find the attached screen shot of the search result page sorted by LastEdit ASC.

Attached Files
Avatar
Praveen

Community Member, 49 Posts

1 October 2014 at 8:57pm

Edited: 01/10/2014 8:58pm

Issues is solved. LastEdited was not indexed. After adding LastEdited to searchablefields. After sorting was showing in a proper order.

Avatar
camfindlay

Forum Moderator, 267 Posts

2 October 2014 at 2:06pm

Good to hear this got solved. Can you go and add [solved] to the start of your original forum thread so that it helps others know what is solved in the forum :)

Thanks.