---
title: "Inserting content in your page template"
manual: "Fluid Styled Content"
version: "main"
permalink: "https://docs.typo3.org/permalink/typo3/cms-fluid-styled-content:inserting-content-page-template@main"
source: "FirstSteps/DisplayContent.rst"
rendered: "2026-10-03T08:19:49+00:00"
---

# Inserting content in your page template {#inserting-content-page-template}

To get the different columns from the backend displayed in the frontend
you can use predefined [CONTENT](https://docs.typo3.org/m/typo3/reference-typoscript/main/en-us/ContentObjects/Content/Index.html#cobj-content) objects or
the [DatabaseQueryProcessor](https://docs.typo3.org/m/typo3/reference-typoscript/main/en-us/DataProcessing/DatabaseQueryProcessor.html#databasequeryprocessor).

It is advised to make all your changes in a custom extension, visit the
[site package documentation](https://docs.typo3.org/m/typo3/tutorial-sitepackage/main/en-us/Index.html) to find out more.

## Based on the FLUIDTEMPLATE content object (cObj) {#inserting-content-page-template-fluidtemplate}

```typoscript
lib.dynamicContent = COA
lib.dynamicContent {
   10 = LOAD_REGISTER
   10.colPos.cObject = TEXT
   10.colPos.cObject {
      field = colPos
      ifEmpty.cObject = TEXT
      ifEmpty.cObject {
         value.current = 1
         ifEmpty = 0
      }
   }
   20 = CONTENT
   20 {
      table = tt_content
      select {
         orderBy = sorting
         where = {#colPos}={register:colPos}
         where.insertData = 1
      }
   }
   90 = RESTORE_REGISTER
}

page = PAGE
page {
   10 = FLUIDTEMPLATE
   10 {
      templateName = Default
      templateRootPaths {
         0 = EXT:example_package/Resources/Private/Templates/Page/
      }
      partialRootPaths {
         0 = EXT:example_package/Resources/Private/Partials/Page/
      }
      layoutRootPaths {
         0 = EXT:example_package/Resources/Private/Layouts/Page/
      }
   }
}
```

```html
<f:layout name="Default" />
<f:section name="Main">
   <f:cObject typoscriptObjectPath="lib.dynamicContent" data="{colPos: '0'}" />
</f:section>
```

## Next step {#next-step}

You can start [adding content elements](https://docs.typo3.org/permalink/typo3/cms-fluid-styled-content:content-elements@main) or make further
[configurations](https://docs.typo3.org/permalink/typo3/cms-fluid-styled-content:configuration@main).
