ALite CMS 44.1
Language: 
ALite CMS

Articles

Algorithm for generating metatag keywords

31.12.2019 16:45  rating: 0 

Automatic filling occurs only when the Meta-tag keywords field in the publication (or section) is not filled.

Only part of the page text is used for analysis, the tags 'head', 'meta', 'link', 'script', 'style', 'iframe', 'form', 'button', 'textarea' and tags with classes are excluded 'menu-string' , 'menu-horizontal-dropdown ', 'menu-vertical ', 'more-info ', 'footer ', 'alc-login ', 'user-finds-container ', 'pages-container ', 'social-auth ', 'share-buttons-site ', 'share-buttons-forum ', 'item-like ', 'comments-container ', 'date ', 'rss-container ', 'alc-item-tags' , 'all-items', 'feedbacks-container ', 'order-link-container ', 'orders-container ', 'currencys-container ', 'comments-last-container ', 'forum-last-messages', 'forum-info-container ', 'forum-message-user ', 'alc-go-up ', 'interdiction-access-info ', 'data-sort ', 'kcaptcha ', 'alc-cookies-info ', 'alc-system-messages', 'cke_editable', 'cache-mark'.

The ufc_clear_tags_from_rubric_meta_tag function has been introduced in the ufunctions_custom.php file to further exclude blocks from analysis.

Ufc_clear_tags_from_rubric_meta_tag function example

function ufc_clear_tags_from_rubric_meta_tag () {
    $clear_tags = array ('tag1', 'tag2');
    $clear_class = array ('my-class1', 'my-class2');
    $clear_id = array ('my_id1', 'my_id2');
    return array ('clear_tags' => $ clear_tags, 'clear_class' => $ clear_class, 'clear_id' => $ clear_id);
}

All tags with the names 'tag1', 'tag2', all tags with the classes 'my-class1', 'my-class2', all tags with the ID 'my_id1', 'my_id2'  will be excluded from processing.

Tags: #Metatags
RSS  RSS