Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8467527
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T15:40:21+00:00 2026-06-10T15:40:21+00:00

I have an application, which will have a view layer organized in three parts:

  • 0

I have an application, which will have a view layer organized in three parts:

  1. Sidebar
  2. Toolbar-left
  3. Toolbar-right

I have spent may last few hours with trying to find something helpful with google, but I had no luck. I would need a short and complete application example on how to do this using Router and connectOutlet, with named outlets.

Thx ahead.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T15:40:23+00:00Added an answer on June 10, 2026 at 3:40 pm

    UPDATE: This code is outdated, due to the Ember api changes.

    I have reached a point, where I can say that I found the solution which is best for myself.

    <script type="text/x-handlebars" data-template-name="application">
    <div class="container">
        <div class="toolbar">{{outlet toolbar}}</div>
        <div class="main">{{outlet dashboard}}</div>
        <div class="sidebar">{{outlet sidebar}}</div>
    </div>
    </script>
    

    Using such a application template, I can choose where to render views. Like this:

    App.router = Ember.Router.create({
        enableLogging: true,
        location: 'history',
        root: Ember.Route.extend({
            index: Ember.Route.extend({
                route: '/admin/',
                redirectsTo: 'login'
            }),
            login: Ember.Route.extend({
                route: '/admin/login/',
                doLogin: function(router, context) {
                    "use strict";
                    router.transitionTo('dashboard', context);
                },
                connectOutlets: function (router, context) {
                    "use strict";
                    router.get('applicationController').connectOutlet('login', "login");
                }
            }),
            dashboard: Ember.Route.extend({
                route: '/admin/dashboard/',
                doLogout: function(router, context) {
                    "use strict";
                    router.transitionTo('login', context);
                },
                connectOutlets: function (router, context) {
                    "use strict";
                    router.get('applicationController').connectOutlet('sidebar', 'sidebar');
                    router.get('applicationController').connectOutlet('toolbar', 'toolbar');
                    router.get('applicationController').connectOutlet('dashboard', 'dashboard');
                }
            })
        })
    });
    

    I have the three views, which are not important from the solution point of view, those get rendered to their outlets.

    Hope this helps others.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an application which will use WCF to serve up various chunks of
I have a phonegap application which will need to take a zip archive of
I have a silverlight application which users will be running in various time zones
I'm designing an application which will have a network interface for feeding out large
I am making an application which will have an interface similar to Photoshop: multiple
I have a textField in my application which will be initiated programmatically (textField.setText() )
I have to implement a iphone application which will record user's voice as you
I have been working on a facebook application which will be using Graph API
I need to write a standalone Java application which will have a embedded HTTP
I would like to develop an Android application which will have a local database.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.