An about-us section with picture and text
An "about us" band: who you are in two sentences, a picture and a link to the full page.
Life cycle: Build, example 2 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 Landing Page / Home; the editor opens it in a draft.
- Open the block palette (+ at the top left) and drag About (group Components) into the zone
main. - Select the block, open the Design tab and fill Title, Content, Image URL, Image alt text, Link text, Link URL.
- Publish layout. The pages that use the layout show the block on their next view.
About, Hero, Features and Lead share one handler (expLayoutsComponentBlockHandler) and so the same eight fields; each type has its own template.
With templates
- Write
extension/mysite/design/media/templates/explayouts/tpl_block/about_us.tplin your design extension, clear the template cache, and place it with a Template block whose Template name isabout_us(Your own template blocks). - Read the text from a content page so it is edited where it belongs, for example an
ng_landing_page"About us" withtitle,full_introandimage.
def $about = fetch( 'content', 'node', hash( 'node_id', <node id of About us> ) )
<section class="container about-us">
<h2>$about.name|wash</h2>
attribute_view_gui attribute=$about.data_map.full_intro
attribute_view_gui attribute=$about.data_map.image
</section>
undef $aboutWhich to choose
A fixed text that rarely changes fits either way; the block keeps it with the layout, the template keeps it in git.
Check
ngl-abouton the wrapper (block).- The link goes to the full page.
Related pages
- Your own template blocks
- The Design tab
- 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.