10 Posts
yaap
9 years ago
5
Topic

Hi all,

Yesterday I changed from the seb_one to simpelsimon template. Unfortunatly changing the date format of the 'down time calendar'  does not work any more. for example idd like to change the time '2015-02-05 14:30:00' to '2015-02-05'. In the Calendar field. Normally you select 'hide' for 'show time' In seb_one this works perfect, in simpelsimon not. It keeps showing '2015-02-05 14:30:00'

How can I change the time format in simpelsimon?

thanks!

Jaap

Get a VIP membership
9 years ago
4
Level 1

Hello yaap,

normally the render of a calendar field have nothing to see with the SEBLOD template.

To format a date in a content or item view, you can apply the typo date with the parameter "free", ansd then write your format, like "Y-m-d".

You can also try to test with the SEBLOD minima template

Regards.

Lionel

10 Posts
yaap
9 years ago
3
Level 2

Hi Lionel,

Thanks for your quick response :) you are right I should have added the 'typo date' The reason why I did not do this is because I added the 'typo HTML' already. Is it possible to combine 'typo html' and 'typo date'?

tnx

595 Posts
Octopoos - Mehdi
9 years ago
2
Level 3

Hi yaap,

You can not use two typo plugins on the same field.

One way to do that is to create a copy of your calendar field in your "content" or "intro" view. After that, you can apply a "date" typo plugin on the copy and apply the result in the html code like that $cck->getTypo('name_of_copied_field').

The copy of a field is a seblod field which has the same storage.

Regards,
Mehdi.

10 Posts
yaap
9 years ago
1
Level 4

Thanks Mehdi!!!

This works great :)

595 Posts
Octopoos - Mehdi
9 years ago
0
Level 5

Hi yaap,

Your thread is marked as solved.

Regards,
Mehdi.

Get a Book for SEBLOD