How to display page from content

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
vilkis

Re: How to display page from content

Post 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
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: How to display page from content

Post by RonnyK »

CGSimplesmarty has a parameter "get_page_content".

Is that what you could use?

Ronny
vilkis

Re: How to display page from content

Post 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
Last edited by vilkis on Sun Mar 01, 2009 10:01 pm, edited 1 time in total.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: How to display page from content

Post by calguy1000 »

come on guys... this is simple.

Code: Select all

{fetch file="http://some_other_cms_site.com/page=blah&showtemplate=false"}
Last edited by calguy1000 on Sun Mar 01, 2009 10:59 pm, edited 1 time in total.
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.
vilkis

Re: How to display page from content

Post by vilkis »

alias.
vilkis

Re: How to display page from content

Post 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
vilkis

Re: How to display page from content

Post by vilkis »

And thanks calguy1000 for the hint how to include a content from other CMSMS site.

Vilkis
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: How to display page from content

Post 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.
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 “Developers Discussion”