Size: a a a

2021 March 11

EF

Eric FILIPPI in Evolution CMS
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'),
источник

EF

Eric FILIPPI in Evolution CMS
when I use blade chunks without snippets, I have no problem
источник

К

Камиль in Evolution CMS
Eric FILIPPI
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
show your code
источник

EF

Eric FILIPPI in Evolution CMS
Камиль
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=``
]]
источник

К

Камиль in Evolution CMS
Eric FILIPPI
[[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=``
]]
You write this in blade?
источник

EF

Eric FILIPPI in Evolution CMS
yas, I have a blade layout, ans I call DlMenu from that layout
источник

AS

Aliaksandr Sadouski in Evolution CMS
🧐🙃
источник

К

Камиль in Evolution CMS
Eric FILIPPI
yas, I have a blade layout, ans I call DlMenu from that layout
$modx->runSnippet('DLMenu', ['parents' => 0] ...);
источник

К

Камиль in Evolution CMS
it's hard to write the full code from the phone
источник

EF

Eric FILIPPI in Evolution CMS
Камиль
$modx->runSnippet('DLMenu', ['parents' => 0] ...);
ok i try just now
источник

EF

Eric FILIPPI in Evolution CMS
I know the syntax don't worry
источник

AS

Aliaksandr Sadouski in Evolution CMS
Там еще и ямс
источник

К

Камиль in Evolution CMS
За ямс не помогу :) но направление дал
источник

AS

Aliaksandr Sadouski in Evolution CMS
Вообще очевидно, что такая конструкция из блейда работать не будет, если оно только все не  завернуто в @evoParser. Т.е. править надо где-то в другом месте :)
источник

EF

Eric FILIPPI in Evolution CMS
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
источник

AS

Aliaksandr Sadouski in Evolution CMS
Че-то мастера блейда затихарились 😁😁😁 они смелые только минусы ставить за цитаты из доки 😁😁😁 А как по делу ответить - в домике )))
источник

P

Pathologic in Evolution CMS
кэш шаблонов может не чищен
источник

AS

Aliaksandr Sadouski in Evolution CMS
Хз, вроде писал про php artisan cache:clear
источник

AS

Aliaksandr Sadouski in Evolution CMS
А откуда этот путь берется? Из конфига сайта не может?
источник

AS

Aliaksandr Sadouski in Evolution CMS
Потому я и перешел на контроллеры и апи, ибо ну его нах разыскивать потом эти пути и сотни шаблонов по три строки и меньше
источник