ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

edit date variable IF the entry was edited

August 29, 2012 6:15pm

Subscribe [3]
  • #1 / Aug 29, 2012 6:15pm

    Fedor

    41 posts

    Hello,

    i want to use this variable

    {edit_date format="%Y %m %d"}

    inside an if

    for example:

    {if entry was edited}
    {edit_date format="%Y %m %d"}
    {/if}

    I hope you can understand my question, even my english is not so good

    Thanks

     

  • #2 / Aug 30, 2012 7:03am

    Steven Grant

    894 posts

    how about

    {if edit_date != ""} {edit_date format="%Y %m %d"}{/if}
  • #3 / Aug 30, 2012 7:31am

    Fedor

    41 posts

    with that the edit_date always show even if is equal to the entry_date

    i would like to have something like this

    {if edit_date !="{entry_date}”}
    {edit_date format="%Y %m %d"}
    {/if}

    is it correct?

    thanks

  • #4 / Aug 30, 2012 7:33am

    Steven Grant

    894 posts

    {if edit_date != entry_date}
    {edit_date format=ā€%Y %m %dā€}
    {/if}
  • #5 / Aug 30, 2012 7:56am

    Fedor

    41 posts

    Thanks Steven 😊

  • #6 / Aug 30, 2012 4:52pm

    Shane Eckert

    7174 posts

    Hey Fedor,

    I am glad to see that Dan was able to help you.

    If you need anything else, please just let me know by opening a new thread.


    Cheers,

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases