A map on the contact page
A map with the studio's address above the contact form.
Life cycle: Build, example 16 of 35. Worked out on the Fit & Healthy site of Exponential 6.0.15+.
Contents
In the Layouts editor
- Open Layouts > Layouts and the layout the layout of the contact page; the editor opens it in a draft.
- Open the block palette (+ at the top left) and drag Map (group Basic) into the zone
main. - Select the block, open the Design tab and fill Map embed URL (the embed address the map service gives), Width (default
100%) and Height (px) (default 400). - Publish layout. The pages that use the layout show the block on their next view.
Contact (node 185) is a Contact form page; check Layouts > Layout mappings for which layout it gets, or give it one (Which layout does a page get?).
With templates
- Add the
<iframe>of the map to the full view template of the contact form in your design extension; mind the site's Content Security Policy for frames.
Which to choose
The block keeps the map with the page layout and editable.
Check
- The map loads, and the page still works if it does not (keyboard, no console errors).
Related pages
- Which layout does a page get?
- Build examples, every page
- Free documentation: this page is free to copy, translate and improve under the GNU FDL 1.3.
Become an Exponential Partner
Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.