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

15 Nov, 2023 06:45 PM
21 Jun, 2023 05:22 PM
21 Jun, 2023 12:28 PM
13 Jun, 2023 04:12 AM
17 May, 2023 10:00 AM

 

08 Mar, 2023 09:48 AM
15 Jan, 2023 04:45 PM
19 Sep, 2022 09:56 PM
04 Jul, 2022 08:54 PM
23 Jun, 2022 10:47 AM
19 May, 2022 03:35 PM