Jump to:

5453 Posts in 1674 Topics by 1198 members

Customising the CMS

SilverStripe Forums » Customising the CMS » Format fields in CMS popup when they already contain info

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

Page: 1
Go to End
Author Topic: 744 Views
  • Punch Rockgroin
    Avatar
    Community Member
    8 Posts

    Format fields in CMS popup when they already contain info Link to this post

    Hi,

    I'm trying to set up the CMS popup, specifically for a TimeField, so that the data that's returned when someone clicks on a row that already contains an entry, is formatted correctly.

    The example is that I've set up two time fields to accept just a start and end time - 3:30pm in the start and 4:30pm in the end for example. Everything works great for what I'm doing - I have the time formatted on the front end correctly and in the complextablefield to display just the time, but when I click on the popup it gives me the entire date - 2010-03-09 15:30 and 2010-03-09 16:30 respectively.

    Is there any way to format that returned value? The $timeformat = "g:ia" as described in http://doc.silverstripe.org/doku.php?id=timefield isn't working for me.

    Thanks!

    744 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.