F
F
friden_craw2022-04-13 19:33:40
1C-Bitrix
friden_craw, 2022-04-13 19:33:40

Where can I get links to catalog items in Bitrix?

There is a block on the main page with links to different pages of the site.

The content of the block is filled in the admin panel. The content of each element is simple: title, picture, link.

The title and image are picked up immediately, but the link is not picked up correctly and leads to "1" instead of the selected page.

What could be the problem?

The block template looks like this.

6256fb3f75833983890012.png

Not sure what other data is needed.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
Olga, 2022-04-13
@Liatano

Most likely, the formation of addresses in the infoblock in the admin panel is incorrectly filled in (in the infoblock to which the property refers)

T
tgarl, 2022-04-14
@tgarl

I doubt that such a path to the data is correct, it is very similar to the fact that at random they wrote something that they heard somewhere.
Display what is in your array

echo "<pre style='text-align:left;'>";print_r($arItem['DISPLAY_PROPERTIES']);echo "</pre>";

And I'm not sure if your properties are marked or not, maybe you need to start printing from the very beginning $arItem

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question