3.5.2-beta.1 • Published 4 days ago

@pantheon-systems/pcc-browser-sdk v3.5.2-beta.1

Weekly downloads
-
License
-
Repository
-
Last release
4 days ago

Requirements

  1. A published Pantheon Content Cloud article
  2. A Pantheon Content Cloud Token. Obtain one from the PCC CLI.

Usage

  1. 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>
  1. 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:

AttributeTypeRequiredDescription
idStringYesThe ID of the article you want to render
slugStringYes if id is not providedThe slug of the article you want to render
disable-stylesBooleanNoDisable rendering default styles for the article
3.5.1

5 days ago

3.5.0

5 days ago

3.5.2-beta.0

4 days ago

3.5.2-beta.1

4 days ago

3.4.1

16 days ago

3.4.0

23 days ago

3.3.3

1 month ago

3.3.2

1 month ago

3.3.1

1 month ago

3.3.0

2 months ago

3.2.1

2 months ago

3.2.0

2 months ago

3.1.2

3 months ago

3.1.1

3 months ago

3.1.0

3 months ago

3.0.5

3 months ago

3.0.4

4 months ago