DEPRECATION WARNING
This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.
csp:iframe¶
This ViewHelper is a wrapper for the Iframe class to enable a usage in fluid templates. If there is a need to bind an iframe through fluid in a template. This viewhelper extracts the host and adds it to the page's content security policy header.
Properties¶
src¶
- Variable type
- String
- Description
- The url of the iframe. (The host will be added to the csp header from this url)
- Default value
- Empty
- Mandatory
- Yes
class¶
- Variable type
- String
- Description
- CSS classes for the 'class' attribute
- Default value
- Empty
- Mandatory
- No
name¶
- Variable type
- String
- Description
- Value for the 'name' attribute
- Default value
- Empty
- Mandatory
- No
width¶
- Variable type
- Integer
- Description
- A positive integer or zero. This is the width of the iframe element. A zero value means that the attribute is not present.
- Default value
- 0
- Mandatory
- No
height¶
- Variable type
- Integer
- Description
- A positive integer or zero. This is the height of the iframe element. A zero value means that the attribute is not present.
- Default value
- 0
- Mandatory
- No
allowFullScreen¶
- Variable type
- Boolean
- Description
- Allows the iframe to show its content in a full screen mode.
- Default value
- 0
- Mandatory
- No
allowPaymentRequest¶
- Variable type
- Boolean
- Description
- This attribute can be set to true if the contents of a cross-origin <iframe> should be allowed to invoke the Payment Request API
- Default value
- 0
- Mandatory
- No
Examples¶
<csp:iframe
src="https://www.foo.bar"
class="bar foo"
name="foo-bar"
width="300"
height="200"
allowFullScreen="1"
allowPaymentRequest="0"
>
Result:
<iframe src="https://www.foo.bar" name="foo-bar" class="bar foo" width="300" height="200"
allowfllscreen="allowfullscreen"></iframe>