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.

If today?

August 23, 2012 5:33am

Subscribe [2]
  • #1 / Aug 23, 2012 5:33am

    leeaston

    634 posts

    Hi guy’s, what tags would I use to do this inside exp:comments

    if today
    -do this
    if:else
    -do this

    Cheers
    Lee

  • #2 / Aug 23, 2012 5:44am

    leeaston

    634 posts

    Sorted: {if '{comment_date format="%Y-%m-%d"}’ == ‘{current_time format="%Y-%m-%d"}’}

  • #3 / Aug 23, 2012 12:19pm

    Kurt Deutscher

    827 posts

    I think you might be able to shorten it to this if you want:

    {if ‘{comment_date}’ == ‘{current_time}’}

    I believe that the formatting is just for display purposes, so you probably don’t need it.

  • #4 / Aug 23, 2012 1:18pm

    Shane Eckert

    7174 posts

    Hey all,

    Nice work!! Love this community.

    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