Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: DOCU-2009
HTML Wrap
alignright
classmenu

Live demo for visitors (public Editor experience (author instance):
https://demopublicdemoauthor.magnolia-cms.com
Live demo for editors Username: superuser  Password: superuser

Visitor experience (public (author instance):
https://demoauthordemopublic.magnolia-cms.comLog in as superuser / superuser

Developer experience (clone the project in Git)

Code Block
languagebash
git clone https://git.magnolia-cms.com/git/modules/demo-projects.git
Excerpt

The Magnolia Travel demo demonstrates key features of Magnolia. Use it to learn what Magnolia can do, how authors manage content, and how developers create Magnolia projects.

The  For developers, the Travel demo provides a best-practice example of the new Magnolia Templating Essentials templating (MTE), YAML configuration and resource loading. In producing the demo, we attempted to strike a balance between demonstrating many Magnolia features in a realistic context, while staying as small and simple as possible.

Clone the Travel demo project in Git:

...

languagebash


...

Table of Contents

Info

This page is based on demonstrates features available in Magnolia DX Core, a paid edition. If you are working with the Community Edition , some of the features will not be available, including multisite, personalization and marketing tags.

Table of Contents

About the website

...

alignright
classmenu

Youtube
playlistIdPLxHBbwVVoCob0wnr64vUIEJ1nhirkYoZY
width450
videoIdOvsIwicdaIg
urlhttps://www.youtube.com/watch?v=tKoOK3-BZXQ&rel=0
height282

. The demo also includes functionality from selected Connector Packs and Special Features, which are subject to specific licensing.

About the website

...

Magnolia Travel is the website of a fictional travel agency that sells package tours. This business scenario helps showcase the benefits of Magnolia.

...

As you browse the site, imagine what your products or services could look like in a site like this. Tours could be replaced with whatever products, information or departments are important in your organization.Image Removed

Youtube
playlistIdPLxHBbwVVoCob0wnr64vUIEJ1nhirkYoZY
width600
videoIdOvsIwicdaIg
urlhttps://www.youtube.com/watch?v=tKoOK3-BZXQ&rel=0
height376

Website overview

The homepage has a typical structure with a top navigation and footer that is shared across all pages. The navigation contains two dropdowns.

...

  • The home page contains a big carousel featuring hand-picked tours. Under the carousel, three icons link to some of the tour types that are available in the dropdown menu.
  • The About page is an example of a conventional or simple page. It is the parent of a typical website tree of pages. The meta links in the footer also link to simple pages.
  • The overview pages for each tour type and destination category have the same format. Each has an image, title and description, followed by a block of featured tours in the category, and then a block of all tours in the category. Go to Beach and Cultural in the Tours menu and Europe in the Destinations menus to see examples. Note the tour type icons below the title in the teasers. Tours can belong to multiple tour type categories and will display in all overview pages.
    Image RemovedImage Added
  • The format of the detail page of each tour is also the same. Click View Tour in any teaser to access the detail page. Tour type icons display in the title and lead to type overview pages. Below the tour details at the bottom of the page, there are card blocks of other tours within in the categories that a visitor might be interested in.
    Image RemovedImage Added
  • The Members page allows users of a public Magnolia site to register and access restricted content. User registration is powered by Magnolia's Public User Registration module.
  • The Contact page includes a sample online form powered by Magnolia's Form module.
  • Search results display on a dedicated page. Enter a term in the box to see the results. 

Content Structure

To view the content structure and source, log in to Admincentral with username and password superuser.

Open the Pages app and expand the travel and about nodes.

  • The pages under about  are a simple hierarchy. Content for these pages is added in the page editor. If you scroll further down, you'll find also the meta page. The parent meta page is not displayed in navigation because the "Don't show this page in any site navigation" option is enabled in the Page properties dialog. 
  • The travel subpages, tour-type, destination and tour display the content for all tours. This content is added and stored in apps. Based on the URL, the content page retrieves the appropriate content item from the app and displays it.
Image Removed

Image Added

Open the Tour Categories app to see the tour types and destinations.

 
These

 These are the tour type and destination categories that link the tours together.

Image Removed

Image Added

Open the Tours content app to see the tours.


This is where the bulk of the site content resides. In a way, the site builds itself  - the navigation, category overview pages and tour pages are dynamically generated based on the content added in this app.

Image Removed

Image Added  

Image Removed

Image Added

Magnolia Features

Some of the key Magnolia features are showcased in the Travel demo.

User roles

Hide block HTML Wrap
alignright
classmenu
YoutubeplaylistIdPLxHBbwVVoCob0wnr64vUIEJ1nhirkYoZYwidth450videoIdd2AfwRTU5bkurl

https://www.youtube.com/watch?v=d2AfwRTU5bkheight282Watch: Overview of User Roles

Magnolia has a powerful and flexible security mechanism based on roles, groups and users. You can specify which apps and actions, and even which content within an app, a user can access. You can also limit who can request and publish workflows. 

Open the Security app to explore. Log out as superuser and log in as eric (password eric). Notice that fewer apps are available, for example, the Security app is no longer available.

The Travel demo includes three users to illustrate typical roles: (Password is always the same as the user name.)

  • eric: An editor who can edit all content. In the Pages app in CE he cannot access the Publish action. He can submit items for publication with the Publish action, but he cannot actually publish content. 
  • peter: A publisher who can also edit all content. In the Pages app in CE he can access the Publish action. He can also view items submitted for publication in the Tasks app, and approve (publish) or reject them. 
  • tina: A tour editor who cannot access content in the Pages app.

Publication and Workflow

Hide block HTML Wrap
alignright
classmenu
YoutubeplaylistIdPLxHBbwVVoCob0wnr64vUIEJ1nhirkYoZYwidth450videoIdmUOZKeQq938urlhttps://www.youtube
  • .
com/watch?v=mUOZKeQq938
height282Watch: Overview of

Publication and Workflow

Magnolia's publication takes advantage of the Workflow system. While any workflow can be implemented, in the Travel demo you can try the standard "four-eye" publishing workflow which comes with Magnolia out-of-the-box. Eric the editor can edit content, and submit it for approval. Peter the publisher receives notifications in the Tasks app, and can review the changes made, and finally publish the changes to the public instances - or reject them.

Multilanguage website

Hide block HTML Wrap
alignright
classmenu
YoutubeplaylistIdPLxHBbwVVoCob0wnr64vUIEJ1nhirkYoZY

width450videoIdvfmLAhz5m8ourlhttps://www.youtube.com/watch?v=vfmLAhz5m8oheight282Watch: Multilanguage features

The Travel demo supports two content languages, English and German.

To see this in action, edit the contact page.

  • Use the language selector in the bottom bar to change from English to German. The content of the page is now displayed in German.
    Image RemovedImage Added
  • Click on Main bar and then on the edit icon in the Jumbotron bar. Use the language selector in the Text and Image dialog to view and edit the content in either language.
    Image RemovedImage Added

Multilanguage authoring

Admincentral can also be translated into multiple languages,

Log in as eric-de (password eric-de) to see the administration interface in German. Each user can set their language in their user profile. 

Image Removed

Content reuse

Hide block HTML Wrap
alignright
classmenu
YoutubeplaylistIdPLxHBbwVVoCob0wnr64vUIEJ1nhirkYoZYwidth450videoIdvu9Ha-mWbJEurlhttps://www.youtube

.

com/watch?v=vu9Ha-mWbJEheight282

Watch:

Content reuse

with Content apps

The Travel demo is a good example of efficient content reuse and demonstrates how this can easily be accomplished using content apps to store tours.

A tour is stored in one location, but the information is used throughout the site, from the homepage, to the category overviews, to the tour pages.

As a best practice, content should be added and maintained in one location and used throughout the website, or in external apps, widgets or feeds. It should never be necessary to add the same content multiple times,

Compare the information in the Tours app to the content on the site pages to see how it is reused. 

Image Removed

Multisite

Hide block HTML Wrap
alignright
classmenu
Youtube
playlistIdPLxHBbwVVoCob0wnr64vUIEJ1nhirkYoZY
width450
videoIdLeD_2vzqAx0
urlhttps://www.youtube.com/watch?v=LeD_2vzqAx0
height282
Watch: Sharing content and resources across sites

The Travel demo has a simple additional site, SportStation, which demonstrates sharing of web resources, components, and tour content across sites.

A Magnolia instance can host multiple sites that share configuration, resources and content. This is useful in a variety of situations - from campaigns and landing pages to managing sites for all departments, branches or subsidiaries of your organization. This feature is often used to simplify and consolidate management of the many websites company accumulates over time.

To view the SportStation site, edit the sportstation page in the Pages app and click Preview page in the editor.

  • SportStation offers only Active tours and uses the same content as Travel.
  • Site styling is similar to Travel because the same web resources are used.
  • The home page features a carousel of hand-picked active tours and then a tour list of all tours in the Active category, displayed in teaser blocks. The tour list is the same as as that used on category overview pages in Travel.
  • The tour detail pages are very similar to those in Travel but do not include icons linking to tour types or destinations, nor are their related tours at the bottom of the page.

Image RemovedImage Added

Personalization

Magnolia sites can be personalized for individual visitors based on visitor traits such as cookies, location, date, information in a user profile, or information shared via social networks. 

Page personalization

Hide block HTML Wrap
alignright
classmenu
YoutubeplaylistIdPLxHBbwVVoCob0wnr64vUIEJ1nhirkYoZYwidth450videoIdabF79TUU_FYurlhttps://www.youtube.com/watch?v=abF79TUU_FY

height282Watch:

Page personalization

in a previous version of the Travel Demo

The Travel demo illustrates page personalization with three variants of the contact page. Different contact information displays in the second Text and image component depending on the location trait of the visitor.

To view the personalized pages:

  • In the Pages app expand the contact and Variants nodes. There is one variant for each geographic region.
  • Select the contact page and click Preview as Visitor in the action bar.
  • In the overlay select different sample users to view the page variants.

Image RemovedImage Added

Component personalization

Hide block HTML Wrap
alignright
classmenu
YoutubeplaylistIdPLxHBbwVVoCob0wnr64vUIEJ1nhirkYoZYwidth450videoIdyIlQ_Vdr1Fo

urlhttps://www.youtube.com/watch?v=abF79TUU_FYheight282Watch: Personalization in the Travel Demo

The Travel demo illustrates component personalization on the home page using the Tour type cookie. 

To view the personalized components:

  • In the Pages app open the travel page in the editor.
  • Click the Preview in tab button in the bottom right corner to view the page in the browser.
  • Click Active in the Which tour type are you? component. 
  • View any tour page and click the logo to navigate back to the home page.
  • The question is hidden and the Featured tours (by tour type) component displays active tours below the carousel. 
Image Removed

Marketing tags

Hide block HTML Wrap
alignright
classmenu
youtube-macro

playlistIdPLxHBbwVVoCob0wnr64vUIEJ1nhirkYoZY
width450
videoIdKalIaVh8dLs
urlhttps://www.youtube.com/watch?v=KalIaVh8dLs
height282

Watch: Marketing Tags example

The Marketing Tags app integrates with marketing services like Clicky and Google Analytics. Marketing teams can add snippets of HTML or JavaScript to all or any set of pages without code changes or developer assistance.

To see this in action:

  • Open the Marketing Tags app.
  • Edit any tag to view the configuration options.
  • Click Show provider dashboard to view the provider dashboard (as configured in the tag). You can also view the dashboard in your browser.
  • View the page source of any page on the public instance to confirm that the tag is added to the HTML.
Image Removed

Learn more