2014-03-31, 01:25:47
- Install and activate DynPages plugin.
- Create a component named e.g. pagecontent with this:
Insert this in your page(s) content wherever you want to insert another page's content:
where pageid to the slug/page id of the page you want to insert.)
It's a quickie. It could be improved so that it checks if the slug exists, so that you don't get errors if it doesn't.
- Create a component named e.g. pagecontent with this:
PHP Code:
<?php
global $args;
getPageContent($args[0]);
?>
Insert this in your page(s) content wherever you want to insert another page's content:
Code:
{% pagecontent pageid %}
It's a quickie. It could be improved so that it checks if the slug exists, so that you don't get errors if it doesn't.