So I just installed modX evolution 1.0.5 and everything seems to be installed successfully.
I'm just having trouble understanding what file I need to get my dynamic pages to work.
I have my template saved and I have a resource for it, then I try to link to it from my home page
<a href="
http://www.hairbarbiextensions.com/Hair-Extension-Details.php?id=2">Clip-Ins</a>
and my resource being (2) in my tree right...
I had this all working when I was using modX revolution, I had a .php file in the root of my server with some magical php code that when I renamed the file to my template name, I could link it up with the code up top and everything was running great, I had my TV's uploading and all that.
Now I just dont seem to understand how to link my template thats somewhere in mysql land I imagine with my resource... Right now im trying to use the file I was using with revolution... not so much luck tho,
site is
http://hairbarbiextensions.com/ the clip-ins link is what I want dynamic... im just not understanding a critical peace of this elaborate puzzle.
please help me, its not so much a technical issue so I dont think you need my specs. everything seems to be in order, it said modX installed successfully and all that... just a user issue, please advise
Thanks so much and I hope I made sense...
This is the file that used to work for me with revolution and I named this file same as my template names.
<?php
$mtime= microtime();
$mtime= explode(" ", $mtime);
$mtime= $mtime[1] + $mtime[0];
$tstart= $mtime;
error_reporting(E_ALL | E_STRICT);
if (!defined('MODX_API_MODE')) {
define('MODX_API_MODE', false);
}
$modx_cache_disabled= false;
@include(dirname(__FILE__) . '/config.core.php');
if (!defined('MODX_CORE_PATH')) define('MODX_CORE_PATH', dirname(__FILE__) . '/core/');
if (!@include_once (MODX_CORE_PATH . "model/modx/modx.class.php")) {
$errorMessage = 'Site temporarily unavailable';
@include(MODX_CORE_PATH . 'error/unavailable.include.php');
header('HTTP/1.1 503 Service Unavailable');
echo "";
exit();
}
ob_start();
$modx= new modX();
if (!is_object($modx) || !($modx instanceof modX)) {
@ob_end_flush();
$errorMessage = '<a href="setup/">MODX not installed. Install now?</a>';
@include(MODX_CORE_PATH . 'error/unavailable.include.php');
header('HTTP/1.1 503 Service Unavailable');
echo "";
exit();
}
$modx->startTime= $tstart;
$modx->setLogLevel(modX::LOG_LEVEL_ERROR);
$modx->setLogTarget('FILE');
$modx->setDebug(E_ALL & ~E_NOTICE);
$modx->initialize('web');
if (!MODX_API_MODE) {
$modx->handleRequest();
}
[ed. note: whaus77 last edited this post 15 years, 1 month ago.]