FEATURE: display references in descending order
This commit is contained in:
@@ -9,11 +9,10 @@
|
|||||||
{!! $page->content !!}
|
{!! $page->content !!}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@if(count($page->subpages()))
|
|
||||||
<div class="row nochange small-up-2 medium-up-3 large-up-3 xlarge-up-4" data-equalizer>
|
<div class="row nochange small-up-2 medium-up-3 large-up-3 xlarge-up-4" data-equalizer>
|
||||||
<?php
|
<?php
|
||||||
$counter = 0;
|
$counter = 0;
|
||||||
$subpages = $page->subpages();
|
$subpages = $page->subpages('contents.created_at', 'DESC');
|
||||||
?>
|
?>
|
||||||
@foreach($subpages as $reference)
|
@foreach($subpages as $reference)
|
||||||
<?php $counter++; ?>
|
<?php $counter++; ?>
|
||||||
@@ -40,5 +39,4 @@
|
|||||||
@endif
|
@endif
|
||||||
@endforeach
|
@endforeach
|
||||||
</div>
|
</div>
|
||||||
@endif
|
|
||||||
@endsection
|
@endsection
|
||||||
Reference in New Issue
Block a user