Hi, I am very new to php…
now i am following the tutorial videos… but I have a question.
<div class="left">
<div class="left-logo">
<a href="<?= $site->url() ?>"><?= $site->title() ?></a>
<div class="left-menu">
<?php foreach ($page->children()->listed() as $works): ?>
<ul>
<li>
<a href="<?= $works->url() ?>"><?= $works->title() ?></a>
</li>
</ul>
<?php endforeach ?>
</div>
</div>
</div>
In this code, If I want to select another page, how can I do that?
my structure is,
- main page
- works page with 5 categories
- contact page
I want to make appear works’s 5 categoris on main page, but I only know $page->children()->listed().
How can I select works pages 5 categories?
thanks…