by
KK » Fri Mar 08, 2024 11:08 pm
Hopeful you understand what my problem is?
Yes, I think I do - you want something like the following, right?
- Code: Select all
<article>
<h2>Google Chrome</h2>
<p>Google Chrome is a web browser developed by Google, released in 2008. Chrome is the world's most popular web browser today!</p>
</article>
<article>
<h2>Mozilla Firefox</h2>
<p>Mozilla Firefox is an open-source web browser developed by Mozilla. Firefox has been the second most popular web browser since January, 2018.</p>
</article>
<article>
<h2>Microsoft Edge</h2>
<p>Microsoft Edge is a web browser developed by Microsoft, released in 2015. Microsoft Edge replaced Internet Explorer.</p>
</article>
There could be several ways of create that output.
If you are sure the heading would always be the first item in the mosaic, the following sample code should suffice -
- Code: Select all
<cms:show_mosaic 'content'>
<cms:if k_tile_name='headline' >
<cms:if k_first_row>
<article>
<cms:else />
</article>
<article>
</cms:if>
<h3><cms:show headline /></h3>
</cms:if>
<cms:if k_tile_name='text' >
<div><cms:show text /></div>
</cms:if>
<cms:if k_tile_name='fotos' >
<div><img src="<cms:show foto />" /></div>
</cms:if>
<cms:if k_last_row>
</article>
</cms:if>
</cms:show_mosaic>
Hope it helps. Do let me know.