#Release 1.2 from 01.12.2016.
This release includes many changes and improvements that would make simpler of creating sites on MODX EVO.
More then 1000 commits
##On MODX Evolution 1.2 worked:
- Mananori Yamamoto (Yama) https://github.com/yama
#Release 1.2 from 01.12.2016.
This release includes many changes and improvements that would make simpler of creating sites on MODX EVO.
More then 1000 commits
##On MODX Evolution 1.2 worked:
//<? | |
$e = &$modx->Event; | |
switch($e->name){ | |
case 'OnManagerWelcomeHome': | |
//if($_SESSION['mgrRole']!=='2') return; | |
//unset($widgets['welcome']); | |
//unset($widgets['onlineinfo']); | |
//unset($widgets['recentinfo']); | |
//unset($widgets['news']); |
Новый релиз EVO 1.3.0 в первую очередь интересен тем что идет уже под именем EVOLUTION CMS. А так же интересен тем что теперь не будет отдельно моей кастомной сборки которая развивалась активней основной ветки. Это приведет к тому что теперь обновления будут выходить чаще, думаю раз в месяц будет свежий релиз а не так как было последнее время что у нас 1 релиз в пол года год.
The new release of EVO 1.3.0 runs under the name EVOLUTION CMS. Now updates will be released more often. About once a month there will be a fresh release instead of 1 release at half a year.
For half a year, a lot of work has been done (more than 600 comets), this is the second major release of Evolution CMS, the first one can be read here (http://modx.im/blog/news/5311.html). The main emphasis in this release was aimed at the stability of the system, as well as updating the old snippets for new ones. What makes it possible to create sites even faster, and even work sites will be even faster. In this we are very much helped by DocLister.
За пол года было проделанно много работы(более 600 комитов), это второй крупный релиз Evolution CMS, про первый можно почитать тут (http://modx.im/blog/news/5311.html). Основной упор в этом релизе был направлен на стабильность системы, а так же обновлению старых сниппетов на новые. Что дает возможность создавать сайты еще быстрее, да и работать сайты будут еще быстрее. В этом нам очень сильно помогает DocLister.
//<?php | |
$e = &$modx->event; | |
if ($e->name == 'OnWebPageInit') { | |
if (strpos($_SERVER['DOCUMENT_URI'], 'laravel/valet') !== false){ | |
$url = $modx->db->escape($_SERVER['REQUEST_URI']); | |
if (isset($url) && $url !== '/') { | |
$url = explode('?', $url); | |
$friendly_url_suffix = $modx->config['friendly_url_suffix']; | |
$base_url = $modx->config['base_url']; | |
$site_url = $modx->config['site_url']; |
1 Templates 1 part | |
Подключаем debug и tracy: | |
core/custom/config/app/debug.php | |
<?php return true; | |
core/custom/config/tracy/active.php | |
<?php return 'manager'; |
Перенесли логику мультиязычности с Laravel, детальней как это в Laravel читаем тут: https://laravel.com/docs/8.x/localization, а как это в Evo читаем ниже
В целом все очень похоже на решение bLang https://github.com/bumkaka/bLang так же можно глянуть видео как работали в более ранних версиях : https://www.youtube.com/watch?v=FVX63RRYsU4
Добавляем строку перед: # For Friendly URLs
<?php | |
namespace EvolutionCMS\Odkb\Controllers; | |
class NewsController extends BaseController { | |
public function render() { | |
$this->data['newsmenu'] = json_decode($this->evo->runSnippet('DLMenu', ['parents' => 69, 'maxDepth' => 1, 'api' => 1]), true)[0]; | |
$this->data['newsitems'] = $this->DocLister([ | |
'depth'=>2, |