XML Templates
Test Your Knowledge
Exercise: Create an XML template with multiple-content areas
- Create an XML template and save it.
- Create a page with this XML template.
- Preview the page and publish it.
- Add several content placeholders in the template.
- Create another XML template with several content placeholders, too.
- Try switching between these two templates on pages.
- View the content in the different content areas of the page.
Note:Ifthecontentdisappears,makesureyouarenotusingdifferentIDs.
Exercise: Use external CSS, JavaScript and media files in XML templates
- Upload CSS, JavaScript and image files you are going to use in XML templates to the server.
- Edit an XML template and insert links to these files.
- Make sure that these links will be correctly processed on the front-end.
- Create a page based on this template.
- Preview the page and make sure that the resource files you linked to in the template are rendered and used properly.
Exercise: Localize an XML template
- Make sure you have two languages installed on your website.
- Create an XML template with some content, which includes some text and images.
- Localize the text by using .NET resource files and a proper XML template element.
- Localize the use of images in the template by specifying different images for different languages.