Silverstripe Version:
4.0.2
Question:
Hi I have page with Product and I show All products in bottom of page here:
http://www.nerezove-zabradlie-a-schody.sk/zabradlia/interierove-zabradlia/
class ItemPage_Controller extends PageController {
public function LatestArticles($count = 4)
{
return ItemPage::get()
->sort('Created', 'ASC')
->limit($count);
}
}
<% loop $LatestArticles %>
<div class="grid-item col-md-4">
<div><img class="img-fluid" src="$Ilustracny.Link" /></div>
<div class="text">
<h3>$Title</h3>
<p>$Popis</p>
<a href="$Link" style="width: 180px;" class="btn btn-primary btn-orange-white">Zistiť viac</a>
</div>
</div>
<% end_loop %>
But I want show only other products… something like: if Title != This Page Title