Documentation

InputTags

string
InputTags(
	string sName,
	string sValue = '',
	array  arSites = array(),
	string sHTML = '',
	string sId = ''
);

Function returns HTML code to enter tags with autocompletion support.

Function parameters

Parameter Description
sName Name of HTML control element.
sValue Starting value of the control element. Optional parameter. By default - empty string.
arSites Array of site IDs for which the tag cloud will be built. Optional parameter. By default, the current site is taken.
sHTML Arbitrary HTML code that will be inserted into the control element. Optional parameter. By default - empty string.
sId Control element identifier (id). Optional parameter. Identifier will be generated automatically by default.

Returned value

Function returns HTML code for the control element.

Examples of use

<?
echo InputTags("TAGS", $arElement["TAGS"]);
?>


© «Bitrix24», 2001-2022
Up