Imperial CMS article system content is stored in the text rather than stored in the database, the database is stored in the text of the path, placed with the D\txt directory, in the article system to make a single page, may be in the list page read Newstext fields, such as:
[e:loop={Select Title,newstext from {$dbtbpre}ecms_article WHERE classid= $classid ORDER by ID LIMIT 1 ", 0,24,0}]
<div class= "Foabout" >
<?= $BQR [newstext]?>
</div>
[/e:loop]
But this read out value is the path of the article content, find the source code, in the e\class\connect.php file about 3630 lines have a method function Gettxtfieldtext ($pagetexturl)
function Gettxtfieldtext ($pagetexturl) {
Global $ecms _config;
if (empty ($pagetexturl))
{
Return ";
}
$file = $ecms _config[' sets '] [' Txtpath ']. $pagetexturl. " PHP ";
$text =readfiletext ($file);
$text =substr ($text, 12);//Remove Exit
return $text;
}
This method can be called to read the contents of the article, so the above code can be changed as follows:
[e:loop={Select Title,newstext from {$dbtbpre}ecms_article WHERE classid= $classid ORDER by ID LIMIT 1 ", 0,24,0}]
<div class= "Foabout" >
<?=gettxtfieldtext ($BQR [newstext])?>
</div>
[/e:loop]