Sign in Registration
ruen

Container

Table of contents

This entity allows you to add different content that can be displayed in different regions of the site. The number of regions and their location depends on the included theme.

To go to the management page, you must select the appropriate link in the main administrative menu - a list of all containers will be displayed, if any, or a message about their absence will be displayed. A container can also be called a block in another way.

container-list

  • Add container - link to the page for adding a container;
  • Name - name of the container;
  • Entity - the entity that provides the container;
  • Title - displayed title;
  • Actions - Links to change and delete the container are available.

To add a new container, click "Add container":

container-add-part-1

The rest of the "Add Container" form:

container-add-part-2

  • Name - enter a unique name for the container;
  • Title - displayed title;
  • Content - contents of the container (you can enter PHP code, for which you need to specify the opening php tag);
  • Region - the region to display (provided by the current theme), if left "Not Specified", the container will be added, but will not be displayed anywhere;
  • Show - condition for displaying the container (you can use the * sign and regular expressions for addresses): "everywhere" - showing the container everywhere, "where content type " - the type of content where the container will be shown, "where is the address" - the address where the container will be shown (if nothing is specified after the equal sign, the container will be shown only on the main page), "except address" - excluded address for display, container will be shown at other addresses;
  • Container weight - based on this value, containers are sorted and displayed, the larger the value, the lower the container will be in the list, you can enter negative numbers by adding a minus sign in front of the number (by default, the weight is 0 );
  • Access (roles) - which user roles the container will be shown to.

Containers can be created both manually and programmatically - for example, entities can provide them.

Latest articles

Popular sections

Eqsash (Tools)

Android app - VK LAST USER ID, отучитель от зависимости и т.д.:
Available on Google Play

Amessage (Communication)

Login to the web version
Android app:
Available on Google Play

Share this

Subscribe to

YouTube

Books

IT notes - In simple language about the most necessary things (HTML, CSS, JavaScript, PHP, databases, Drupal, Bitrix, SEO, domains, security and more), PDF, 500 p.