Vaatate praegu abisisu järgmise versiooni jaoks::

This page provides information on creating and adding templates and components to your app.

AEM Mobile On-Demand provides a fully configured app template, an article template, and article components.

The Geometrixx Unlimited App is a sample template representing the shell of a fully configurable and manageable AEM Mobile On-Demand application.

Selecting this sample template when creating a new app delivers an AEM Mobile feature rich dashboard.

chlImage_1

Märkus.

To manage your application and mobile app content from AEM Mobile Apps Control Center, see the AEM Mobile Application Dashboard.

Creating App Templates

An App template is used to create a new app and acts as a collection of page templates and components that represent a baseline or foundation of an app. The template stamps out some fundamental properties to lead the app in the appropriate way. In general, a customer would not create too many apps in total.

App templates provide an easy way to leverage existing designs created by devlopers, used for the creation of new apps within AEM. 

When creating a new app based on the template of another app, you will get an app that has a starting point representative of the app in which it was created from.

Steps to creating a new app based on an app template: 

  1. Navigate to the AEM Mobile app catalog:  <server-url>/aem/apps.html/content/mobileapps
  2. Select Create --> App as shown below

Once you create an app using this template, you can add articles, banners, and collections to your app. To re-visit, creation of articles, banners, and collections click here.

chlImage_1

Märkus.

Alternatively, you can also select a sample app template, for example Geometrixx Unlimited App, made available to you by an AEM developer. If you use this sample template for your app, you get some sample articles and collections to work on. You will have the option of using the sample templates and components, customizing the existing ones, or creating new ones for your app.

Creating Content Templates

Each entity type has two out-of-the-box templates. These are:

  • Default templates: used for content creation with applicable default properties/structure 
  • Imported templates: used for importing content from AEM Mobile with applicable default properties/structure 

Article Templates

The Unlimited Article is a sample template representing a typical AEM Mobile On-Demand article layout.

  1. Click on + in Manage Articles to create a new article. You can choose either an Unlimited Article or a Rich Text Article. The image below shows the option that lets you choose from any of these two article templates.
  2. Click Next to define artcle meta data such as Article Name/Title, Description, Author, Abstract, Department, Thumbnail Image, Article Acces, and so on.
  3. Click Next to fill in the Advertisement Properties.
  4. Click Next to enter Article Image or Social Media Image
  5. Click Next to choose a collection link this new Article to.
  6. Click Next to enter the details for social sharing.
  7. Click Create to finish the process of creating an article using the sample. You either click Done or Edit Article to edit the properties of this article.
chlImage_1

Märkus.

To learn in-depth about creating and managing articles, see Application Management Actions.

Adding Components to Article

Once created, an author can edit an article's content by adding components like text and images. Articles are an extension of AEM page templates.

Select an article, you want to edit and click on Edit to add components to the article.

chlImage_1
chlImage_1

Choose the '+' on the left panel to add components to your article.

chlImage_1

Creating Out-of-the-box templates

There are no out-of-the-box Article Templates, however there is a default template that custom templates should extend, see Geometrixx Unlimited App's Article template sample.

The key properties beyond normal AEM template required properties include;

dps-resourceType="dps:Article"

This property ensures that the AEM page is recognized as an AEM Mobile targeted article page.

As per AEM templates, you can add any default properties or child nodes to the template's jcr:content.

Banner and Collection Templates

Hoiatus.

Banners and Collections do not have content so their creation does not support custom templates.

Creating and Adding Components

Components use and allow access to Widgets and these are used to render the Content.

A simple component is included in the code repository, the source of which can be found in AEM. Subesequently, it can also be opened locally in CRXDE Lite.

Märkus.

There are currently no out-of-the-box components provided for AEM Mobile.

 

You can add components to your page. Any component can be used in an AEM Mobile app but when applied, may not render properly.

However, custom components may not export and upload to AEM Mobile On-Demand Services correctly without a custom export content sync handler that renders in AEM.

Once the component has already been included in an AEM page, along with a few other building block components, you can add another component to the page or edit an existing one.

To add another component to the page:

  1. Choose that page and ensure you are in Edit mode, via the dropdown at the top right of the Editor's header
  2. Toggle the side panel using the leftmost icon in the Editor's header
  3. Select the Components tab
  4. Drag and drop one of the available components onto the page
chlImage_1

To edit an existing component:

  1. Choose that page and ensure you are in Edit mode and select the component
  2. Tap the wrench icon to configure the component

Märkus.

You can create a create a component in AEM and customize the same using Developing with CRXDE Lite. Once you have customized the existing component as your requirements, you can add it in your page using the Edit option under Manage Articles as shown in the figure above.

Getting Ahead

Once you are familiar with Templates and Components, see the folllowing advanced topics:

See töö on litsentseeritud Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported litsentsiga  Süsteemi Creative Commons tingimused ei kehti Twitter™-i ja Facebooki postitustele.

Juriidilised märkused   |   Privaatsuspõhimõtted veebis