Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 1.09 KB

02-config.md

File metadata and controls

39 lines (26 loc) · 1.09 KB

Configuration – Link Registry Bundle

  1. Installation
  2. Configuration
  3. Usage

Configuration

Setup your desired page types in the file:

# app/config/config.yml
codefog_link_registry:
    types: ["app_login", "app_logout", "app_profile"]

Make sure to also add the backend labels:

// languages/en/tl_cfg_tags.php
$GLOBALS['TL_LANG']['tl_cfg_link_registry']['types'] = [
    'app_login'   => ['Login page', 'Please choose the page with login module on it.'],
    'app_logout'  => ['Logout page', 'Please choose the page with logout module on it.'],
    'app_profile' => ['Member profile page', 'Please choose the page with member profile module on it.'],
];

Backend setup

In the backend first you have to create a registry in the Layout > Link registries module. Then in its settings assign pages to the certain link types. You can assign internal pages as well as external URLs.

Once your registry is ready assign it in the website root settings.