Size: a a a

2021 March 11

AS

Aliaksandr Sadouski in Evolution CMS
Eric FILIPPI
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.
So what`s the problem: when you change prod blade template you see changes on test site?
источник

EF

Eric FILIPPI in Evolution CMS
My problem comes only when I use DLMenu in blade with file chunks
источник

EF

Eric FILIPPI in Evolution CMS
no, I have no problem with blade template : prod and test are well separated
источник

AS

Aliaksandr Sadouski in Evolution CMS
And? What kind of problem?
источник

AS

Aliaksandr Sadouski in Evolution CMS
You see changes on test when make changes in prod files?
источник

AS

Aliaksandr Sadouski in Evolution CMS
Or you just don't see changes on test site while changing files on test server?
источник

EF

Eric FILIPPI in Evolution CMS
I see changes in test when I make changes on prod
источник

DM

Dmytro Makohonenko in Evolution CMS
so, u change files on prod and test site render menu with prod files?
источник

EF

Eric FILIPPI in Evolution CMS
yes, all the layout that is rendered by DLMenu is th prod layout
источник

DM

Dmytro Makohonenko in Evolution CMS
files on test server stay unchanged?
источник

AS

Aliaksandr Sadouski in Evolution CMS
у меня все работает вроде
источник

AS

Aliaksandr Sadouski in Evolution CMS
Eric FILIPPI
yes, all the layout that is rendered by DLMenu is th prod layout
try to check the path to chunks in your pakage elj
источник

AS

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

AS

Aliaksandr Sadouski in Evolution CMS
for example package Main, your package i think has name elj
источник

AS

Aliaksandr Sadouski in Evolution CMS
my examples works good
источник

AS

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

EF

Eric FILIPPI in Evolution CMS
ok I'll look
источник

EF

Eric FILIPPI in Evolution CMS
<?php namespace EvolutionCMS\Elj;

use EvolutionCMS\ServiceProvider;

class EljServiceProvider extends ServiceProvider
{
   /
    * Если указать пустую строку, то сниппеты и чанки будут иметь привычное нам именование
    * Допустим, файл test создаст чанк/сниппет с именем test
    * Если же указан namespace то файл test создаст чанк/сниппет с именем elj#test
    * При этом поддерживаются файлы в подпапках. Т.е. файл test из папки subdir создаст элемент с именем subdir/test
    */
   protected $namespace = 'elj';
   /

    * Register the service provider.
    *
    * @return void
    */
   public function register()
   {
       $this->loadSnippetsFrom(
           dirname(DIR). '/snippets/',
           $this->namespace
       );
       $this->loadChunksFrom(
           dirname(DIR) . '/chunks/',
           $this->namespace
       );
       /*$this->loadPluginsFrom(
           dirname(DIR) . '/plugins/'
       );*/
       //use this code for each module what you want add
       /*$this->app->registerModule(
           'module from file',
           dirname(DIR).'/modules/module.php'
       );*/
   }
}
источник

EF

Eric FILIPPI in Evolution CMS
источник

EF

Eric FILIPPI in Evolution CMS
it's better with an image
источник