Skip to content
Snippets Groups Projects
Commit 13c8d5de authored by renatog's avatar renatog Committed by renatog
Browse files

Issue #3274698 by RenatoG: Update the documentation with the attributes per...

Issue #3274698 by RenatoG: Update the documentation with the attributes per page in the dynamic fields
parent d91ac548
Branches
Tags 8.x-1.4
10 merge requests!62Issue #3272848 by RenatoG: When the error appear the field is hidden and the...,!59Issue #3497768: Click JavaScript to close details causes modals to scroll unnecessarily,!35Issue #3366420: \Drupal calls should be avoided in classes,!34Issue #3366420: \Drupal calls should be avoided in classes,!29Issue #3272632 by RenatoG: Add a logic to block and disable the remove item if...,!28Issue #3272632 by RenatoG: Add a logic to block and disable the remove item if...,!23Issue #3272632 by RenatoG: Add a logic to block and disable the remove item if...,!22Issue #3272632 by RenatoG: Add a logic to block and disable the remove item if...,!20Issue #3272632 by RenatoG: Add a logic to block and disable the remove item if...,!7Issue #3320529 by justcaldwell: block_classes_stored setting only retains classes from most recently saved block
......@@ -24,7 +24,7 @@ Hooray for more powerful block theming!
## REQUIREMENTS
------------
The Menu Block requires Block:
The Block Class requires Block:
* Block (https://drupal.org/project/block)
......@@ -32,8 +32,8 @@ The Menu Block requires Block:
## INSTALLATION
------------
* Install as you would normally install a contributed Drupal module. Visit
https://www.drupal.org/node/895232/ for further information.
* Install as you would normally install a contributed Drupal projects. Visit
https://www.drupal.org/node/1897420 for further information.
## CONFIGURATION
......@@ -62,17 +62,29 @@ The Menu Block requires Block:
maxlength but there is a settings where you can modify if necessary. You can
go to Administration » Configuration » Content authoring » Block Class or you
can open the url directly at /admin/config/content/block-class/settings and
there you can select the fieldtype between textfield (default) and textarea.
there you can select the fieldtype between textfield (default) and multiple.
You can select the Maxlength of the field. By default is 255 chars.
* You can enable an option to use attributes, and you're free to customize that
if you want. TO do it you can go to admin/config/content/block-class/settings
if you want. To do it you can go to admin/config/content/block-class/settings
and mark the option "Enable attributes". With that the next time that you go
to block settings page you'll be able to see a textarea where you can insert
your attributes. You need to use key | value format, and one per line. For
example: data-block-type|info
* "Advanded" On this field group that is closed by default you can set the
* Using attributes on block class you can use 10 attributes per block by
default but you can modify this value in the
"Quantity of attributes per block" field.
* There is a block class list where you can see all blocks and theirs
attributes and classes at
Administration » Configuration » Content authoring » Block Class » List
This list can have a lot of items depending on your database. For this reason
there is a pagination and you can define the items per page in the settings
page admin/config/content/block-class/settings and update the field
BLOCK CLASS LIST » Items per page. By default are 50 items.
* "Advanced" On this field group that is closed by default you can set the
array to be used in the Html::cleanCssIdentifier. This one is used to filter
special chars in the classes. You can use one per line using key|value format
example, to replace underline to hyphen:
......
......@@ -30,10 +30,11 @@ function block_class_help($route_name, RouteMatchInterface $route_match) {
$output .= '<dl>';
$output .= '<dt>' . t('Inside of global settings there are some possibilities to be used. The "Default Case" is a field to select a standard of your classes. So if you select "Uppercase and Lowercase" but cases will be accepted. If you select "Uppercase" all classes will be added using uppercase and if you select "Lowercase" all classes added will be added using lowercase. Attention, if you change to only lowercase or only uppercase when save the block all block classes will be updated.') . '</dt>';
$output .= '<dt>' . t('Enable auto-complete: Enabling this option when you are typing will appear an auto-complete for you to select the other classes that you have.') . '</dt>';
$output .= '<dt>' . t('Enable special chars: By default block class will have this option unchecked to block special chars by default. But if you need for any reason you can check this option and it will be accepted.') . '</dt>';
$output .= '<dt>' . t('Qty of classes per block: You can select this number to use in the multiple items. By default is 10 but you can modify if necessary') . '</dt>';
$output .= '<dt>' . t('Field Type: By default the block class is using the field type as a "texfield", with that configuration you can select textarea as well, it\'s recommended if you have many classes per block') . '</dt>';
$output .= '<dt>' . t('The max-length by default is 255, after the 2.0.x version there is a Global Settings Page and you can modify if you need at: /admin/config/content/block-class/settings or Configuration » Content authoring » Block Class') . '</dt>';
$output .= '<dt>' . t('Enable special chars: By default block class will have this option unchecked to block special chars by default. But if you need for any reason you can check this option and it will be accepted.') . '</dt>';
$output .= '<dt>' . t('Enable attributes: Mark this option to be able to use attributes.') . '</dt>';
$output .= '<dt>' . t('Qty of attributes per block: On this field you can define how many attribute field will be implemented per block. By default is 10 but you can increase and decrease if you want.') . '</dt>';
$output .= '<dt>' . t('Maxlengh: In the attributes field group you can insert the maxlengh, by default there is no limit for attributes but you can insert if you want.') . '</dt>';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment