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
- 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” - 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)
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”
Done, please check and share here if any change or issue.
Implementing the default settings per specs defined in shortcode page.
We have implemented without parameter code please check and let us know if any issue or change.
Implement two new features for setting “location” parameters in the shortcode
“not-online” and multiple locations
I have added parameter condition can you please check and let us know if any issue or query
location=”Not Online”
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.
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”]
Fix the wrong search results just posted above
Closed