---
title: "TypoScript"
manual: "Pforum"
version: "8.0"
permalink: "https://docs.typo3.org/permalink/jweiland/pforum:typoscript@8.0"
source: "Configuration/TypoScript/Index.rst"
rendered: "2026-11-23T07:45:44+00:00"
---

# TypoScript {#typoscript}

`pforum` needs some basic TypoScript configuration. To do so, you have to add an extension template
("+ext template") to either the root page of your website or to the specific page that contains the `pforum`
plugin.

1.  Locate the page

    Decide where you want to insert the TypoScript template. Either the root page or the page with the `pforum`
    plugin works fine.
1.  Create a TypoScript template

    Switch to the Template module and select the page you chose above in the page tree. Choose
    `Click here to create an extension template` from the right-hand frame. In the TYPO3 community, this is also
    known as an "+ext template".
1.  Add the static template

    Choose `Info/Modify` from the upper select box and then click the `Edit the whole template record` button
    below the small table. On the `Includes` tab, locate the `Include static (from extension)` section. Use the
    search field below `Available items` to search for `pforum`. Usually only one record is shown. Select it to
    move that record to the left.
1.  Save

    If you want, give the template a name on the `General` tab, then save and close it.
1.  Open the Constant Editor

    Choose `Constant Editor` from the upper select box.
1.  `pforum` constants

    Choose `PLUGIN.TX_PFORUM` from the category select box to show only `pforum`-related constants.
1.  Configure constants

    Adapt the constants to your needs.
1.  Configure TypoScript

    Since constants only allow you to modify a fixed selection of TypoScript, switch back to `Info/Modify` and
    click `Setup`. Here you can configure all `pforum`-related settings.

## View {#view}

### view.templateRootPaths {#view-templaterootpaths}

Default: Value from constants `EXT:pforum/Resources/Private/Templates/`

You can override our templates with your own site package extension. We recommend changing this value in the
TypoScript constants.

### view.partialRootPaths {#view-partialrootpaths}

Default: Value from constants `EXT:pforum/Resources/Private/Partials/`

You can override our partials with your own site package extension. We recommend changing this value in the
TypoScript constants.

### view.layoutsRootPaths {#view-layoutsrootpaths}

Default: Value from constants `EXT:pforum/Resources/Layouts/Templates/`

You can override our layouts with your own site package extension. We recommend changing this value in the
TypoScript constants.

## Persistence {#persistence}

### persistence.storagePid {#persistence-storagepid}

Set this value to a Storage Folder (PID) where you have stored the records.

Example: `plugin.tx_pforum.settings.storagePid = 21,45,3234`

## Settings {#settings}

### settings.auth {#settings-auth}

Default: 1 (no authentication)

Example: `plugin.tx_pforum.settings.auth = 2`

Define whether creating new topics and posts requires an authenticated frontend user.

-   Value `1`: No authentication. Everyone can create topics and posts. We recommend this for intranet environments.
-   Value `2`: An authenticated frontend user is required to create topics and posts.

> [!NOTE]
> If you choose `1`, a new pforum user record is created for every topic and post.

### settings.emailIsMandatory {#settings-emailismandatory}

Default: 0

Example: `plugin.tx_pforum.settings.emailIsMandatory = 1`

If activated, an additional input field is displayed where the user must enter a valid email address.
Useful in case of `auth = 1`. The email address is added to the pforum user record.

### settings.usernameIsMandatory {#settings-usernameismandatory}

Default: 0

Example: `plugin.tx_pforum.settings.usernameIsMandatory = 1`

If activated, an additional input field is displayed where the user must enter a username.
Useful in case of `auth = 1`. The username is added to the pforum user record.

### settings.useImages {#settings-useimages}

Default: 0

Example: `plugin.tx_pforum.settings.useImages = 1`

If activated, two additional upload fields are added to the form for new topics and posts.

### settings.uidOfAdminGroup {#settings-uidofadmingroup}

Default: 0

