Show page if Template A or Template B

I wish to show pages in my menu if they are made with certain templates. I have it working for a single template, How do I do it for 2 templates?

Current working code:

<ul>
 <?php $infopages = $site->children()->listed()->template('information');?>
 <?php foreach ($infopages as $infopage): ?>
  <li><a href="<?= $infopage->url() ?>"><?= $infopage->title() ?></a></li>
 <?php endforeach ?>
 </ul>

I want to include pages from my ‘about’ template too. How do I include this in the above code?
I feel it should be something like this:

<ul>
 <?php $infopages = $site->children()->listed()->template('information' or 'about');?>
 <?php foreach ($infopages as $infopage): ?>
  <li><a href="<?= $infopage->url() ?>"><?= $infopage->title() ?></a></li>
 <?php endforeach ?>
 </ul>

Any guidance would be appreciated :slight_smile:

Multiple templates need to be passed as array, see $pages->template() | Kirby CMS

 <?php $infopages = $site->children()->listed()->tempate(['information', 'about']);?>

Brilliant Thank you.

When I am on the help pages, I never understand what these parts mean.

$pages->template(string|array $templates): Kirby\Cms\Pages

It doesn’t show a square bracket. Maybe I need to learn what the term string and array mean first! :pensive:

Definitely, data types are among the very basics.