Search
Other Articles Anywhere questions
Forum

2 columns

Laurent Dubois's Avatar Laurent Dubois
Hello I try to display an article on the first line then 2 articles per line below but each time the second column created is empty here is the code:
<p>{articles featured="true" ordering="modified DESC" limit="12"}</p>
<div class="{if count = 1}grid-1{/if}{if count > 1}grid-2{/if}">
	<div>
		<p>
			[link]
		</p>
		<p>
			[image-intro]AAAAAAA</p>
		<span>[thematique]</span>
		<h2>[title]</h2>
		<p>
			[text limit=" 100" strip="true" ]</p>
		<p>
			[readmore text="Lire la suite..."]</p>
		<p>
			[/link]</p>
	</div>
</div>
{if every-2}
<div>{/if}
</div>
<p>{/articles}</p>

could someone help me?
thank you
Laurent
Peter van Westen's Avatar Peter van Westen ADMIN
You are now adding an extra closing </div> after every second article.
But not creating an extra stating <div>.
So that will cause your HTML to break.
Please post a rating at the Joomla! Extensions Directory
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription