Custom title in menu

Hello,

Please, I would need some help to add a custom title in menu to present the category (without using the parent page title)

Title

  • parent page
  • sub 1

Thank you

I would create a folder structure like this:

content/
  - category/
    - category.txt
    - parentpage/
      - parentpage.txt
      - subpage/
        - subpage.txt

And then use the category page’s title:

<ul>
  <?php foreach($pages as $category) : ?>
    <li>
      <?php echo $category->title() ?>
      <ul>
        <?php foreach($category->children() as $entry) : ?>
        <li>
        <?php echo $entry->title() ?>
        // … what's more for a submenu e.g. 
        </li>
      </ul>
    </li>
</ul>

Hello distantnative,

Thank you very much for help. I’ll do it this way.