<![CDATA[ Accessing index page to edit code - My Forums]]> https://forums.modx.com/thread/?thread=94791 <![CDATA[Accessing index page to edit code]]> https://forums.modx.com/thread/94791/accessing-index-page-to-edit-code#dis-post-513360 cstine Oct 24, 2014, 08:58 AM https://forums.modx.com/thread/94791/accessing-index-page-to-edit-code#dis-post-513360 <![CDATA[Re: Accessing index page to edit code]]> https://forums.modx.com/thread/94791/accessing-index-page-to-edit-code#dis-post-513371
The base file is typically index.php, and it is not a good practice to alter this as future updates will overwrite it.

A better method is to update the template in the manager. If you need to put a device sniffer in (like a PHP script) you'll want to put that in the template above the <html> tag to run prior to processing the HTML header.]]>
dvstudiosinc Oct 24, 2014, 10:53 AM https://forums.modx.com/thread/94791/accessing-index-page-to-edit-code#dis-post-513371