D
D
DenPolosin2017-08-22 13:50:49
1C-Bitrix
DenPolosin, 2017-08-22 13:50:49

How to place a page at an address?

You need to place the form at site.dev/catalog/test/form but at site.dev/catalog there is a catalog component and it has a category located at site.dev/catalog/test/
If you just create a folder at the specified for form address, then the component page stops working.
The question is whether it is possible to place a page at site.dev/catalog/test/form or not

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artyom Luchnikov, 2017-08-22
@DenPolosin

You can do it like this.
in urlrewrite.php at the very top, write the rule:

array(
    'CONDITION' => "#^/catalog/test/form/#",
    'PATH'      => '/catalog/form.php',
),

In the /catalog/ folder, create a form.php file and place the form there.
When accessing the site.dev/catalog/test/form/ page, you should open the form from form.php, while the catalog component will not break.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question