page content load in edit

This commit is contained in:
Fred Tempez 2021-06-24 22:16:36 +02:00
parent ccb5ccdf42
commit 44ab41289e
2 changed files with 2 additions and 2 deletions

View File

@ -57,7 +57,7 @@ class page extends common {
'parents' => 'Le menu',
'children' => 'Le sous-menu de la page parente'
];
public static $content = '';
/**
* Duplication

View File

@ -96,7 +96,7 @@ echo template::formOpen('pageEditForm');
<div class="col12">
<?php echo template::textarea('pageEditContent', [
'class' => 'editorWysiwyg',
'value' => $module::$content
'value' => file_get_contents(self::DATA_DIR . self::$i18n . '/content/' . $this->getData(['page', $this->getUrl(2), 'content']))
]); ?>
</div>
</div>