Skip to main content
All CollectionsAdvanced Guides
Set different template pages in one page creation set
Set different template pages in one page creation set

You can also set the page template from the source file instead of having to select it in the LPagery dashboard.

Jonas Lindemann avatar
Written by Jonas Lindemann
Updated over 3 weeks ago

With LPagery, you can assign different template pages within a single page creation set by using the lpagery_template functional column in your source file. This feature allows you to specify a unique template for each page created, all within one source file. This is especially useful if you want to avoid creating multiple source files for different page creation sessions.

This feature is available for the LPagery Extended plan and above.
Click here to purchase LPagery Pro ->


Using the lpagery_template Column

The lpagery_template column allows you to set the template for each page individually. You can specify the template by using either the post ID or the slug of the template page.

Examples:

  • By Template ID: Input the template’s ID directly in the cell. For example: 30.

  • By Template Slug: Input the slug of the template page. For example: template-name.

Sample Source File

city

service

lpagery_template

New York

Plumbing

30

London

Electrical

45

Tokyo

Window Cleaning

template-name

In this example:

  • The New York page uses the template with ID 30.

  • The London page uses the template with ID 45.

  • The Tokyo page uses the template with the slug template-name.

Benefits of Using lpagery_template

  • Simplified Source File Management: Manage different types of pages with distinct templates, all in one source file, avoiding the need to create separate files for each template.

  • Efficient Page Creation: Customize each page to have its own layout or design based on the template assigned, allowing greater control over page structure.

By setting up your source file with the lpagery_template column, you can ensure that each generated page has the correct layout while keeping your data organized and streamlined.

Did this answer your question?