output the value in different formats?

Adam's Avatar

Adam

28 Jan, 2014 03:18 AM

Any chance of supporting something like this in future?

{exp:rangee:numbers start='{current_time format="%Y"}' end='{current_time format="%Y"} + 20'} {value} {/exp:rangee:numbers}

Produces:
2013
2014
...etc...

i.e. output the value in different formats?

  1. 1 Posted by Adam on 28 Jan, 2014 03:20 AM

    Adam's Avatar

    That didn't show up properly - let's try again:

    Any chance of supporting something like this in future?

    {exp:rangee:numbers start='{current_time format="%Y"}' end='{current_time format="%Y"} + 20'} <option value='{value format="%y"}'>{value}</option> {/exp:rangee:numbers}

    Produces:
    <option value='13'>2013</option> <option value='14'>2014</option> ...etc...

    i.e. output the value in different formats?

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

11 May, 2020 02:18 PM
16 Apr, 2020 06:39 AM
04 Apr, 2020 06:12 PM
30 Mar, 2020 07:50 PM
24 Mar, 2020 05:10 PM