dutchheight / craft-navie

Navigation plugin for Craft CMS 3
Other
2 stars 1 forks source link

error on getting list items in template #9

Closed lexislav closed 4 years ago

lexislav commented 4 years ago

Using craft.navie.items().list('mainMenu').all() ends up with Impossible to invoke a method ("level") on an array message.

Getting the results in this way is possible using level() craft.navie.items().list('mainMenu').level(1).

Edit: Craft 3.4.X, Navie 1.2.2.1

freimutt commented 4 years ago

Could you provide more information about your setup. I cannot reproduce your issue.

lexislav commented 4 years ago

Sorry, It was my mistake in template. It works as it should.