luyadev / luya

LUYA is a scalable web framework and content management system with the goal to please developers, clients and users alike.
https://luya.io
MIT License
811 stars 205 forks source link

Add item to menu navigation #1847

Closed Saraylu closed 6 years ago

Saraylu commented 6 years ago

How to add item to menu navigation? I want add item to Menu navigation without childof. In fact i want the item will be parent in menu navigation. I think have to use luya\cms\models\Nav...

Yii::$app->menu->injectItem(new InjectItem([
    'childOf' => 123,
    'title' => 'This is the inject title',
    'alias' => 'this-is-the-inject-alias',
]));
nadar commented 6 years ago

@msoa i think this is somewhat dublicated to: https://github.com/luyadev/luya-module-cms/issues/62

luya-bot commented 6 years ago

Issue moved to https://github.com/luyadev/luya-module-cms/issues/136