Search the Community
Showing results for tags 'markupregions'.
-
Hi guys, I'm struggling with including php files from a subfolder. Maybe because there are more then one solution. I'm using the $config->useMarkupRegions = true; with the _main.php. Right now I have some php files that I include in the template files like this: <?php include('menu_main.php'); ?> Now I have this subfolder: /templates/includes This won't work: <?php include('includes/menu_main.php'); ?> Using <?php wireIncludeFile('includes/menu_main.php'); ?> works only with the menu_main.php file, but not with others. What would you suggest?
- 5 replies
-
- templates
- markupregions
-
(and 1 more)
Tagged with:
-
There is a module in Ruby called Deface which is widely used in an ecommerce system called Spree: https://github.com/spree/deface It's been around for a while. "Deface is a library that allows you to customize HTML (ERB, Haml and Slim) views in a Rails application without editing the underlying view." MarkupRegions essentially works in a similar way. It's a bit of a shift in thinking but it's quite nice if you set things up the right way. I'm experimenting with a site profile that takes this approach extensively. How have you used MarkupRegions in creative ways?
-
As im statring to use $config->useMarkupRegions = true; I'm starting to run in things I can't figure out. In body field I have hanna code inserted that renders some of children and children have template. When rendering children they include $config->prependTemplateFile = '_init.php'; $config->appendTemplateFile = '_main.php'; for all rendered children. Is there a way to render without them?