Iframe Widget

Prev Next
Mandatory Elements Mandatory Attributes
1. content
2. source
1. URL (source)

The following are the keypoints:

  • For valid attribute values refer Valid Tag Value section.
  • <tag> (presentation) will default to IFrame when not sent.
  • If the layout attribute under <content> tag is not sent, then the system will default it to KeepProportions.
  • Valid values for layout will be
    a. KeepProportions
    b. KeepBoxHeight
    c. DisplayOnDesktopOmitFromMobile
  • If add-context-info-parameters attribute under <source> tag is not sent, then system will default it to false.

XML

<feed updated="2021-05-17T05:00:00Z">
	<content-package id="12345678910" updated="2021-05-17T05:00:00Z">
		<name>Product 1</name>
		<description>This is product 1.</description>
		<brand>BrandXYZ</brand>
		<mpn>MPN-123456</mpn>
		<gtin>00012345678910</gtin>
		<msrp currency="USD">1,699.00</msrp>
		<sections>
			<section label="iframe">
				<presentation>
					<power-page title="iframe-PP"/>
					<tag>
						<![CDATA[iFrame]]>
					</tag>
				</presentation>
				<content template="iframe">
					<source url="https://www.test.com" supports-https="true" mobile-compatible="true" ada-compliant="true" add-context-info-parameters="true" scalable="KeepProportions"/>
					<dimentions width="100" height="100"/>
					<snapshot ref="https://www.test.com/assets/medias/images/12345678910/IframeSnapshot.jpg"/>
				</content>
			</section>
		</sections>
	</content-package>
</feed>

Preview

batch-content-delivery-iframe-widget