A
A
Askfortrue2019-03-02 21:43:55
1C-Bitrix
Askfortrue, 2019-03-02 21:43:55

If there is an addition of elements to the catalog by any User, then how to see all the elements added by any of the users?

Hello!
This is the first time I've come across this thread, so I'll ask.
If every user can add an item to the catalog, how do you get a page where you can see all the items added by that or any other user?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Savrasov, 2019-03-04
@Askfortrue

1. add the news.list component to the page
2. Set it to the infoblock to which it was added
3. During setup, enter arrFilter in the filter name field
4. Write before the news.list component

global $arrFilter;
$arrFilter = array("CREATED_BY"=>"ID_НУЖНОГО-ПОЛЬЗОВАТЕЛЯ");

or for current
global $arrFilter, $USER;
$arrFilter = array("CREATED_BY"=>intval($USER->GetID()));

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question