M
M
Mikhail2018-09-19 11:19:58
1C-Bitrix
Mikhail, 2018-09-19 11:19:58

How to remove the input of unnecessary parameters in the settings in Bitrix through the component template?

I use standard components for various purposes, and some have extra input fields when visually customizing the component. Because of 1-2 parameters, it is naturally pointless to create your own component, but I want everything to be beautiful. I need to remove extra parameters and insert my own input through the template, so as not to
change .parameters.php in the component itself .

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander, 2018-09-19
@idruweb

Hide with styles or jQuery

A
Alexander, 2018-09-19
Madzhugin @Suntechnic

No way. The .parameters.php file in the component is processed by the engine. main module. There is no way to intercept or replace the archive without interfering with the kernel.
True, suspecting there are tricks that can be used without interfering with the kernel, but these are crutches and I will not advise them. But if you want to figure it out yourself, you need (/bitrix/modules/main/classes/general/component_util.php) CComponentUtil::GetComponentProps. Look at LPA::Process for example.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question