2

I have a view that gives me a list of nodes titles and when it was last updated.

I want to display the changed date with only time if it is today, otherwise I just want the date, e.g. 17.00 or 15 may 2016.

If I look at the result in views_pre_render it has a node_changed timestamp. It uses the date format set in the view. How do I change the format just for the first result?

0

1 Answer 1

1

You can create a template file and in that you can have and the template files you can get that in

enter image description here

if($view->row_index == 1){
   // do your stuff
}

and put your own condition

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.