maned / goblin

A Content Management System Built in Pure Javascript
http://goblin.jit.su/
19 stars 13 forks source link

Dropdown Menus? #61

Open jnoonan opened 10 years ago

jnoonan commented 10 years ago

I would like to be able to make dropdown menus in the navigation.

It'd be nice to be be able to to sort them in the configuration page and make a hierarchy-type thing.

SotiriosVrachas commented 10 years ago

Drop down menus are a UI (CSS3/JS) future.

Are you talking about nested navigation like "example.com/page/subpage" or just dragging them in place for the visualization purposes.

Both are very common, especially for products and services sections

PunkChameleon commented 10 years ago

I'm thinking more along the lines of the second one, where you can drag them into places in the config page and have them show up that way on the front-end. I agree it's pretty common and is something I've thought about a bunch since the beginning.

I think we'd be able to save a modified json object in each pages 'nav' item that got templated through the .gob file in a way bootstrap liked.

SotiriosVrachas commented 10 years ago

the universal is

    <ul>
      <li><a href="#">Link</a></li>
      <li><a href="#">Link</a></li>
      <li>
        <a href="#">Dropdown</a>
        <ul>
          <li><a href="#">Action</a></li>
          <li><a href="#">Another action</a></li>
          <li><a href="#">Something else here</a></li>
          <li><a href="#">Separated link</a></li>
          <li><a href="#">One more separated link</a></li>
        </ul>
      </li>
    </ul>

which is screen reader friendly, unfortunately bootstrap requires various bootstrap speciffic class attributes to work, but now everyone use bootstrap