<div id="modx-navbar"> <ul id="modx-user-menu"> {* eval is used here to support nested variables *} {eval var=$userNav} </ul> <ul id="modx-topnav"> <li id="modx-home-dashboard"> <a href="?" title="{$_lang.dashboard}">{$_lang.dashboard}</a> </li> {if $_search} <li id="modx-manager-search"></li> {/if} {$navb} </ul> <ul id="modx-header-info-hack" style="float:left;"> <div style="height:55px; line-height:55px; margin-left:10px;"> <span style="display:inline-block; vertical-align:middle; line-height:normal;"> Your Site Name<br/> modx: 2.3.5-pl </span> </div> </ul> </div>
This question has been answered by Gav. See the first response.
<script>//your new code Ext.onReady(function() { var topNav = document.getElementById("modx-topnav"); topNav.insertAdjacentHTML( "afterEnd", "<ul id=\'versionCheck\'><li><a href=\'http://modx.com/download/\' target=\'_blank\' title=\'This is the version of this instance of MODx. Click to check MODx.com for newer versions\'>MODx "+MODx.config.version+"</a></li></ul>"); }); </script> </head>//insert new code just before head tag
<script type="text/javascript"> Ext.onReady(function() { new MODx.SearchBar; // find this //new code starts var topNav = document.getElementById("modx-topnav"); topNav.insertAdjacentHTML( "afterEnd", "<ul id=\'versionCheck\'><li><a href=\'http://modx.com/download/\' target=\'_blank\' title=\'This is the version of this instance of MODx. Click to check MODx.com for newer versions\'>MODx "+MODx.config.version+"</a></li></ul>"); //new code ends }); </script>
$versionCheck = ' Ext.onReady(function() { var topNav = document.getElementById("modx-topnav"); topNav.insertAdjacentHTML( "afterEnd", "<ul id=\'versionCheck\'><li><a href=\'http://modx.com/download/\' target=\'_blank\' title=\'This is the version of this instance of MODx. Click to check MODx.com for newer versions\'>MODx "+MODx.config.version+"</a></li></ul>"); }); '; $modx->regClientStartupHTMLBlock("<script>" . $versionCheck . "</script>");
...versions\'>MODx "+MODx.config.version+"</a></li></ul>
...versions\'>"+MODx.config.site_name+": "+MODx.config.version+"</a></li></ul> //if the display is too long, use CSS to kill it
title=\'Site Name: "+MODx.config.site_name+"\'>"Revo": "+MODx.config.version+"</a></li></ul>
$versionCheck = ' Ext.onReady(function() { var topNav = document.getElementById("modx-topnav"); topNav.insertAdjacentHTML( "afterEnd", "<ul id=\'versionCheck\'><li><a href=\'http://modx.com/download/\' target=\'_blank\' title=\'This is the version of this instance of MODx. Click to check MODx.com for newer versions\'>MODx "+MODx.config.version+"</a></li></ul>"); }); '; $modx->regClientStartupHTMLBlock("<script>" . $versionCheck . "</script>");
Unexpected token <:Given that the site is a duplicated dev site in a subdirectory (mydomain.com/dev20/), I'm guessing there's a path that hasn't been updated post-duplication or by the update to 2.3.5.
Forbidden
You do not have permission to access this document.
Web server at mydomain.com