Page 1 of 1

Dynamic NavigationProvider

PostPosted: Wed Nov 11, 2015 12:52 pm
by Ofir1234
I'm working with the angularjs+entity framework template.
I would like to have the following site structure :
Code: Select allhttp://mysite/london/trends

inside App/Main/views I'll have the folders :
Code: Select all   /london

and each folder will have a trends.cshtml file.

If the user opened the address http://mysite/london he will see the same navigation bar. Now, if he will choose 'trends' from the menu, it will navigate to http://mysite/london/trends. If he was inside http://mysite/paris and chose 'trends', it should navigate to http://mysite/paris/trends

Is there a support for this in the navigation provider cs file ?
The angular routing is preety easy:
Code: Select all.state('londontrends', {
                    url: '/london/trends',
                    templateUrl: '/App/Main/views/london/trends/trends.cshtml'
.state('paristrends', {
                    url: '/london/trends',
                    templateUrl: '/App/Main/views/paris/trends/trends.cshtml'

But how should I modify the NavigationProvider cs file to support this scenario? Any documentation for such case ?

(btw. if you're asking, when all of this will work, I'll just create a '/' routing which routes to a "select city" page)
(I've also read this post, and that's not what I want : viewtopic.php?f=5&t=586&p=1929)