I have about 2,000 of these pages. The thing is it’s a sub, sub, sub page.
I need a menu that will keep menu when they click on something like aircraft-configuration. All the options would say here as it switches to that page. For instance, this would be Air Canada Star Aliance. It would have information about the airline.
When they click on one of the sub pages. It needs to highlight and show the content to the right.
I don’t know how to do this.
Any thoughts?
Here’s my current code.
<div class="small-3 cbt-side-nav columns">
<ul>
<?php foreach ($page->children() as $subpage):
?>
<li>
<a href="<?php e($subpage->ext_url()->isNotEmpty(), $subpage->ext_url(), $subpage->url()) ?>" <?php e($subpage->ext_url()->isNotEmpty(), 'target="_blank"', '') ?>>
<?php echo html($subpage->title()) ?>
</a>
</li>
<?php endforeach ?>
</ul>
</div>
<div class="small-9 columns text2">
<?php echo $page->text()->kirbytext() ?>
</div>
</div>
I’m currently calling any page, be it active or inactive.