wdvipers 0 06/26/2019 12:53 PM Как теперь вывести свои дополнительные поля в темах типа дискорд, твитер и т.д.IPS 4.4.4Можно пример кода для postcontainer искал как на вебфлейке ну что та там не нашёл такой информации. Share this post Link to post Share on other sites
newbie 1,720 06/26/2019 12:56 PM Чем не устраивает дефолная настройка? Share this post Link to post Share on other sites
wdvipers 0 06/26/2019 01:01 PM Это точно так же прописано, но вот в самой теме не знаю что прописывать. Share this post Link to post Share on other sites
newbie 1,720 06/26/2019 01:06 PM В какой теме?В поле пишите код. Share this post Link to post Share on other sites
wdvipers 0 06/26/2019 01:14 PM Стиль не стандартныйВывести хотел бы тут в виде иконок Share this post Link to post Share on other sites
newbie 1,720 06/26/2019 01:22 PM Можно же в том поле и иконки прописать. Можно пример кода для postcontainer $comment->author()->contentProfileFields()['core_pfieldgroups_X']['core_pfield_Y']X - ID группы, в которой находится полеY - ID поля 1 Share this post Link to post Share on other sites
wdvipers 0 06/26/2019 01:32 PM Если у меня к примеру 5-7 социальных кнопок будет то один и тот же код просто дублировать? Share this post Link to post Share on other sites
wdvipers 0 06/26/2019 01:57 PM Не вышло, указывал$comment->author()->contentProfileFields()['core_pfieldgroups_2']['core_pfield_2']В итоге ошибка Share this post Link to post Share on other sites
wdvipers 0 06/27/2019 03:19 AM Сделал только с таким видом кода{{if $comment->author()->contentProfileFields()['core_pfieldgroups_Y']['core_pfield_X']}} Share this post Link to post Share on other sites