Customize the CMS Snap Display Connector for Extended Education
With Layout Builder, there are two ways to customize your Modern Campus CMS + Modern Campus Lifelong Learning Extended Education catalog connector tiles. You can change just the CSS or make changes to the full JavaScript framework (Vue).
Whichever you choose, design one catalog connector tile per layout. And be sure you don't remove or reorder the catalog connector JavaScript references that were added during implementation.
Customize Using CSSLink to this section
Use our starter CSS to style your catalog connector tiles.
You can either upload this file to the _resources/catalog-connectors
folder or paste the contents into Layout Builder Styles > Custom CSS. Then reference the styling in the tile.
Customize Using VueLink to this section
You can customize every part of the catalog connector using our individual starter code examples. In each starter code example, use the <endpoint-table>
tag with the :data
property to print out the available data points.
If you add new data points to the Modern Campus Lifelong Learning Extended Education system, add them to your HTML output as well for display.
Follow both JavaScript and Vue standards so the JavaScript can interact with the HTML correctly. The setup
method is not required but, if desired, can help with extending the functionality. You can also customize the shopping cart.
Certificate Detail
See the Certificate Detail starter code.
Item | Object |
All Modern Campus Lifelong Learning Extended Education certificate data | certificate |
Fetched course data | course |
Components
| components |
Connector-provided functions
| functions |
The state of the view as a whole. See Status Object for more details on use. | status |
The state of any course that is being loaded | courseStatus |
Certificate Search
See the Certificate Search starter code.
Item | Object |
All Modern Campus Lifelong Learning Extended Education certificates returned by the search | certificates |
Components
| components |
Connector-provided functions
| functions |
The state of the view as a whole.
| status |
The state of the current search | searchStatus |
A Vue | filterOptions |
A Vue reactive object indicating the values of each search filter as they exist on the page. Updating a filter (even without searching) updates these values.
| currentFilters |
An object of Vue computed properties containing information useful in creating pagination.
| pagination |
A Vue
| searched |
A Vue
| keyword |
Course Detail
See the Course Detail starter code
Item | Object |
All Modern Campus Lifelong Learning Extended Education course detail data | course |
All Modern Campus Lifelong Learning Extended Education course section data | sections |
Components
| components |
Connector-provided functions
| functions |
The state of the view as a whole.
| status |
Course Search
See the Course Search starter code.
Item | Object |
All Modern Campus Lifelong Learning Extended Education courses returned by the search | courses |
Components
| components |
Connector-provided functions
| functions |
The state of the view as a whole.
| status |
The state of the current search. | searchStatus |
A Vue | filterOptions |
A Vue reactive object indicating the values of each search filter as they exist on the page. Updating a filter (even without searching) updates these values.
| currentFilters |
An object of Vue computed properties containing information useful in creating pagination.
| pagination |
A Vue
| searched |
A Vue
| keyword |
Program Area
See the Program Area starter code.
Item | Object |
All Modern Campus Lifelong Learning Extended Education program areas | programArea |
All Modern Campus Lifelong Learning Extended Education certificates that are a part of the given program area | certificates |
All Modern Campus Lifelong Learning Extended Education courses that are a part of the given program area | courses |
Components
| components |
Connector-provided functions
| functions |
The state of the view as a whole.
| status |
Program Area List
See the Program Area List starter code.
Item | Object |
All Modern Campus Lifelong Learning Extended Education program areas | programAreas |
Components
| components |
Connector-provided functions
| functions |
The state of the view as a whole.
| status |
Program Stream
See the Program Stream starter code.
Item | Object |
All Modern Campus Lifelong Learning Extended Education program areas | programStream |
All Modern Campus Lifelong Learning Extended Education certificates that are a part of the given program stream | certificates |
All Modern Campus Lifelong Learning Extended Education courses that are a part of the given program stream | courses |
Components
| components |
Connector-provided functions
| functions |
The state of the view as a whole.
| status |
General
JavaScript | Configuration |
CMSStartD1Connector |
Required
Optional
|
d1ConnectorViewLoaded |
Using the default output from catalog connectorJavaScript event that is thrown after the catalog connector has loaded. Use this event listener to add functionality for when the catalog connector is using the default design.
Using the flexible output from catalog connector
|
Shopping Cart
Object | Configuration |
CMSStartD1Connector |
|
Embed Code for Standalone Shopping Cart | The standalone cart will update as items are added to the cart. You can also style the cart, as applicable.
|
Status Object
A status object contains two properties that indicate the status of a view or something that is being loaded.
Property | Description |
state |
Can be “loading", "error" or "ready" |
errorMessage |
Is an empty string unless state is "error". Then it will be a string containing the error |
Components
Any connector-provided components are exposed to views via a components object. All views have this object, for future-proofing, but most views do not contain any components.
Object | Description |
<component :is="components.NAME"></component> |
Replace NAME with the component to be used |