DRMasterChief Posted May 20, 2018 Share Posted May 20, 2018 (edited) Hi, i need to integrate CMS-content into the contact-form.tpl (version 1.6.18) , Let’s say i have created an CMS content called “privacy2” and i want to integrate this in the contact-form.tpl (no checkbox or other things are needed, only integrate the content -as plain text- from privacy2 into the contact-form.tpl The content just should appear in a box with similar size than the “message box”, and should be scrollable, as it would be about 2 pages full with thext (informations regarding GDPR…). I think iframe is good for this. I tried: <iframe id=“myTestFrame1” src="{$link->getCMSLink(6)}" style=“height:150px;width:100%” scrolling=“auto”></iframe> but this loads not only the content of CMS, it loads the whole startpage from website incl. logo, menu,... into the iframe. I only need the content from the “CMS ID 6” in the iframe. Is this possible or not? How to do this? thank you Edited May 20, 2018 by DRMasterChief (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted May 20, 2018 Share Posted May 20, 2018 Add ?content_only=1 to the src, it should do it Link to comment Share on other sites More sharing options...
DRMasterChief Posted May 20, 2018 Author Share Posted May 20, 2018 Ahhh that simple!! thank you, this works ! Do i need anything more than this (e.g. for SSL or other things?)?? We have friendly URLs. Is there any other thing i have to give he iframe-id to? I just give them a unique name, but it dont use this name in any other file (myFrame22). Do i have to use this in any other file or thing? THANK YOU <iframe id="myFrame22" src="{$link->getCMSLink(6)}?content_only=1" style="height:150px;width:100%" scrolling="auto"></iframe> Link to comment Share on other sites More sharing options...
NemoPS Posted May 23, 2018 Share Posted May 23, 2018 That should be everything Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now