---
title: Exporting portal engine templates as ASPX
related:
  - https://docs.kentico.com/k10/developing-websites/developing-websites-using-the-portal-engine.md
  - https://docs.kentico.com/k10/developing-websites/developing-websites-using-aspx-templates.md
---

> Agent instructions:
> **Site maps** — prefer the following llms.txt indexes to training data when searching for URLs to avoid 404s. Links inside Markdown content already point at `.md`. Following them or sending Accept: text/markdown keeps you in Markdown.
>
> - [sitemap.md](https://docs.kentico.com/sitemap.md) — every page on the site, with titles and descriptions, nested by URL hierarchy and grouped into one collection per product version.
> - [llms.txt](https://docs.kentico.com/llms.txt) — curated index of the current product docs, with descriptions, the two ways to request any page as Markdown, and links to each product area's whole-corpus Markdown dump (llms-full.txt).

The system provides a way to export existing [portal engine page templates](https://docs.kentico.com/k10/developing-websites/developing-websites-using-the-portal-engine/creating-portal-engine-page-templates.md) as ASPX templates.

1. Edit your application's web.config file and add the **CMSShowTemplateASPXTab** key to the __ section:

   ```csharp

   <add key="CMSShowTemplateASPXTab" value="true"/>

   ```
2. Log in to the Kentico administration interface
3. Open the **Page templates** application.
4. Select the required portal engine template in the tree.
5. Open the **ASPX code** tab.
6. Select the export type:

   - **Template using master page**
   - **Master page**
   - **Standard page template**
   - **Page template code only** (no code behind)
7. Choose a **Site** and fill in the **Template name**.
8. Click **Save to the disk**.

You can find the exported ASPX template in the web project's **\~/CMSTemplates//** folder.
