X
X
xonar2020-03-06 10:22:43
1C-Bitrix
xonar, 2020-03-06 10:22:43

How to set an ID for an element in Bitrix?

Hello.

I can't figure out how to add an ID and other attributes to the link. You need to add to the link such values ​​as id="cases_send" data-toggle="modal" data-target="#sidebar-popup"

From the documentation I understood how to add an address, a name to the link, but I did not find how the id and attributes.

Here is the link text and address:
"LINK_NAME" => "Contact us",
"LINK_URL" => "#",
"LINK_ID" => "1" //Something like this I mean should be.

Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mikhail, 2020-03-06
@xonar

in a template also you add, what for parameters?
if you need a parameter, then first you add your parameter to .parameters.php and in the template you display this parameter as a link

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question