Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

content.ini [RelationAssignmentSettings]

The settings of [RelationAssignmentSettings] in content.ini: DefaultAssignment, ClassSpecificAssignment

Download as PDF

Address: https://doc.exponential.earth/learninminutes/exphelp/viewer/examples/ini-settings/content/RelationAssignmentSettings.md

On this page

content.ini [RelationAssignmentSettings]

The block [RelationAssignmentSettings] of settings/content.ini, with 2 setting(s).

Never edit settings/content.ini itself: an update replaces it. Put the settings you change in an override, which wins over the shipped file:

  • settings/override/content.ini.append.php for every siteaccess,
  • settings/siteaccess/<siteaccess>/content.ini.append.php for one siteaccess,
  • extension/<extension>/settings/content.ini.append.php in an extension (read when the extension is active).

DefaultAssignment

Default assignment for new related objects, possible values are

  • A Node ID - Place all new objects under this node
  • A node path - The placement of the parent node by a path, e.g. media/files
  • root - The root of the tree
  • users - The root of the user tree
  • media - The root of the media tree
  • none - DEPRECATED

Multiple assignments are not allowed.

Default: root.

<?php /* #?ini charset="utf-8"?
# settings/override/content.ini.append.php
[RelationAssignmentSettings]
DefaultAssignment=root
*/ ?>

ClassSpecificAssignment

Automatic assignments for specific classes.

Each line consists of three or two values separated by semi-colon.
First two values are lists of elements which are comma separated.

First value is the class identifier, second is the assignment (see above for
values). An optional third is the main node in case you upload to many
locations. If the third parameter is not set, then the first element of
the value 2 will be used as main node.

Classes are either specified with identifier, ID or group_ID
The items are searched in order so the first to match will be used,
this means that class IDs should come before class group IDs.

If the same class is specified in many lines, then will be used the first
match where user has an access to all listed nodes.

Default: a list of 8: user,user_group;users/guest_accounts, image;media/images, video;media/multimedia, file;media/files, quicktime;media/multimedia, windows_media;media/multimedia, real_video;media/multimedia, flash;media/multimedia.

<?php /* #?ini charset="utf-8"?
# settings/override/content.ini.append.php
[RelationAssignmentSettings]
# an empty "ClassSpecificAssignment[]" first replaces the shipped list; without it the items are added
ClassSpecificAssignment[]
ClassSpecificAssignment[]=user,user_group;users/guest_accounts
ClassSpecificAssignment[]=image;media/images
ClassSpecificAssignment[]=video;media/multimedia
ClassSpecificAssignment[]=file;media/files
ClassSpecificAssignment[]=quicktime;media/multimedia
ClassSpecificAssignment[]=windows_media;media/multimedia
ClassSpecificAssignment[]=real_video;media/multimedia
ClassSpecificAssignment[]=flash;media/multimedia
*/ ?>

Generated by ./console exp:help:examples from settings/content.ini. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x