function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Kou XiongKou Xiong 

Custom lightning page template iframe?

I can't seem to find documentation relating to custom lightning template iframes.  What I mean is the Standard 3 region page template where all 3 regions are independent of another.

Is this available for custom lightning page templates?  I want to implement something similar but only have two regions, the right side bar (iframe) with scroll and main left (iframe).

User-added image
Ajay K DubediAjay K Dubedi
Hi Kou,

Here is the link for custom lightning template iframes go through below link it may helpful for you.
https://github.com/nikitakarpenkov/iframe-lightning-component

Here is the code for use iframe in lightning component.
 
<aura:component implements="forceCommunity:availableForAllPageTypes" access="global">
    <aura:attribute name="iframeUrl" type="String" />
    <aura:attribute name="width" type="String" />
    <aura:attribute name="height" type="String" />
    <aura:attribute name="scrolling" type="String" />
    <aura:attribute name="frameBorder" type="String" />
    <aura:attribute name="style" type="String" />
    <aura:attribute name="sandbox" type="String" />

    <iframe src="{!v.iframeUrl}"
            width="{!v.width}"
            height="{!v.height}"
            style="{!v.style}"
            frameBorder="{!v.frameBorder}"
            sandbox="{!v.sandbox}"
            scrolling="{!v.scrolling}"/>

</aura:component>



I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks,
Ajay Dubedi