how could i impliment this code into nanocms?
my php knowlage isnt great.
this is the code that puts the text on the page
Code: Select all
function show_content_slug()
{
global $cap;
$slug = $cap->slug;
$contentFile = pageDataDir( $slug );
if( file_exists( $contentFile ) ) {
runTweak( 'slug_load_before' );
require_once( $contentFile );
runTweak( 'slug_load_after' );
}
else {
header("HTTP/1.0 404 Not Found");
echo "404 : File Requested was Not Found";
}
}
sean
