Page 1 of 1
Re: How to display page from content
Posted: Sun Mar 01, 2009 1:19 am
by NaN
Re: How to display page from content
Posted: Sun Mar 01, 2009 8:07 pm
by vilkis
Hi,
I use the following UDT:
http://forum.cmsmadesimple.org/index.ph ... 186.0.html
How to use this UDT - create UDT and name it "include_content" and then include the following code in your page:
{include_content page_alias='ALIASAS_TO_YOUR_PAGE'}
Vilkis
Re: How to display page from content
Posted: Sun Mar 01, 2009 9:00 pm
by RonnyK
CGSimplesmarty has a parameter "get_page_content".
Is that what you could use?
Ronny
Re: How to display page from content
Posted: Sun Mar 01, 2009 9:53 pm
by vilkis
SchPeter:
I think there is no solution for your task unless somebody write a code for you. But this is not CMSMS related thing because it is not a multi-site system.
RonnyK:
I have several notes regard get_page_content of CGSimplesmarty:
a) to call a function get_page_content one has to use the following form: {$cgsimple->get_page_content(alias)} - as you know a WYSIWYG editor is not friendly for symbols "->" - it could be trouble to use it in content.
b) It does not process smarty tags of content to be included.
Vilkis
Re: How to display page from content
Posted: Sun Mar 01, 2009 10:11 pm
by calguy1000
come on guys... this is simple.
Code: Select all
{fetch file="http://some_other_cms_site.com/page=blah&showtemplate=false"}
Re: How to display page from content
Posted: Sun Mar 01, 2009 10:42 pm
by vilkis
alias.
Re: How to display page from content
Posted: Sun Mar 01, 2009 10:58 pm
by vilkis
It was a misspelling in the code above. Use this:
Code: Select all
{fetch file="http://some_other_cms_site.com/page=blah&showtemplate=false"}
And if you put it in content, turn off WYSIWYG editor.
Vilkis
Re: How to display page from content
Posted: Sun Mar 01, 2009 11:11 pm
by vilkis
And thanks calguy1000 for the hint how to include a content from other CMSMS site.
Vilkis
Re: How to display page from content
Posted: Sun Mar 01, 2009 11:46 pm
by calguy1000
it's not a hint.
it's not even a trick.
It's just the fact that I've read the appropriate smarty documentation, and know (and have also posted about) how to extract page content from another CMS site before.
I posted nothing new.... just repeated information that was publicly available for the people with the energy to look it up, rather than to ask others.