Support » Plugin: Event post » Customizing the Schema for a Particular Page

  • Resolved pwesling

    (@pwesling)


    I understand how to set/modify the Global Schema that controls what is displayed in a listing of events, and which data appears. But I need an example and details on how to construct and use a modified Schema for a particular page. The Documentation doesn’t explain how to use a customized Schema to display a different “version” of the event list. Can someone provide an example about what such a custom Schema looks like and how to put it on a WP Page?

    • This topic was modified 7 months, 3 weeks ago by  pwesling.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • So, does EventPost allow different formats/layouts for different pages? Please say “Yes” or “No”. Thanks!

    Plugin Author Bastien Ho

    (@bastho)

    Hi

    container_schema and item_schema are both supported in shortcode (not yet in Block).

    Sadly, quotes (“) inside a shortcode attribute are escaped by the editor. the workaround is to use single quotes (‘) to wrap attribute value.

    eg.:

    [events_list item_schema='<%child% class="custom-event--item %class%" data-color="%color%">
    <a href="%event_link%">
    %event_thumbnail%
    <h5>%event_title%</h5>
    </a>
    %event_date%
    %event_cat%
    %event_location%
    %event_excerpt%
    </%child%>']

    Hope it helps

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.