herr rilke Posted March 17 Share Posted March 17 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 More sharing options...
da² Posted March 17 Share Posted March 17 Hello, The pw-replace must be in template-file.php and the id in _main.php. Documentation. 2 Link to comment Share on other sites More sharing options...
herr rilke Posted March 17 Author Share Posted March 17 ?that was too easy ? thanks, i was blind ? 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now