0 votes
in Rock by TinaStephens (8.6k points)
edited

On this page https://www.sunvalleycc.com/read/articles/5-things-ive-learned-about-leading-a-small-group articles from this content channel https://rock.sv.cc/admin/cms/content-channels/items/2512 are showing up as soon as they are added and not according to the active date. How do I fix this? The example article is "How should I support my Local Community?"

1 Answer

0 votes
by DavidTurner (14.9k points)
edited
 
Best answer

I'm assuming you mean the associated items listed at the bottom of the page? If so, the HTML block that is being used to query those content channel items did not have check for start/expire date time. I added a check for that:

enter image description here

That said, the item you referenced ("How should I support my Local Community") has an active date of 1/20/2022 which was almost a year ago so it still displays.

If using entity command, you can add StartDateTime to where clause:
enter image description here

by TinaStephens (8.6k points)
That's right! It's now 2023 a new year. :)
by TinaStephens (8.6k points)
@DavidTurner I'm still having this issues with the two blocks at the bottom of this page sunvalleycc.com/read in the Latest block. It's a little different than the above example. I see a sort by date in the lava but the articles are showing up before the active date. app.asana.com/0/inbox/1202553718835412 I post dated the first article when testing and it still showed up.
by DavidTurner (14.9k points)
@TinaStephens , I updated the EntityCommand's Where clause on those two blocks to exclude items who's start date is greater than today.
Welcome! Here you can ask questions and receive answers (hopefully) from other members of our team.
...