Download the PHP package dutchheight/craft-navie without Composer
On this page you can find all versions of the php package dutchheight/craft-navie. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dutchheight/craft-navie
More information about dutchheight/craft-navie
Files in dutchheight/craft-navie
Package craft-navie
Short Description Navigation plugin for Craft CMS 3
License proprietary
Informations about the package craft-navie
Navie plugin for Craft CMS 3.x
Navigation plugin for Craft CMS 3 with GraphQL and custom field support. Navie allow's you to add custom fields to your navigation items.
Add custom fields
Add link to list
Use custom fields
Requirements
This plugin requires Craft CMS 3.0.0 or later.
Installation
To install the plugin, follow these instructions.
-
Open your terminal and go to your Craft project:
cd /path/to/project
-
Then tell Composer to load the plugin:
composer require dutchheight/craft-navie
-
In the Control Panel, go to Settings → Plugins and click the “Install” button for Navie.
-
Create a list
- Render in template. See Display a navie list
Navie Features
- Multiple menus/lists
- Multisite support
- GraphQL support
- Default linktypes (Entry, Url, Category, Asset)
- Add custom linktypes per menu by adding fields
- Rich API
- Editable plugin name
- Permissions (manage lists and edit settings)
- Permissions for each list (show, create, edit and delete)
- Eager loading (Entry, Category, Asset)
Using Navie with Twig
Display a navie list
craft.navie.render(handle, options)
is used to display a list. You can provide styling options.
Attribute | Type | Required | Description |
---|---|---|---|
handle | string | true | handle specified in the settings |
options | object | false | For more info see Available Options |
Available Options
Examples
Render a navie list:
Get navie list items raw
craft.navie.items(criteria)
is used to get a list items. This allows you Check Craft Element queries for more info. Each item
Attribute | Type | Required | Description |
---|---|---|---|
criteria | array | false | Craft entry criteria |
Examples
Get all items
Get items limited by level
Get all items Eager loaded
Now you are able to use items.getElement().title
without extra queries. This is also posible without eager loading but at a peformance cost.
Using Navie with GraphQL
Navie has built-in support for accessing lists and items via GraphQL use native Craft CMS 3.3 GraphQL.
Using Navie with CraftQL Plugin
Navie has built-in support for accessing lists and items via GraphQL use the CraftQL plugin.
You can retrieve all the lists with their fields:
You can also retrieve all list items with their fields and even the custom fields on the list
Navie Roadmap
Some things to do, and ideas for potential features:
- Settings for available link types
- Support Project.yaml
- Custom link type registration
Brought to you by Dutch Height