AI agents: the content index is at /llms.txt. Every page is also available as Markdown — send the request header Accept: text/markdown, or append .md to the page URL.
Xperience Docs

Cookie consent

We use necessary cookies (opens in a new tab) to run our website and improve your experience while browsing. Additional cookies are only used with your consent. You may revoke your consent on the Cookies Policy (opens in a new tab) page or in your browser at any time.

Configure (opens in a new tab)
  • Documentation
    InstallationUsing the Xperience interfaceDeveloping websitesConfiguring XperienceManaging usersSecuring websitesDeploying websitesManaging website contentMultilingual websitesMacro expressionsExternal utilitiesIntegrating 3rd party systemsCustom developmentE-commerce featuresOn-line marketing featuresRelease notes - Xperience 13Xperience terminology glossary
  • Tutorial
    Using the Xperience interfaceDeveloper tutorialBusiness tutorialResource hub for marketers
  • API Examples
    ConfigurationContent managementDevelopmentE-commerceOn-line marketingSocial media
  • Community Questions & Answers (opens in a new tab)
  • Contact support (opens in a new tab)
  1. Home
  2. Developing websites
  3. Defining website content structure
  4. Managing page types
  5. Creating alternative forms for page types

Creating alternative forms for page types


Was this page helpful?

Send us feedback Go back to top

Alternative forms allow you to create additional versions of editing forms for page types, which you can then use in different situations. See Creating alternative forms for more information.

In Code names of automatically used alternative forms, you can learn about special code names of alternative forms. If you create an alternative form with one of these names, the system uses the form automatically for a specific purpose.

Example - Creating a custom Page type insert form

The following example demonstrates how to create an alternative form for a News page type (the page type and its fields are only an example, you can apply the same principles when working with your site's page types). The alternative form customizes the editing interface displayed when creating news articles in the Pages application.

See Extending the page type listing filter for another practical example of using alternative forms with page types.

Adding an alternative form

Create an alternative form for the News page type:

  1. Open the Page types application.
  2. Edit () the News page type.
  3. Switch to the Alternative forms tab.
  4. Click Create new form.
  5. Set the names of the form to the following:
    • Display name: News creation
    • Code name: insert (this is the automatic alternative form code name used for creating new items)
  6. Click Save.

The system creates a new alternative form.

Configuring the alternative form

After you create an alternative form, you can change its fields using the field editor.

  1. Switch to the Fields tab.
  2. Modify the fields as you desire. For example:
    1. Select the NewsTitle field.
    2. Type The title of the news article... into the field's Editing control settings -> Watermark -> Text setting.
    3. Click Save.
    4. Select the NewsReleaseDate field.
    5. Click Edit value () next to the field's Default value.
    6. Enter the {% DateTime.Now %} macro into the dialog and click OK.
    7. Click Save.
    8. Select the NewsTeaser field.
    9. Clear the Display field in the editing form check box.
    10. Click Save.

The alternative form is ready to be used. If you open the Pages application and create a new News page, you can see the modifications made in the alternative form:

  • The News title field displays the entered watermark text
  • The Release Date field automatically contains the current date and time
  • The Teaser field is no longer visible (it is only available when editing existing News pages)

If you edit an existing News page on the Content tab, the original default editing form is used.

On this page

  • Adding an alternative form
  • Configuring the alternative form

Related pages

  • Creating alternative forms
  • Code names of automatically used alternative forms