Jump to content

Include one page into another


Joss
 Share

Recommended Posts

Hi

This is probably me being idiotic!

I have created a template that has one area where I want to import the content from another page - in this case a Bootstrap Carousel.

I have added a "page" field to select the carousel and that works - I have called the field "import_page"

In my template, I have put <?php echo $page->import_page; ?>

That, I have discovered, displays the ID of the page, 1018. It looks a very nice number and quite pretty on the page, but I would rather have the actual carousel!

So, how do I now render the actual contents of that page in full?

All the best

Joss

  • Like 1
Link to comment
Share on other sites

Ta-da!!!!

This one worked spot on::

$page->import_page->render

Mucho Gracias! I now have a bootstrap carousel working inside my bootstrap template and I will run off and watch the finale of CSI Miami much happier

Joss

Link to comment
Share on other sites

haha - Thanks onjegolders!

I am about to put up some photos of our local flooding - we didn't get it as bad as others, so these are quite peaceful shots. And as usual, Pebbles has plenty to say about them...

Joss

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...