new

altHelper

Helper when working with the ALT attribute
Free
Download the package from the manager of your site.
How to download?
Packages
1
Downloads
5
Автор дополнения
Packages
1
Downloads
5
Version 1.0.1-beta
Release date 04.12.2019
Downloads 5
Views 15
ALT is one of the attributes of the IMG tag, it is an alternative text for the image. In search engines, not only text is indexed, but also graphic information and images – one of the sources of additional traffic. Besides the fact that image attributes contribute to search engine optimization, they also bring meaning to the images, allowing the user to understand what is depicted on them.

Not everyone and not always fill these attributes, sometimes due to misunderstanding of their importance, and sometimes simply because of inattention. My package solves this problems. By installing it, you will be able to configure the test attributes and/or use the AutoFill.

Component Settings:

althelper_activate — Enables or disables package work.
althelper_auto_title — If enabled, the title will be added to the image with a value from alt.
althelper_disallow_save — If enabled, the user will not be able to save the resource if alt is missing, if it is empty or has the wrong format.
althelper_alt_from_title — If enabled, the empty alt tags will automatically receive a value from Pagetitle or Longtitle (if the last one is filled).

When you turn on the althelper_disallow_save setting, the package automatically checks the values of the alt attribute and prevents you from saving the resource if the value has the following formats:

alt=""
alt=" "
alt=" something"
alt="something "


Work levels

Actually, the component has 4 modes of operation, they are all governed by the settings. Initially, all settings are disabled.

althelper_activate — Level 0. The component simply turns on and nothing else happens.
althelper_auto_title — Level 1. The component creates the title attribute and duplicates the value from the alt attribute. If the alt attribute is missing, title is not created.
althelper_alt_from_title — Level 2. If the user forgot to specify alt, it is created automatically from Pagetitle or Longtitle.
althelper_disallow_save — Level 3. The hardest level, checks for the presence of the alt attribute, for emptiness and correctness of filling. Returns either a successful resource save or a eror window with description.

1.0.1-beta [12 April 2019]

  • Fix work with modParser & pdoParser
  • Fix for some regular expression
  • Fix double title attribute

1.0.0-beta [10 April 2019]

  • I was born