3.10.0-beta.1 • Published 9 months ago
@pantheon-systems/pcc-browser-sdk v3.10.0-beta.1
Requirements
- A published Pantheon Content Cloud article
- A Pantheon Content Cloud Token. Obtain one from the PCC CLI.
Usage
- Add the script tags that load the SDK to your HTML file:
<-- Add this to the <head> of your HTML file or right before the closing </body> tag -->
<script
src="https://unpkg.com/@pantheon-systems/pcc-browser-sdk@latest/dist/index.js"
data-site-id="<your PCC Site ID>"
data-token="<your PCC Token>"
></script>
- Add the
pcc-article
custom element to your HTML file. Place it where you want the article to be rendered.
<pcc-article id="<id of your article>">
<!-- Add a fallback message here for when the article is loading... -->
Loading...
</pcc-article>
That's it! You should now see yur article rendered in your browser.
Options
The pcc-article
custom element accepts the following attributes:
Attribute | Type | Required | Description |
---|---|---|---|
id | String | Yes | The ID of the article you want to render |
slug | String | Yes if id is not provided | The slug of the article you want to render |
disable-styles | Boolean | No | Disable rendering default styles for the article |
3.10.0-beta.0
9 months ago
3.10.0-beta.1
9 months ago
3.9.0
9 months ago
3.8.1
10 months ago
3.9.0-beta.0
10 months ago
3.6.2-beta.0
1 year ago
3.6.1-beta.0
1 year ago
3.6.2-next.0
12 months ago
3.6.0-beta.0
1 year ago
3.6.0-beta.1
1 year ago
3.6.0-beta.2
1 year ago
3.6.0-beta.3
1 year ago
3.6.1-next.0
1 year ago
3.5.4-beta.0
1 year ago
3.8.0
11 months ago
3.5.3
1 year ago
3.7.0
12 months ago
3.6.1
1 year ago
3.5.2
1 year ago
3.6.0
1 year ago
3.7.0-next.0
1 year ago
3.5.3-beta.0
1 year ago
3.8.0-beta.0
11 months ago
3.8.0-beta.1
11 months ago
3.5.1
1 year ago
3.5.0
1 year ago
3.5.2-beta.0
1 year ago
3.5.2-beta.1
1 year ago
3.4.1
1 year ago
3.4.0
1 year ago
3.3.3
1 year ago
3.3.2
1 year ago
3.3.1
1 year ago
3.3.0
1 year ago
3.2.1
1 year ago
3.2.0
1 year ago
3.1.2
1 year ago
3.1.1
1 year ago
3.1.0
1 year ago
3.0.5
1 year ago
3.0.4
1 year ago