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.

Date Weblog was Updated

March 20, 2008 2:47pm

Subscribe [3]
  • #1 / Mar 20, 2008 2:47pm

    j25

    47 posts

    Is it possible to show when a weblog was last updated?  This is what I am currently using, but not sure if it is showing the date of the last weblog update or only the time a certain post was updated because of the limit=“1”. 

    {exp:weblog:entries weblog="rates" limit="1"}
    {edit_date format="%M %d, %Y"}
    {/exp:weblog:entries}


    Thanks!

  • #2 / Mar 20, 2008 6:01pm

    Arun S.

    792 posts

    Hmm…

    That would give the edit date of the last post made to that weblog.  What you would want to do is sort the listing by edit_date.

    So, try something like this:

    {exp:weblog:entries weblog="rates" limit="1" orderby="edit_date"} 
    {edit_date format="%M %d, %Y"} 
    {/exp:weblog:entries}
  • #3 / Mar 20, 2008 8:15pm

    j25

    47 posts

    Thanks for the reply. 

    I need to have the entries in order by unit number (it is a list of commercial offices for rent), so I already have them ordered.  But, I am wondering if there is some other type of tag than weblog:entries that relates to the blog as a whole, rather than posts?  This would enable the date to be pulled when any of the entries was edited.

  • #4 / Mar 20, 2008 8:27pm

    Derek Jones

    7561 posts

    There is no last_edit_date for the weblogs themselves, but VisualBinary’s tag takes care of that, as using orderby in conjunction with the edit date means that whatever entry has the newest edit date is the entry whose information will form the basis of the edit_date date variable.

  • #5 / Mar 21, 2008 10:40am

    j25

    47 posts

    Thanks Derek!

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

ExpressionEngine News!

#eecms, #events, #releases