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.
- 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":
The rest of the "Add Container" form:
- 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.
- 09.07.22IT / Misc Convert office files DOC, DOCX, DOCM, RTF to DOCX, DOCM, DOC, RTF, PDF, HTML, XML, TXT formats without loss and markup changes
- 07.07.22IT / Safety How to protect PHP, JS, HTML, CSS source code - obfuscation, minification, compression and encryption
- 06.07.22IT / Safety Connection not secure, problem with Lets Encrypt - how to fix expired 09/30/2021 DST Root CA X3, remove it manually and install ISRG Root X1. Example on MS Windows 7
- 08.07.21IT / Misc How to make a free translation for a website without an API, translate documents in Google Translate
- 06.07.21IT / Misc How to make a subscription button on a website, a subscriber base and automatic mailing