Ext-Cal: Set up shortcode to take specified parameters

Status: 

Closed

Priority: 

N/A

Test URL(s):

References:

Knowledgebase: Extension Calendarshortcode

Request(s):

Create a shortcode for the Editor to provide specified Course selection criteria and display it to the designated content block of the page under development or maintenance.

Shortcode specs:
[wpos_fbu_extcal program=”xxx” location=”yyy” language=”zzz“]

xxx: the Program code from fbu_ext_programs table; 100, 200, etc.
yyy: the location code from fbu_ext_location table; SJ, SC, etc.
zzz: the language code from fbu_ext_language table; en, zh

Example:
[wpos_fbu_extcal program=”500″ location=”SJ” language=”en”]

500: DocCEUs
SJ: San Jose
en: English page

Drop this shortcode to the Test Page mentioned above

New design specs: 6/28/2022

  1. Set up a new location option: not-online
    Pull all courses that are not Online
    Make “not-online” option the exclusive option. Meaning if in a multiple locations situation, only “not-online” will be implemented, all other options are ignored.
    For example:
    location=”SJ, SC, not-online”
    is the same as
    location=”not-online”
  2. Set up multiple locations option: editor can enter multiple locations to retrieve course from

Implementing the default settings per specs defined in shortcode page.

To fix:

Location parameter when set for “Not online”, it should retrieve Courses that have not been assigned to “Online” in their location data field.

As of now, there are SJ and SC two physical locations. All courses that have been assigned to any one or both SJ and SC locations should be retrieved.

Two shortcode parameter combinations were found with wrong searched courses: (7/5/2022)

針灸及東方醫學博士 (DOCTORATE/ PH.D)

Current shortcode:
[wpos_fbu_extcal program=”500″ location=”SJ” language=”zh”]

There should be 3 courses available,
But nothing show up on the page

Doctoral Level CEUs (DAOM)
Current shortcode:
[wpos_fbu_extcal]
There should be 8, but it shows only 6 courses.

Check the correct search results on this page
https://dev.fivebranches.org/ia/search_fbu_extcal_courses.php

9 thoughts on “Ext-Cal: Set up shortcode to take specified parameters”

  1. After tested on the “Test page” section above, when “Not online” was specified at “location” , no results found.

    Also, change “Not online” back to “not-online” as specified on the task spec above.

  2. Not online done.
    Also check multi location.
    [wpos_fbu_extcal program=”500″ location=”SJ” language=”en”]
    [wpos_fbu_extcal program=”500″ location=”SC,SJ” language=”en”]
    [wpos_fbu_extcal program=”500″ location=”SJ,SC,not-Online” language=”en”]

Leave a Comment