Closed q23 closed 5 years ago
I do this forever, works like a charm.
and that's why it has to be part of core functionality :)
indeed! A
if (strpos($block['maintext'], '.tmpl') !== false) {
$block['maintext'] = file_get_contents(PHPWCMS_TEMPLATE.'/inc_cntpart/main/'.$block['maintext']);
}
Done.
wohoooo! thank you very much.
Very hard to work with build in File-Template. And even not the phpwcms logic.
Better to choose a file from template dir under /template/inc_cntpart/main (or something).
currently we solve this with frontend_init script:
$block['maintext'] = file_get_contents(PHPWCMS_TEMPLATE.'/inc_cntpart/main/'.$block['maintext']);