K
K
Kirill Gorelov2020-07-31 22:32:54
1C-Bitrix
Kirill Gorelov, 2020-07-31 22:32:54

Bitrix, another question about the menu?

Hi guys.
It seems to me that there have already been so many questions about the menu that everything should be clear (((((

But still another one appears.
I display the menu as a standard component, everything is ok.
Now I need to add it under the item, ok. I add it.
But this is where the problem arises
that the menu of the second level needs to be written somewhere in order to manage it, because it contains links to different sections and even to one external site, that is, the menu cannot be displayed via ext (as far as I understand)

. , top menu:

Array(
    "Украшения", 
    "produkt/decoration/", 
    Array(), 
    Array(), 
    "" 
  ),
  Array(
    "Сумки", 
    "produkt/sumki/", 
    Array(), 
    Array(), 
    "" 
  ),
  Array(
    "Аксессуары", 
    "produkt/accessories/", 
    Array(), 
    Array(), 
    "" 
  ),


The catalog runs on a complex component.
And I need to add a sub menu in "product/accessories/" that should lead to a third-party site and contain a link to another section of the site.

The easiest way is to make an accessories subsection inside the (product) directory and create a second level menu there. This means that you still need to additionally display the catalog component to display the products of the accessories section.

Maybe I'm doing something wrong??
Or is there another way to solve?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
I'm Yoda, 2020-08-02
@Kirill-Gorelov

You can implement it like this! There may be other options, but this one is 100% working.

Array(
        "Украшения",
        "produkt/decoration/",
        Array(),
        Array(),
        ""
    ),
    Array(
        "Подменю пункт украшения",
        "https://site.ru",
        Array(),
        Array(
            "FROM_IBLOCK" => 1000,
            "IS_PARENT"   => 1,
            "DEPTH_LEVEL" => 1
        ),
        ""
    ),

It is important that the submenu be immediately below the item for which the submenu is being created.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question