Aliaksandr
Ну хз, у товара обычно производитель один )
Andrey
Там 2 китайца может шлёпают чего.
Aliaksandr
Для нескольких это понятно )) хотя некоторые любят concat для фильтрации 😁
Anonymous
Селектор на 3.0 будет пахать?
Andrey
Хз.
Alexander
Селектор на 3.0 будет пахать?
будете тестировщиком)
Anonymous
Hello, can i request help on snippets run : I copied my prod site to test site (evo2.0.3) on the same debian server I'm using new blade chunk syntax like and it work without problem but when I run DLMenu, it takes the chunks that are in the prod folder ???? on the test site, I tried to clear evo cahe in the manager clear the /assets/cache folder clear my browser cache but nothing worked then I tried to clear clear cache via artisan : php artisan cache:clear in the test site core folder then now my prod menu doesn't work anymore. what did I miss ? please help
Marc
Sounds like its using the same database. Did you reset paths and changed database config? (EVO 2 uses different config file but you might know that)
Marc
Eric
Anonymous
Hello, yes I reset paths in configuration panel and I've just checked the config files : core/config/database/connections => 'database' => env('DB_DATABASE', 'DEV_espacelyonjapon'),
Anonymous
when I use blade chunks without snippets, I have no problem
Anonymous
show your code
[[DLMenu? &parents=0 &maxDepth=2 &filters=AND(tvd:news_lang:like:(yams_id);content:c.id:isnot:5;content:c.id:isnot:16;content:c.id:isnot:39;content:c.id:isnot:73) &outerTpl=elj#dlmenu\OuterTpl &innerTpl=elj#dlmenu\InnerTpl &parentRowTpl=elj#dlmenu\ParentRowTpl &rowTpl=elj#dlmenu\RowTpl &innerRowTpl=elj#dlmenu\InnerRowTpl &firstClass=first &hereClass=`` ]]
Anonymous
yas, I have a blade layout, ans I call DlMenu from that layout
Aliaksandr
🧐🙃
Камиль
yas, I have a blade layout, ans I call DlMenu from that layout
$modx->runSnippet('DLMenu', ['parents' => 0] ...);
Камиль
it's hard to write the full code from the phone
Anonymous
I know the syntax don't worry
Aliaksandr
Там еще и ямс
Камиль
За ямс не помогу :) но направление дал
Aliaksandr
Вообще очевидно, что такая конструкция из блейда работать не будет, если оно только все не завернуто в @evoParser. Т.е. править надо где-то в другом месте :)
Anonymous
I get the same result using @evoParser( $modx->runSnippet('DLMenu', [ 'parents'=>'0', 'maxDepth'=>'2', 'filters'=>'AND(tvd:news_lang:like:fr;content:c.id:isnot:5;content:c.id:isnot:16;content:c.id:isnot:39;content:c.id:isnot:73)', 'outerTpl'=>'elj#dlmenu\OuterTpl', 'innerTpl'=>'elj#dlmenu\InnerTpl', 'parentRowTpl'=>'elj#dlmenu\ParentRowTpl', 'rowTpl'=>'elj#dlmenu\RowTpl', 'innerRowTpl'=>'elj#dlmenu\InnerRowTpl', 'firstClass'=>'first', 'hereClass'=>'',])) or {!! $modx->runSnippet('DLMenu', [ 'parents'=>'0', 'maxDepth'=>'2', 'filters'=>'AND(tvd:news_lang:like:fr;content:c.id:isnot:5;content:c.id:isnot:16;content:c.id:isnot:39;content:c.id:isnot:73)', 'outerTpl'=>'elj#dlmenu\OuterTpl', 'innerTpl'=>'elj#dlmenu\InnerTpl', 'parentRowTpl'=>'elj#dlmenu\ParentRowTpl', 'rowTpl'=>'elj#dlmenu\RowTpl', 'innerRowTpl'=>'elj#dlmenu\InnerRowTpl', 'firstClass'=>'first', 'hereClass'=>'',])!!} menus display, but it's still the mess between test and prod sites
Aliaksandr
Че-то мастера блейда затихарились 😁😁😁 они смелые только минусы ставить за цитаты из доки 😁😁😁 А как по делу ответить - в домике )))
Pathologic
кэш шаблонов может не чищен
Aliaksandr
Хз, вроде писал про php artisan cache:clear
Aliaksandr
А откуда этот путь берется? Из конфига сайта не может?
Aliaksandr
Потому я и перешел на контроллеры и апи, ибо ну его нах разыскивать потом эти пути и сотни шаблонов по три строки и меньше
Pathologic
какой путь
Pathologic
пути для чанков в сервис провайдере должны задаваться
Aliaksandr
Ну вот эти elj#.. ходи потом по ним неведомо куда
Aliaksandr
пути для чанков в сервис провайдере должны задаваться
Это те же пути, что и для обычных чанков как в пакете main?
Pathologic
ну да
Pathologic
тут же и есть обычные типа чанки
Aliaksandr
Это ж типа относительный, а полный откуда прилетает? Может из конфига сайта где файл-браузер/файл манагер?
Aliaksandr
Или оно только для мцпука?
Pathologic
может
Pathologic
но вряд ли
Aliaksandr
Может у него где кастомный конфиг модх_base_path вписан ))
Pathologic
я пониманию только что где блейд там и проблемы какие-то
Aliaksandr
Ну это ж не в блейде вопрос, чанки наверно где-то в районе DLTemplate мутятся. Или те, что из сервис-провайдера мимо летят? Вряд ли.
Anonymous
try to check {{ MODX_BASE_PATH }} in blade
I get the prod path in prod, and the test path in test, so MODX_BASE_PATH is correct
Aliaksandr
Dmytro
может тупо гдето прописан полный путь без MODX_BASE_PATH ?
Dmytro
типа сам dlmenu рекваерится из прода...
Marc
Can you load a Chunk with Blade?
Marc
or does it needs to be file based?\
Dmytro
Marc
Ok
Aliaksandr
типа сам dlmenu рекваерится из прода...
Я не особо понял вопрос: то ли он меняет на проде и оно меняется на тесте, то ли он меняет на тесте, а оно не меняется на тесте 😁
Dmytro
я так понял, у него на тесте тянет чанки из прода
Aliaksandr
В любом случай хрень какая-то, но раз уж там всплыл evoParser и yams, то по традиции вангую еще миллион тон всякой дряни ))
Pathologic
в общем тут надо брать сайт и смотреть
Dmytro
а хз) посоветуй ему через блейд вывести $modx->config, а то я не в курсе четам в 3.х))
Dmytro
я не удивлюсь, если меню у него выводится аяксом, а запрос соответсвенно на прод и идет)
Pathologic
может он в редакторе правит один сайт, а смотрит другой, у меня так бывает ((:
Aliaksandr
Да не сильно ему похоже надо, что еще бегать за ним с разными вариантами ? ))
Pathologic
а происходит это из-за файла в assets/cache
Pathologic
hostnames или как он там
Dmytro
ну а вдруг какойто глюк жеский.... типа прод висит на том же сервере
Dmytro
правда я на это ставллю гдето 0.001 % ))
Aliaksandr
Давай фантазировать )))
Aliaksandr
Может там вообще в htaccess домен склеили с продом и оно туда кидает постоянно 😁😁😁
Dmytro
эт тоже запросто может быть)
Anonymous
To build the test virtuelhost, i copied the prod, then I changed the config files to link to the test DB, and I checked that the link is ok doing a change in the db and see if I see it in the manager. So I'm quit sure that the test site is runing well.
Anonymous
My problem comes only when I use DLMenu in blade with file chunks
Anonymous
no, I have no problem with blade template : prod and test are well separated
Aliaksandr
And? What kind of problem?
Aliaksandr
You see changes on test when make changes in prod files?
Aliaksandr
Or you just don't see changes on test site while changing files on test server?
Anonymous
I see changes in test when I make changes on prod
Dmytro
so, u change files on prod and test site render menu with prod files?
Anonymous
yes, all the layout that is rendered by DLMenu is th prod layout
Dmytro
files on test server stay unchanged?
Aliaksandr
у меня все работает вроде