Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SOLVED How to insert page into page
#2
- Install and activate DynPages plugin.
- 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 %}
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.
Reply


Messages In This Thread
How to insert page into page - by clarionz - 2014-03-31, 01:11:25
RE: How to insert page into page - by Carlos - 2014-03-31, 01:25:47
RE: How to insert page into page - by Timbow - 2014-03-31, 01:34:47
RE: How to insert page into page - by clarionz - 2014-03-31, 03:50:20
RE: How to insert page into page - by Carlos - 2014-03-31, 04:41:40
RE: How to insert page into page - by clarionz - 2014-03-31, 05:24:57
RE: How to insert page into page - by datiswous - 2014-03-31, 18:50:59



Users browsing this thread: 2 Guest(s)