orionjs / orioncms

[Old] Orion is an open source framework built on Meteor that makes complex as well as simple apps possible with minimal effort.
http://orionjs.org
MIT License
715 stars 129 forks source link

How do i override the default /admin/my-account route? #369

Closed Ajaxsoap closed 8 years ago

Ajaxsoap commented 8 years ago

Hi @nicolaslopezj ,

I have a dashboard route which is / , locally I didn't encounter the flickering issue but when I deployed on DO, whenever i refresh the page or loosing the connection, it will point to /admin/my-account and the domain on the address bar flickers and hangs. Here's the address of my deployed app.

Thanks

rwatts3 commented 8 years ago

@Ajaxsoap Orion Dashboard is not apart of the Orion Core. If you would like to submit the issue in that repo i'd be happy to take a look.

https://github.com/rwatts3/orionjs-dashboard/issues

Ajaxsoap commented 8 years ago

Thanks @rwatts3, sorry but i am preferring to my own dashboard not the dashboard package that you wrote. I manually created a route for it. I think the issue is something to do with my app structure.

rwatts3 commented 8 years ago

Oh OK. I should have clarified that.

On Wed, Dec 2, 2015, 10:16 AM Marvin Villanueva notifications@github.com wrote:

Thanks @rwatts3 https://github.com/rwatts3, sorry but i am preferring to my own dashboard not the dashboard package that you wrote. I manually created a route for it. I think the issue is something to do with my app structure.

— Reply to this email directly or view it on GitHub https://github.com/orionjs/orion/issues/369#issuecomment-161369093.

rwatts3 commented 8 years ago

On that note the admin home route is an Option. . take a look at the core packages. You should see the options for the admin home route. Just overwrite that option by setting it to your desired route.

rwatts3 commented 8 years ago

That's also what I did in my dashboard package. You ca check there too if you can't find it in the core.

Ajaxsoap commented 8 years ago

Thanks @rwatts3 , I will take a look on it.

Assuming that I found the right code, how do I modified it, if it's in the core package? My app is structure is not structured as a package.

rwatts3 commented 8 years ago

You don't. Options were written to be overwritten with Options.set So if you call options.set it will be passed to every item that uses that option as your new value.

On Wed, Dec 2, 2015, 11:35 AM Marvin Villanueva notifications@github.com wrote:

Thanks @rwatts3 https://github.com/rwatts3 , I will take a look on it.

Assuming that I found the right code, how do I modified it, if it's in the core package? My app is structure is not structured as a package.

— Reply to this email directly or view it on GitHub https://github.com/orionjs/orion/issues/369#issuecomment-161392199.

Ajaxsoap commented 8 years ago

Oh, I see but it didn't mention on the docs customization section.