Skip to content

WedgeSama/content-type-menu-extension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Content type in menu for Bolt

This Bolt extension provide an easy way to add content type in menus.

Requirements

  • bolt 2.*

Usage

Menu definition

main:
  - title: 'This is the first menu item.'
    class: first
    path: homepage
    label: Home
  - label: Foo
    contenttype: foos
    contenttype_params: # optional
      order: title
      id: '!1'
    ...

contenttype_params use same keys as Fetching content. Use where causes directly in the array.

TODO

  • Custom title
  • Custom alt
  • Custom class
  • Custom label?

License

This library is release under MIT license.

About

Provide an easy way to add content type in menus for Bolt.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages