Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

menuService.addSection not working #85

Open
aritrabasu104 opened this issue Mar 8, 2018 · 4 comments
Open

menuService.addSection not working #85

aritrabasu104 opened this issue Mar 8, 2018 · 4 comments

Comments

@aritrabasu104
Copy link

I need to add entries like Admin,User etc to the left navigation menu.
i tried
menuService.registerSectionType('w20-views', { icon: 'fa fa-th-list' }); menuService.addSection('view1', 'w20-views', { templateUrl: '{ecop-ihm}/views/temp.html' }); menuService.addSection('view2', 'w20-views', { templateUrl: '{ecop-ihm}/views/temp1.html' }); navigationService.refreshNavigation();

from myController but this fails to work.

@aritrabasu104
Copy link
Author

aritrabasu104 commented Mar 9, 2018

I want sections to appear like Tree structured links..this approach also fails while executing from HomeController
define([
'{w20-core}/modules/application'
], function(application) {
application.registerRouteHandler('myCustomType', function (route) {
// analyze and transform the route object here

    return route;
});

});

@jmmartinez84
Copy link
Contributor

Hello @aritrabasu104, are you using w20-business-theme?

@jmmartinez84
Copy link
Contributor

Hello again, it seems that angularjs does not allow to set routes from a controller. Routes must to be added on .config method. That's what W20 do by default.
stackoverflow-angularjs-adding-new-routes-dynamically

@aritrabasu104
Copy link
Author

Hi @jmmartinez84 even in that case , can we have a slider for routes under a menu item? and yes i am using the buisness theme

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants