Forum Discussion
Event Web Part Current Event
Hello PASinATX
the standard web part does not contains this view: https://support.microsoft.com/en-us/office/use-the-events-web-part-5fe4da93-5fa9-4695-b1ee-b0ae4c981909
Alternative solutions are:
- Use an custom list for your events. You need to use view formatting, to format your list like a events web part but you can filter "today's" events
- Use an highlighted content web part to filter today's events from the default events list (i'm not happy with the visualisation of the events)
- Use PnP Modern Search web parts to filter today's events from the default events list and customize the visualization of your events search results https://microsoft-search.github.io/pnp-modern-search/
...or evaluate a third party solution with all your requirements...
Hope this helps.
Regards, Dave
Thanks David.
I'll see if I can figure out your alternative solutions.
I know how to use the Highlighted Content web part but I'll have to learn how to write the KQL code to pull back Today or Now or Current.
p
- DaveMehr365Jun 20, 2022MVP
Hello PASinATX
you can do it like this:
contenttype:Event LastModifiedTime:Today
Here are more information about kql queries with date:
Regards, Dave
- PASinATXJun 23, 2022Copper ContributorThanks Dave. I'll try this.
I'm looking for anything that falls between the start time and the end time. So, do you think contenttype:Event startdatetime<=Today
and
contenttype:Event enddatetime>=Today
will work, or am I using the wrong syntax?- DaveMehr365Jun 27, 2022MVP
Hello PASinATX
for the <= operator i had to change the query to the contenttypeid, before contenttype:
(contenttypeid:0x010200E10C0CC6C8DBDA4B8BC0A76CAB378AE0) AND (LastModifiedTime<=Today)
Regards, Dave