Advanced features

Contents

The chapters in this section go beyond chapters 1 to 9. Each one adds a single feature to the site you built: a mapping, an API, and an app from Enonic Market. They are optional, and the first two can be read in any order.

Before you start

Every chapter assumes that you have completed chapter 9: the Hello World site is published, the sandbox is running, and enonic dev is running in your app folder.

The demo contains the result of all three chapters.

One app renders, others contribute

So far, a single app has done everything on your site. That is how rendering works best: one app owns the pages, parts, and layouts of a site.

A site can still have several apps, and the others don’t have to render anything. An app can contribute to a site in other ways:

You’ll use the first two in your own app, and then see another app do the same on your site.

In this section

  • Mappings - Serve a file at a fixed URL, with llms.txt as the example

  • APIs - Offer the countries as a CSV file through an API

  • More apps - Install Sitemap.xml from Enonic Market, and see how it takes part in your site


Contents

Contents