Created
July 24, 2020 15:07
-
-
Save design-innovations/b1b6450b6fb5df81d69dd9fad1350f2a to your computer and use it in GitHub Desktop.
Pages: Pulling Joomla article example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?= import('/partials/banner.html') ?> | |
<? $articles = collection('ext:joomla.model.articles', [ | |
'published' => 1, | |
'category' => [17, 18, 27, 28, 29, 30, 31, 32, 33, 34], | |
'sort' => 'title', | |
]); ?> | |
<div class="page-width "> | |
<h2 class="center-me">The following is a full list of all the tools listed alphabetically.</h2> | |
<div class="twocolumn"> | |
<ul> | |
<? foreach($articles as $article) : ?> | |
<li><a href="<?= $article->getRoute() ?>"><?= $article->title ?></a></li> | |
<? endforeach ?> | |
</ul> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment