This article shows you how to dynamically load content into the Settings page of a Details template. These instructions do not apply for templates created with the Repeater component.
If there is missing information on the Settings page, a red message bar displays at the top of the Edit Content page.
The Settings page has four fields that can be dynamically filled with data set content:
- Focus Keyword
- Page URL
- Page Title
- Page Description
Dynamically loading data into these fields on every template page is recommended. These fields place metadata on each page, which helps improve SEO ranking and search results.
The Settings page is part of a larger task, which is creating a Details template. For more information, see:
1 Adding metadata fields to the data set
The first step is to add three fields (or columns) to the data set: one each for Focus Keyword, Page Title, and Page Description. You don't need to create a field for Page URL, as explained below.
While creating a new data set field, you need to specify the data type for that column. We suggest Text for Keywords and Page Title. Long Text is a better choice for Page Description because you can enter up to 200 characters.
If you are not sure how to add fields to a data set or how to select field type, read sections 3 and 5 in How to Create a Data Set Online.
1.1 Adding a focus keyword
Each keyword in the data set should be written in Simplified Chinese script. English keywords won't generate positive results because they don't rank well on Chinese search engines.
In the image below, we created a field (keywords). The data set page does not have a translator, so we used a free online translator to generate Simplified Chinese script for the keywords red wine ( 红酒) and Chardonnay (霞多丽).
To learn more about keywords, see:
1.2 Adding a page URL
Unlike the other fields, you don't need to create a unique column in the data set. You can use an existing data set field to complete the Page URL as long as the text in that column follows the required naming conventions: no spaces, special characters, or Chinese characters. Each item in the column must use English characters and have a unique name. If you link the Page URL to a column that does not follow these conventions, your website may experience errors when creating individual details pages.
- Start typing the name of a data set field. The menu displays options as soon as a match is found.
- Select the option you want. The full name of the field auto-populates the field.
- If your prefered option is not in the menu, keep typing until it appears.
In the image below, we type the letter v in the Page URL field and selected the field name Variety in the drop-down menu.
1.3 Adding a page title
Page Title in the data set can be English.
In the image below, we created a data set field called page title. Each row contains a small number of words related to the product.
- If you don't map Page Title to a data set column, the system automatically creates a link called null.
1.4 Adding a page description
Page Description text should be written in Simplified Chinese. In 200 characters or less, describe the page content. Be sure to include your focus keyword.
In the image below, we created a field called Description. Each cell contains a passage that describes the product.
- This Simplified Chinese text was created with a free online translator. These tools often generate satisfactory results for words and phrases. Beyond sentence length passages, accuracy is sometimes questionable. For long descriptions, we recommended using human translators.
2 Checking the metadata
There are two ways to verify the data mapping.
2.1 Look for indicators
Open the Settings page and look for the visual indicators of proper mapping:
- the mapping icon has a green dot
- a green checkmark displays next to a field
Red dots and X marks indicate missing data mappings.
2.2 Inspect the file
You can inspect a template page to see if the metadata has been mapped.
- Open the Website Content page and locate the updated Details template.
- Click the number of pages next to the template page name. The Website Content page displays.
- Hover the mouse pointer on one page. A menu displays.
- Click Edit Data. The Edit Data panel displays.
- Scroll down the Edit Data panel. You can see the fields and metadata.