Question

Photo of Michael Garrison

0

Displaying "Created Date Time" on profile

We have just imported our final data dump into ROCK and are getting ready to launch it as our full-time CMS- yippee!

In making sure groups, etc, are hooked up correctly and ready to use, we would find it helpful to be able to view the information imported into the "Created Date Time" column on the [People] table...but I don't see a corresponding Person Attribute to stick in a page block anywhere. And creating a liquid badge to show (on a whim) Person.CreatedDateTime didn't work.

Has anyone found any way to show this?

  • Michael Garrison

    http://www.rockrms.com/Rock/Ask/Using/Questions/279 VERY nearly has put me on the right path...but now I'm having a caching issue!
    I've created a new page block in the "Individual Detail" zone of "All Pages using "PersonDetail Layout" called "Created date" of type "HTML". I set the content to be:


    Record created on: {{ Context.Person.CreatedDateTime | Date:'M/d/yyyy' }}


    And just like that, it works!


    ...except ...


    When I go to another person, the first person's Created Date is still showing, even if I clear my browser cache and refresh. I think Rock is caching that information. It only refreshes and shows the current person's created date if I edit the block and save it again.


    Is there something I can wrap that tag in to prevent the caching and applying from person to person? It's calling the Context.* property, so I would have figured that wouldn't be cached...

  • Photo of Rock RMS

    0

    By default, the HTML block caches it's output. Have you verified, that the "Cache Duration" setting on that block is set to "0".