Skip to content

Commit

Permalink
renamed
Browse files Browse the repository at this point in the history
  • Loading branch information
mnoskov committed Aug 10, 2017
1 parent 82b01a2 commit 1a573ae
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions README.en.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

## Content Blocks for Evolution CMS
## Page Builder for Evolution CMS

Other languages: <a href="https://github.com/sunhaim/contentblocks/blob/master/README.md">Russian</a>
Other languages: <a href="https://github.com/mnoskov/pagebuilder/blob/master/README.md">Russian</a>

The configuration for the blocks is taken from the config folder. To create a new block, you need to create a .php file in this folder, which should return an associative array. The structure of the array is as follows:

Expand Down Expand Up @@ -64,4 +64,4 @@ In the second case, the output of these elements in the parent template can be u

#### Configuration examples

Examples of configuration can be found <a href="https://github.com/sunhaim/contentblocks/tree/master/assets/plugins/contentblocks/config" target="_blank">here</a>
Examples of configuration can be found <a href="https://github.com/mnoskov/pagebuilder/tree/master/assets/plugins/pagebuilder/config" target="_blank">here</a>
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Page Builder for Evolution CMS

Other languages: <a href="https://github.com/sunhaim/pagebuilder/blob/master/README.en.md">English</a>
Other languages: <a href="https://github.com/mnoskov/pagebuilder/blob/master/README.en.md">English</a>

Плагин позволяет разработчику определить набор блоков с определенной разметкой и списком полей, чтобы контент-менеджер использовал те блоки, которые считает нужным, со своим наполнением.

Expand Down Expand Up @@ -159,7 +159,7 @@ assets/templates/

### Примеры конфигурации

Примеры конфигурации можно найти <a href="https://github.com/mnoskov/pagebuilder/tree/master/assets/plugins/contentblocks/config" target="_blank">здесь</a>. (Чтобы примеры блоков стали доступны для выбора, нужно переименовать файлы *.php.sample в *.php)
Примеры конфигурации можно найти <a href="https://github.com/mnoskov/pagebuilder/tree/master/assets/plugins/pagebuilder/config" target="_blank">здесь</a>. (Чтобы примеры блоков стали доступны для выбора, нужно переименовать файлы *.php.sample в *.php)

### Сниппет PageBuilder

Expand All @@ -178,7 +178,7 @@ assets/templates/
Плагин отвечает за вывод формы редактирования блоков и имеет следующие параметры:
<table>
<tr><th>Имя параметра</th><th>Значение по умолчанию</th><th>Возможные значения</th></tr>
<tr><td>tabName</td><td>Content Blocks</td><td>Название вкладки на странице редактирования ресурса, в которой будет выводиться форма</td></tr>
<tr><td>tabName</td><td>Page Builder</td><td>Название вкладки на странице редактирования ресурса, в которой будет выводиться форма</td></tr>
<tr><td>addType</td><td>dropdown</td><td>Вид секции для добавления новых блоков, может иметь значения "dropdown", "icons", "images".

Для значения "icons" в конфигурации каждого блока должен быть определен ключ "icon", содержащий класс иконки.
Expand Down
2 changes: 1 addition & 1 deletion install/assets/plugins/PageBuilder.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @category plugin
* @version 1.0.0
* @author sunhaim
* @internal @properties &tabName=Tab name;text;Content Blocks &addType=Add type;menu;dropdown,icons,images;dropdown &placement=Placement;menu;content,tab;tab
* @internal @properties &tabName=Tab name;text;Page Builder &addType=Add type;menu;dropdown,icons,images;dropdown &placement=Placement;menu;content,tab;tab
* @internal @events OnDocFormRender,OnDocFormSave,OnBeforeEmptyTrash,OnDocDuplicate
* @internal @modx_category Manager and Admin
* @internal @installset base,sample
Expand Down
2 changes: 1 addition & 1 deletion install/setup.data.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ CREATE TABLE IF NOT EXISTS `{PREFIX}pagebuilder` (
`values` mediumtext NOT NULL,
`index` smallint(5) unsigned NOT NULL,
PRIMARY KEY (`id`),
KEY `document_id` (`document_id`)
KEY `document_id` (`document_id`,`instance`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;

0 comments on commit 1a573ae

Please sign in to comment.