Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • FarmFreshCode 225 posts 422 karma points
    Jun 13, 2011 @ 19:45
    FarmFreshCode
    0

    Suggestion: Options to Shorten Display Information

    Great Package.

    I was wondering if it was possible to add some additional features that would allow me to shorten the content that is displayed.

    I would really appreciate being able to choose to use abbreviated names for the days. If there was a check box to toggle back and forth that would be great. Or even just have this option when you create a new dataType.

    Also I would like to dislpay am/pm with the time so a toggle between military and standard time would be great. If a user selected that check box then the dropdown list of AM/PM would appear.

    Would either of these be possible?

     

  • Lennart Stoop 304 posts 842 karma points
    Jun 20, 2011 @ 00:29
    Lennart Stoop
    0

    Hey FarmFresh,

    I think both features you propose make sense and I will try to have them included in a next release (ETA: I'm guessing about a week ;-)

    Not sure yet about how to implement the standard time exactly, because I don't want to blow up the size of the XML data.. Also not sure to which degree I'll need to focus on backwards compatibility.. but I'll definitely think it through, thanks for your suggestions, I'll keep you posted!

    Grtzz

     

  • Lennart Stoop 304 posts 842 karma points
    Jun 23, 2011 @ 17:15
    Lennart Stoop
    0

    I have just uploaded a new version which includes the features you requested, here's how I've implemented them:

    1) Names of weekdays can be abbreviated to a specific number of characters through a data editor settings (this functionality is limited to the data editor control - if you require to abbreviate weekdays in the front-end, you may have to write an extra line of XSLT or Razor)

    2) 12 hour clock (AM/PM) is supported to another data editor setting. By default the 24 hour clock is used, so you will have to enable it after installing the data type. The setting only affects the UI, data is still saved as 24 hour clock timestamp. If you want to have the 12 hour clock shown in the front-end, I have added a helper method which can convert to 12 hour clock format (a sample of this is included in the package: Example 12-hour clock XSLT or Razor)

    I might be able to improve the UI if needed, please feel free to add your suggestions :-)

Please Sign in or register to post replies

Write your reply to:

Draft