#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 1200 commits
##On MODX Evolution 1.2 worked:
- Mananori Yamamoto (Yama) https://github.com/yama
<?php | |
// PageBuilder_saveContent | |
// Saves a copy of PageBuilder values in content field of the site_content table. | |
// Event: OnDocFormSave | |
// https://gist.github.com/pmfx/fcb50c22cb83aa29c63986ce88c7db3f | |
$e = &$modx->Event; | |
if ( $e->name == "OnDocFormSave" ) { | |
<?php | |
// ManagerCssContexts | |
// Add some style too the first level tree elements. | |
// Event: OnManagerTreePrerender | |
// Modify $contexts variable for your needs. | |
$e = & $modx->Event; | |
if ( $e->name == "OnManagerTreePrerender" ) { | |
// multitvThumbZoom | |
// adds nice style for image preview with zoom on hover | |
// event: OnManagerMainFrameHeaderHTMLBlock | |
$e = & $modx->Event; | |
if ( $e->name == "OnManagerMainFrameHeaderHTMLBlock" ) { | |
$html = ' | |
<style> | |
.multitv .list li.element .mtvThumb { |
<?php | |
// evoSystemInfo 1.3 | |
// Snippet displaying EVO system info and some actions on the frontend. | |
// Call it uncached [!evoSystemInfo!] before </body> tag in your template. | |
// Dark theme: [!evoSystemInfo? &theme=`dark`!] (EVO 1.4.4 or later required) | |
// author: Piotr Matysiak webready.pl | |
if ( isset($_SESSION['mgrValidated']) ) { | |
$docId = $modx->documentIdentifier; | |
$docTemplateId = $modx->documentObject['template']; |
#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 1200 commits
##On MODX Evolution 1.2 worked:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> | |
<head> | |
<title>MODX CMF Manager Login</title> | |
<meta http-equiv="content-type" content="text/html; charset=[+modx_charset+]" /> | |
<meta name="robots" content="noindex, nofollow" /> | |
<style type="text/css"> | |
body { | |
font-family: Arial, HelveticaNeue, "Helvetica Neue", Helvetica, "Hiragino Kaku Gothic Pro", Meiryo, sans-serif; | |
} |
/* -------------------------[ Neutralize styles, fonts and viewport ]--- */ | |
* html { | |
overflow-x: hidden; | |
overflow-y: auto; | |
} | |
/* for IE6 */ |
<?php | |
$output=''; | |
if($id){ | |
$table = $modx->getFullTableName( 'portfolio_galleries' ); | |
$query = $modx->db->query('SELECT content_id,filename,sortorder FROM '.$table.' WHERE content_id='.$id.' ORDER BY sortorder ASC LIMIT 0,1'); | |
$row = $modx->db->getRow($query); | |
$gal_id = $row['content_id']; | |
$gal_filename = $row['filename']; | |
if ($row){ | |
$output = 'assets/galleries/'.$gal_id.'/thumbs/'.$gal_filename; |
<?php | |
$output=''; | |
if($id){ | |
$table = $modx->getFullTableName( 'portfolio_galleries' ); | |
$query = $modx->db->query('SELECT content_id,filename,sortorder FROM '.$table.' WHERE content_id='.$id.' ORDER BY sortorder ASC LIMIT 0,1'); | |
$row = $modx->db->getRow($query); | |
$gal_id = $row['content_id']; | |
$gal_filename = $row['filename']; | |
if ($row){ | |
$output = 'assets/galleries/'.$gal_id.'/'.$gal_filename; |
<?php | |
$output='0'; | |
if($id){ | |
$table = $modx->getFullTableName( 'portfolio_galleries' ); | |
$query = $modx->db->query('SELECT content_id FROM '.$table.' WHERE content_id='.$id.' ORDER BY sortorder ASC'); | |
$output = mysql_num_rows($query); | |
} | |
return $output; | |
?> |