For basic overview of Enhanced Content (Inline/Hero): https://help.syndigo.com/hc/en-us/articles/360044492794-Understand-Enhanced-Content-Types
How to Implement In-Line Content
Import the Syndigo enhanced content SyndiTag anywhere in your web page:
SyndiTag
Wherever you'd like the In-Line content (referred to as the "Powerpage") to show, add this HTML element:
You can declare the script tag and html in any order, it won't affect anything.
There are a variety of methods available in the service to customize the implementation.
Available Attributes
Name | Description | Default | Required (?) |
---|---|---|---|
pageid | The content to display; a product SKU or product identifier (content ID). | YES | |
hidden | whether or not In-Line (powerpage) should be visible | FALSE | NO |
Updating Content
You can set the pageid (The content to display; a product SKU or product ID) attribute, which will cause the In-Line (powerpage) to load new content:
Detecting Content Presence
If you want to determine if content has loaded, you can attach a custom event listener:
You can also check the content load status via property:
Unloading
Simply remove it from the document, and it will be cleaned up automatically:
Hiding/Unhiding
If looking to keep In-Line content hidden(determines whether or not the mosaic should be visible), add this: