Insert content from other pages

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
khyros
Forum Members
Forum Members
Posts: 22
Joined: Sun Apr 15, 2007 11:48 am

Insert content from other pages

Post by khyros »

Hi, I'd like to know if this is possible



-> I have a page X with some content
-> I have a page Y with some content

I'd like to make another page, inserting both the contents of Y and X within the same page.
Is this possible? Maybe a global_content call or something I'm not aware of?

Thanks!
cyberman

Re: Insert content from other pages

Post by cyberman »

Have you tried contentaliases?

http://dev.cmsmadesimple.org/projects/contentaliases/

Maybe helps ...
khyros
Forum Members
Forum Members
Posts: 22
Joined: Sun Apr 15, 2007 11:48 am

Re: Insert content from other pages

Post by khyros »

I just tried but that doesn't do exactly what I want..
Maybe I'll use the global content stuff .. but that introduces complexity when it comes to others editing the site
kevin360

Re: Insert content from other pages

Post by kevin360 »

I would like to find something similar too  The contentalias works a little different then what we're looking for.  Contentalias just makes another "page" that really just points to a different page. 

What we're looking for is something that works just like global_content_blocks, but instead of going into 'Content'->'Global Content Blocks' to edit the info, you'd just edit the page with all the other pages.  So on page X you could add something like:

{insert_page_content page='Y'}


And the content of page Y would be inserted into page x where that tag is located.  Is there anything like that available?
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Insert content from other pages

Post by calguy1000 »

No, there's no current way of doing that, but it shouldn't be hard to write with a UDT or a plugin.

You'd just need functionality like what the detailpage stuff does (to resolve a name into a page id), then a bit of code to fetch the page contents.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Post Reply

Return to “CMSMS Core”