slackero / phpwcms

Flexible, fast, powerful, customer, developer friendly web content management system and cms framework
http://www.phpwcms.org
GNU General Public License v2.0
92 stars 45 forks source link

Replace build in Frontend Setup: Template by File #170

Closed q23 closed 5 years ago

q23 commented 8 years ago

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']);

marcus-at-localhost commented 8 years ago

I do this forever, works like a charm.

q23 commented 8 years ago

and that's why it has to be part of core functionality :)

geckse commented 8 years ago

indeed! A