CUTCODEDOWN
Minimalist Semantic Markup

Welcome Guest
Please Login or Register

If you have registered but not recieved your activation e-mail in a reasonable amount of time, or have issues with using the registration form, please use our Contact Form for assistance. Include both your username and the e-mail you tried to register with.

Author Topic: How do I adapt this menu code to add drop down items?  (Read 323 times)

judgedredd

  • Greenhorn
  • *
  • Posts: 2
  • Karma: +0/-0
How do I adapt this menu code to add drop down items?
« on: 30 Jun 2021, 01:39:57 pm »
Second post in Jason's new (for me) forum.

Jason kindly did a site makeover for me last year using semantic markup. With that the menu code was this:
Code: [Select]
<?php

$config 
= [
'siteTitle' => 'Matrix Files',
'mainMenu' => [
'Down the Rabbit Hole' => [
'class' => 'rabbit',
'uri' => 'downtherabbithole.php'
],
'Home' => 'index.php',
'About' => 'about.php',
'Computers' => 'computers.php',
'Finance' => 'finance.php',
'Forum' => [
            
'class' => 'forumlink',
            
'uri' => 'http://matrixfiles.com/hgnb/viewforum.php?f=5'
        ],        
'Health' => 'health.php',
'Law' => 'law.php',
'MatrixFiles-radio' => 'http://matrixfilesradio.com/',
'Mirrors' => 'mirrors.php',
'Research' => 'research.php',
'Tech' => 'tech.php',
'Contact' => '#contact',
'Donations' => [
'class' => 'donations',
'uri' => 'donations.php'
]
]
];

How do I go about adapting it to include drop down menu items? For example under 'Computers' how can I add - Apple, Amiga, PCs, Sinclair, Commodore - as the items in the drop down? I will also post this question in the 'other' forum.

 

SMF spam blocked by CleanTalk

Advertisement