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

Issue #3272648 by RenatoG: Update the help documentation with the multiple...

Issue #3272648 by RenatoG: Update the help documentation with the multiple fields, advanced filter, special chars and qty of attributes per block
parent 003b71b1
No related branches found
Tags 2.0.0-beta8
No related merge requests found
......@@ -23,16 +23,21 @@ function block_class_help($route_name, RouteMatchInterface $route_match) {
$output .= '<dl>';
$output .= '<dt>' . t("To add a class to a block, simply visit that block's configuration page at Administration » Structure » Block Layout and click on Configure of the desired 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: <a href="/admin/config/content/block-class/settings">Configuration » Content authoring » Block Class</a>') . '</dt>';
$output .= '<dt>' . t('You can also add attributes in the multiple attributes field available in the block list as well. You can set the key and the value of the attributes that you want.') . '</dt>';
$output .= '<dt>' . t("Remember that you can't use id attribute because is the Drupal's default, and you can't use attribute class because there is a specific field to use in class.") . '</dt>';
$output .= '</dl>';
$output .= '<h3>' . t('Global Configuration') . '</h3>';
$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('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('Allow only letters and numbers: If you select this checkbox the blocks will be filtered to allows only letters and numbers') . '</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('Field type: Inside of field group of attributes you can configure the field type. By default the attributes are you using textarea because with that you can insert more items using one per line.') . '</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>';
$output .= '<dt>' . t('Advanced: You can use the filter "Filter to HTML Clean CSS Identifier" to put a list of chars to be replaced by default in the class Html::cleanCssIdentifier') . '</dt>';
$output .= '</dl>';
$output .= '<h3>' . t('Block List') . '</h3>';
$output .= '<dl>';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment