Login / Status
developer.Resource
Home . Documentation . Document Library . Extension Manuals
Sponsors
hosted by punkt.deTYPO3 and Open Source Magazine

Chapter 1. EXT: [drecomm] Country access

Extension Key: dre_countryxs

Copyright 2005-2006, Bas Hoonhout, <bas.hoonhout@drecomm.nl>

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

1.1. Introduction

ion

What does it do?

Installing this extension will result in four major changes in the TYPO3 backend and frontend:

  • The management of countries will be centralized, like it's done with languages. Countries can be defined at the root of the TYPO3 installation, the place where languages are defined as well.

  • Since the definition of countries is centralized, the country field in the fe_users table is changed from an open text field to a select field. The select field is filled with the global defined countries.

  • Each content element has two extra fields. With the first field it is possible to make a selection from the global defined countries. The specific content will, by default, NOT be visible to users that are from one of these countries. The second field is a checkbox which invert the selection, when checked. So, with the checkbox checked ONLY users from the selected countries will see the specific content. When no user is logged on or no country is specified for that specific user, all content is visible.

  • Since countries in the fe_users table are now selected, they are stored as ID's. Via the Extension Manager (select 'dre_countryxs' extension and 'Country conversion' from the menu) it is possible to convert current fulltext country values to id's and the other way around.

Screenshots

Countries are globally defined and appear in a list on the global page of the TYPO3 installation:

Countries are nothing more than labels that can be created using the following form:

Two fields will be added to all content elements in the TYPO3 installation. The two field makes it possible to hide or show content to particular users based on the country information in their fe_user record: