MMv4 KB
 
Public Event
  Last Edited - 10/18/2012 1:25pm PDT
  Category Path - Glossary
 
An event set to be Public makes it eligible to have its name, description, end date, etc., displayed in the storefront wherever the proper QuickCode Tags are used.

Even if the event is set to be publicly viewable, it will still only be displayed in the storefront if the proper QuickCode Tags are used. An example of these QuickCode Tags is:

displaying events with quickcode tags
The following QuickCode Tags can be added to any storefront template to display a list of all your events that have been set as "public".

{IF-EVENTS-BEGIN}
   {EVENT-BLOCK-BEGIN}
      <p>
      {EVENT-NAME}
      <br />
      Ends on:
{EVENT-END-DATE}
      <br />

      {EVENT-DESCRIPTION}
      </p>
   {EVENT-BLOCK-END}
{IF-EVENTS-END}

Let's look at what each of those QuickCode Tags is doing in detail...

quickcode tags to display public events
{IF-EVENTS-BEGIN}
The contents between this and the {IF-EVENTS-END} tags are only displayed if your store has any active, public events running.

{EVENT-BLOCK-BEGIN}
The contents between this and the {EVENT-BLOCK-END} tags will be repeated for each active, public event you have running.

{EVENT-NAME}
This will display the name of the next active, public event that is running in your store. The "name" is the contents of the Event Name field in the Event Engine Editor.

{EVENT-DESCRIPTION}
This will display the contents of the Public Description field of the next active, public event that is running in your store.

{EVENT-END-DATE}
This will display the date specified in the End Date field of Event Engine Editor for the next active, public event that is running in your store.

{EVENT-BLOCK-END}
The contents between this and the {EVENT-BLOCK-BEGIN} tags will be repeated for each active, public event you have running.

{IF-EVENTS-END}
The contents between this and the {IF-EVENTS-BEGIN} tags are only displayed if your store has any active, public events running.

Powered by ModularKB