Create an App Navigation Bar

To create consistently branded apps, use a navigation bar that persists from page to page.

You do this by creating a master page and child pages. Add a Navigation component to the header portion of the master page to redirect end users to different pages. Then, create those pages in the app as child pages to that master.

For the marketing app described in the Nintex Apps topic, the navigation bar might look like this:

../_images/image_2.png

Using the Go to URL action

Each of the navigation bar items uses the Go to URL action to redirect to a specific route. To direct end users to a specific app and page, just enter the base and page URLs in the Go to URL action. A button redirecting users to the calendar page within the marketing app would use /marketing/calendar as its redirect URL.

Note:  Begin the redirect URL with a backslash (/), otherwise the value will be appended to the page URL as a whole. For example, a redirect URL of marketing/calendar from a marketing dashboard located at https://www.example.nintex.app/marketing sends users to https://www.example.nintex.app/marketing/marketing/calendar . (One too many instances of /marketing !)

Once you set the redirect URL, Nintex Apps adds it to the end of Nintex Apps tenant's domain URL (such as https:///www.example.nintex.app/ ), sending users to the appropriate location at https:///www.example.nintex.app/marketing/calendar .

Absolute URLs

It's also possible to use absolute URLs, with the full domain path included.

For example, using https:///www.example.nintex.app/marketing/calendar as the redirect URL works just as well. However, if these app pages are used across multiple Nintex Apps tenants, their redirect URLs will only work in www.example.nintex.app ; they will not work in the other tenants, because the absolute URL references only the www.example.nintex.app domain.

Be sure to structure your navigation with this in mind.

So, want to see all this in action? Let's build a small app and navigation bar.

Assumptions

Note: 

This tutorial guides you through the creation of a 4-page app to see how app navigation works. The app consists of the following pages:

  • dashboard—a marketing dashboard (the home page)
  • calendar—the calendar of marketing events and deadlines
  • swag—a list orders for marketing products
  • data—collections of collateral and customer data

Though while the tutorial directs you in creating the necessary pages, you are free to determine what models and components to put in them. The focus of this example is app navigation.

The Result

From the Apps page, click into the app and select apps home page (the Dashboard). Click Preview. Using the navigation bar, navigate among the four pages of the app.

Because of this master page's navigation header, each page within the app has a functional navigation bar which points to every other page—ensuring end users always have a way to maneuver through the app.