в папку с конкретной темой положить файл ./.parameters.php и и файлы ./lang/ru/.parameters.php ./lang/en/.parameters.php
./.parameters.php
./.parameters.php
<?if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) die(); $properties = CIBlockProperty::GetList(Array("sort"=>"asc", "name"=>"asc"), Array("ACTIVE"=>"Y", "IBLOCK_ID"=>$arCurrentValues["IBLOCK_ID"])); while ($prop_fields = $properties->GetNext()){ $elements[$prop_fields["ID"]]=$prop_fields["NAME"]; } $arTemplateParameters = array( "PROPERTY_ADRESS" => Array( "NAME" => GetMessage("T_PROPERTY_ADRESS"), "TYPE" => "LIST", "VALUES" => $elements, "REFRESH" => "Y", ), "PROPERTY_PHONE" => Array( "NAME" => GetMessage("T_PROPERTY_PHONE"), "TYPE" => "LIST", "VALUES" => $elements, "REFRESH" => "Y", ), "PROPERTY_FAX" => Array( "NAME" => GetMessage("T_PROPERTY_FAX"), "TYPE" => "LIST", "VALUES" => $elements, "REFRESH" => "Y", ), "PROPERTY_EMAIL" => Array( "NAME" => GetMessage("T_PROPERTY_EMAIL"), "TYPE" => "LIST", "VALUES" => $elements, "REFRESH" => "Y", ), ); ?>./lang/ru/.parameters.php
<? $MESS["T_PROPERTY_ADRESS"] = "Свойства адреса"; $MESS["T_PROPERTY_PHONE"] = "Свойства телефон"; $MESS["T_PROPERTY_FAX"] = "Свойства факса"; $MESS["T_PROPERTY_EMAIL"] = "Свойства Email"; ?>./lang/en/.parameters.php
<? $MESS["T_PROPERTY_ADRESS"] = "property adress"; $MESS["T_PROPERTY_PHONE"] = "proropery phone"; $MESS["T_PROPERTY_FAX"] = "property fax"; $MESS["T_PROPERTY_EMAIL"] = "property Email"; ?>
Комментариев нет:
Отправить комментарий