You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

How to insert a custom schedule in a WordPress page (knowledge for the WordPress site editors)

the short code takes two attributes:  builder and tags.

"builder" takes an integer that represent the event.

1 - homecoming

2 - reunion

"tags" takes one or more comma delimited tags that will be given to you buy the web team.  (Usually only one tag)

On each class page, paste the according short code with the tag(s) that's given to you by the web team.

For example, for reunion class of 1938

[cornell_schedule builder=2 tags="CF2AB44D-FDC0-40E4-ACB720B25CFB87F0"]

For example, for homecoming Hotel school

[cornell_schedule builder=1 tags="EAE391E4-C4FE-D301-9315DE20C97A04E4"]

 

Doing so will automatically pull the related events from the Itinerary builder and insert the content on the page in order of time.

 

 

About the plugin (knowledge for the web team)

The Itinerary builder itself is written by Adam Palcich.

We (web team) maintain a WordPress short code plugin that make API calls to Itinerary builder to fetch events data, format and sort by time, then display them on our WordPress site.

The short code plugin is at cornell-alumni/web/wp-content/plugins/cornell-schedule-shortcode/cornell-schedule-shortcode.php

the short code takes two attributes:  builder and tags.

"builder" takes an integer that represent the event.

1 - homecoming

2 - reunion

"tags" takes a comma separated list of tags from the admin panel of the itinerary builder.

* Where to get the tags:
https://apps.univcomm.cornell.edu/itinerary-builder/?view=tags

* Example short code to enter on the alumni.cornell.edu website:
[cornell_schedule builder=2 tags="CF2AB44D-FDC0-40E4-ACB720B25CFB87F0"]

Every year, we (web team) find all the class related tags, paste them in a spreadsheet, then share them with the user (reunion/homecoming web page editor), who will then enter the short code on each page that needs a schedule to be displayed.

 

There are two folders (reunion, homecoming) stored on alumni.cornell.edu Wordpress site server along with other static web pages.  The folders are given to us by Adam and are usually updated once a year when he makes changes.

static/alumni/homecoming-planner

 static/alumni/reunion-planner



  • No labels