DEPRECATION WARNING

This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.

EXT: constant_editor

Author:Kasper Skårhøj
Created:2002-11-01T00:32:00
Changed by:Stig Nørgaard Jepsen
Changed:2006-06-02T18:58:46
Author:Stig Nørgaard Færch
Email:stig@altforintet.dk
Info 3:
Info 4:

EXT: constant_editor

Extension Key: constant_editor

Copyright 2000-2002, Stig Nørgaard Færch, <stig@altforintet.dk>

This document is published under the Open Content License

available from http://www.opencontent.org/opl.shtml

The content of this document is related to TYPO3

- a GNU/GPL CMS/Framework available from www.typo3.com

Table of Contents

EXT: constant_editor 1

Introduction 1

What does it do? 1

Screenshots 1

Users manual 2

FAQ 2

Administration 2

FAQ 3

Introduction

What does it do?

This extension is a improved stand-alone version of the WebTemplate, Constant Editor.The main improvement is that it's possible to give non-admins access to the editor. It's also possible to restrict access if you don't want to give full access to all the constant categories. It's even possible to deny access/disable specific constants.

Screenshots

img-1

Users manual

Generally there are three places an admin can setup the level of access to the constant editor. The first place is in the setup page of the extension in the extension manager (screenshot).

On this setup page we have two levels which define the restrictions. The master level and a default overrideable level. They both work the same way. First you choose if you want to allow or deny access and then you specify some categories. If you choose allow access, the chosen categories will be the only accessible categories. Deny is the opposite, - here all but the selected categories will be accessible.

The difference between master and the default settings are:The master settings are non-changeable. This means that when you restrict access on certain categories, you will not be able to change this in any way later on (by user or page tsconfig). This setting is made so it's possible to permanent prevent access to categories which non-admins never should have access to.The default settings restrict access on the categories that are left after the master setting restriction. This setting can be overrided by user or page tsconfig settings. This is described in Administration section.For a non-admin be-user to have access to the extension, the admin has to give access to the Constant Editor module.

FAQ

- Possible subsections: FAQ

Administration

Important note about cache

To make the Constant Editor work properly, you'll have to set:options.clearCache.all = 1Either as UserTS(makes most sense) or PageTS.

If you don't do this, the changes made in the Constant Editor, will not appear instantly.

Category restriction

It's possible to override the default restriction which is set up in extension manager. It works almost the same way as in the extension manager with a small difference. In the extension manager you choose either deny or allow mode. But here you are able to choose both modes. It's not really an advantage or a disadvantage for that matter, but that is just the way it works.

The syntax is like this: mod.web_constanteditor.categories.allow = advanced,content

Here we allow access to advanced and content categories. All other categories will be disabled.If deny was used instead, we would have access to everything except the categories advanced and content.

mod.web_constanteditor.categories.deny= advancedmod.web_constanteditor.categories.allow = advanced,content

If we have both deny and allow, the restrictions are run right after each which means that we will only have access to content in this example (as advanced is already filtered by deny).

Constant restriction

It's also possible to make restrict settings on the constants themselves. This is done by categories.

This is the syntax: mod.web_constanteditor.constants.content.allow = content.defaultHeaderType,styles.content.links.extTarget

Here we allow the constants content.defaultHeaderType and styles.content.links.extTarget in the category content. All other constants in this category will not be displayed.

It's also possible to use deny as in the other examples.

FAQ

- Possible subsections: FAQ

img-2 EXT: constant_editor - 2