used new filter method
parent
f6a96a2e6d
commit
5269bde912
|
@ -103,7 +103,7 @@
|
||||||
<section class="mt-2">
|
<section class="mt-2">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<h2 id="news" class="mt-5 mb-4">Aktuelle <strong>Neuigkeiten</strong></h2>
|
<h2 id="news" class="mt-5 mb-4">Aktuelle <strong>Neuigkeiten</strong></h2>
|
||||||
@foreach($nachrichten->take(3) as $nach)
|
@foreach(filterByContentType($mdNachrichten, "News") as $nach)
|
||||||
<div class="col-12 col-md-4 mb-4" >
|
<div class="col-12 col-md-4 mb-4" >
|
||||||
<div class="card h-100" style="background-color: #f8f8f8;">
|
<div class="card h-100" style="background-color: #f8f8f8;">
|
||||||
@if ($nach->image)
|
@if ($nach->image)
|
||||||
|
@ -189,7 +189,9 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
||||||
@foreach($nachrichten as $nach)
|
@foreach(filterByContentType($mdNachrichten, "Produkte") as $nach) (edited)
|
||||||
|
|
||||||
|
|
||||||
<div class="col-4 col-md-2 mb-4">
|
<div class="col-4 col-md-2 mb-4">
|
||||||
<a href="{{ route_content($nach) }}" title="{{$nach->title}}">
|
<a href="{{ route_content($nach) }}" title="{{$nach->title}}">
|
||||||
@if ($nach->image)
|
@if ($nach->image)
|
||||||
|
|
Loading…
Reference in New Issue