Jump to content

using markup regions prints content of template as text


Recommended Posts

hi there,

when useing markup regions, having

config.php

$config->useMarkupRegions  =  true; 

and

in _main.php

<div pw-replace="wegdamit">
		<p>Text to replace</p>
</div>

and in

template-file.php

<?php 
...
?>
<div id="wegdamit">
			<p>Hello World</p>
</div>

the output is the printed source code of _main.php as first on the page:

/**
 * _main.php
 * Main markup file
 *
 * This file contains all the main markup for the site and outputs the regions 
 * defined in the initialization (_init.php) file. These regions include: 
 * 
 *   $title: The page title/headline 
 *   $content: The markup that appears in the main content/body copy column
 *

what am i doing wrong?

ProcessWire is 3.0.224

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...