Example: `plugin.tx_pforum.settings.uidOfAdminGroup = 14`

By default, hidden topic and post records are activated in the backend module of pforum. Members of this
frontend user group see hidden topics and posts in the frontend and can activate them.

### settings.uidOfUserGroup {#settings-uidofusergroup}

Default: 0

Example: `plugin.tx_pforum.settings.uidOfUserGroup = 26`

If authentication is required (`auth = 2`), only members of this frontend user group can create new topics and
posts. With `0` every logged-in frontend user can create topics and posts.

### settings.pidOfDetailPage {#settings-pidofdetailpage}

Default: 0

Example: `plugin.tx_pforum.settings.pidOfDetailPage = 26`

By default, all detail views are displayed on the same page as the forum record list. For design reasons,
it may make sense to define a dedicated detail view page.

### settings.topic.hideAtCreation {#settings-topic-hideatcreation}

Default: 0

Example: `plugin.tx_pforum.settings.topic.hideAtCreation = 1`

Site setting: `pforum.topic.hideAtCreation`

By default, every new topic created in the frontend is directly visible. If you want to prevent this, activate
this option. The topic is activated by an administrator or by its author, see `activateByAdmin`.

### settings.topic.activateByAdmin {#settings-topic-activatebyadmin}

Default: 0

Example: `plugin.tx_pforum.settings.topic.activateByAdmin = 1`

Site setting: `pforum.topic.activateByAdmin`

If activated, hidden topics are activated by members of the group `uidOfAdminGroup` or in the backend module only.
Otherwise, the author gets a link to activate the topic by mail (`auth = 1` and `emailIsMandatory = 1`).

### settings.post.hideAtCreation {#settings-post-hideatcreation}

Default: 0

Example: `plugin.tx_pforum.settings.post.hideAtCreation = 1`

Site setting: `pforum.post.hideAtCreation`

By default, every new post created in the frontend is directly visible. If you want to prevent this, activate
this option. The post is activated by an administrator or by its author, see `activateByAdmin`.

### settings.post.activateByAdmin {#settings-post-activatebyadmin}

Default: 0

Example: `plugin.tx_pforum.settings.post.activateByAdmin = 1`

Site setting: `pforum.post.activateByAdmin`

If activated, hidden posts are activated by members of the group `uidOfAdminGroup` or in the backend module only.
Otherwise, the author gets a link to activate the post by mail (`auth = 1` and `emailIsMandatory = 1`).

### settings.new.uploadFolder {#settings-new-uploadfolder}

Default: 1:/user_upload/tx_pforum/

Site setting: `pforum.new.uploadFolder`

Only valid if you have activated `useImages`. Define the default storage location for uploaded images in the
frontend.

### settings.new.richText.\* {#settings-new-richtext}

Site settings: `pforum.form.richText.enable`, `pforum.form.richText.elements` and
`pforum.form.richText.translationsPath`

Enables the rich text editor for the description of topics and posts, see [Rich text editor in the frontend forms](https://docs.typo3.org/permalink/jweiland/pforum:frontend-rich-text-editor@8.0).

### settings.email.templateRootPaths {#settings-email-templaterootpaths}

Default: `0 = EXT:pforum/Resources/Private/Templates/Email/`

Template root paths of the mails of pforum, see [Mails](https://docs.typo3.org/permalink/jweiland/pforum:frontend-management-mails@8.0). Add your own path with a
higher key to override a template.

### settings.image.\* {#settings-image}

Default:

```typoscript
settings.image {
  width = 120c
  height = 90c
  minWidth = 120
  maxWidth = 120
  minHeight = 90
  maxHeight = 90
}
```

With these values you can manipulate the topic and post image size.

### settings.pageBrowser.itemsPerPage {#settings-pagebrowser-itemsperpage}

Default: 15

Example: `plugin.tx_pforum.settings.pageBrowser.itemsPerPage = 10`

If there are a lot of records, the page browser helps you navigate through all these records.
Define the maximum number of records to display per page.
