Dynamic Content
Dynamic Content - includes information from the text, title, and seo-danymi. Used to add blocks and seo-data on a page with the results of the filtered data.
Fields
- Object - the object to which it is added dininamichesky content
- Route - route display, to which is added dininamichesky content
- Name - identifier of dynamic content
- Title - The title of the page with dynamic content
- H1 - highlighted an inscription, usually located on top of content
- Meta-description - description pages with dynamic content, typically used in the search snippet
- Content Block Name - the block ID
- Content - text block
Creation:
- You must be in the admin panel menu item Dynamic content (/backend/dynamic-content/index)
- Press the Add button
- Fill out the fields and click on the Save button
Edit:
- You must be in the admin panel menu item Dynamic content (/backend/dynamic-content/index)
- Click on the icon pencil
- Fill out the fields and click on the Save button
Removal:
- You must be in the admin panel menu item Dynamic content (/backend/dynamic-content/index)
- Click on the basket icon
Conclusion:
The easiest way to bring dynamic content to a page:
if (isset($this->blocks['ID'])) {
echo Html::tag('div', $this->blocks['ID']);
}
where ID - the name of the content block.