Embedd external page?

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
karabaja
Forum Members
Forum Members
Posts: 11
Joined: Tue Jun 12, 2007 3:02 pm

Embedd external page?

Post by karabaja »

Hello everyone. I am completely new to cms. What I would like to know, is there a way to include external page into cms template.
Like for example I'd like to include some php rss reader into one of the pages. If I just include the code in the content it will be parsed by smarty and give me errors. If I pate into a user defined tag and use the tag in a template I get nothing.
Anyway I was wondering, is there a way to include external page html or php, into cms and have it look the same as it would when opened in a browser, just embedded inside cms? Sorry if this has already been answered but I couldn't find it searching the forum.
cyberman

Re: Embedd external page?

Post by cyberman »

Hi karabaja,

Welcome on CMS made simple  :).
karabaja wrote: Like for example I'd like to include some php rss reader into one of the pages.
CMSms has extensions for that

http://dev.cmsmadesimple.org/projects/pirss/
http://dev.cmsmadesimple.org/projects/rssmodule/
If I just include the code in the content it will be parsed by smarty and give me errors.
If you want that someone should not be parsed by Smarty you have to mask it with {literal}do_not_parsing{/literal}
Anyway I was wondering, is there a way to include external page html or php
For embedding pages exists two iframe based solutions

embed tag (comes with default install)
Piiframe http://dev.cmsmadesimple.org/projects/piiframe/

Other software needs an own module to embed (like Gallery2).
karabaja
Forum Members
Forum Members
Posts: 11
Joined: Tue Jun 12, 2007 3:02 pm

Re: Embedd external page?

Post by karabaja »

Thanks cyberman, I forgot to mention I tried literal but didn't help.
Installed RSS module it is pretty helpful for what I had in mind, but still I'd like to try out to include this php script.
How do I install piiframe or generally any module that is a php file. For rss module I just uploaded rss folder to modules folder on server and it appeared in modules list so I just installed, but same doesn't work on piiframe or pirss.
Is there a way to edit attributes that embed tag adds next to an iframe?
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Embedd external page?

Post by RonnyK »

karabaja,

pi_iframe is a tag, that can be downloaded from dev.cmsmadesimple.org, after downloading this, you can upload this to the folder scripts. It then is visible in the tag-list in the backend. Another option could be the embed-tag that is already available in the tag-list.

Ronny

http://dev.cmsmadesimple.org/projects/piiframe
cyberman

Re: Embedd external page?

Post by cyberman »

RonnyK wrote: after downloading this, you can upload this to the folder scripts.
Think you mean folder /plugins ;D
karabaja wrote: but still I'd like to try out to include this php script.
Another way could be to modify config.php

Code: Select all

$config['use_smarty_php_tags'] = false;
to

Code: Select all

$config['use_smarty_php_tags'] = true;
Now you can use php inside templates - you have only to mask it with {php}your_source{/php}.
How do I install piiframe or generally any module that is a php file.
CMSms has three (official) types of extension - modules (placed in same named folder), tags (placed in folder /plugins) and user defined tags (stored in database). A fourth type comes from Smarty (Template engine of CMSms) - Smarty tags (placed in /lib/smarty/plugins).

But I'm wondering why you script does not work as user defined tag  ::). Does the script working standalone? It is your own script or an open source script so we can try it out?
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Embedd external page?

Post by RonnyK »

You're right Cyberman, that's the thing with recalling stuff. I can't do two things at the same time.....

Ronny
karabaja
Forum Members
Forum Members
Posts: 11
Joined: Tue Jun 12, 2007 3:02 pm

Re: Embedd external page?

Post by karabaja »

Thanks guys, appreciate the help. The script is not mine, I found it the other day here:

Code: Select all

http://www.futuremovies.co.uk/rss/php-rss-reeder.asp
It works fine as stand alone.
cyberman

Re: Embedd external page?

Post by cyberman »

Hmm, curriously - works not for me too (without error message). But url works with pirss - please look here

http://test.cmsmadesimple.de/index.php?page=rssreader
karabaja
Forum Members
Forum Members
Posts: 11
Joined: Tue Jun 12, 2007 3:02 pm

Re: Embedd external page?

Post by karabaja »

Yes, thanks again guys for a quick replies. It works good with pirss, piiframe displays the page fine too. So that is taken care off.
Looks I made a good choice of my first cms.

I just have one more question if you don't mind. How do I add a page that won't display in main navigation bar.
I installed underground theme from here:

http://themes.cmsmadesimple.org/Full_Themes.html

And it has Site Partners listed in tags on the left. What I would like to do is replace them with my own and link them to internal pages in cms. But when I go to create a new content I can choose for it to have no parent, and then it will be added as an item in top navigation bar. Or I can choose it to be a sub-page of one of those items. But can I make a page that won't automatically appear in top navigation, so I could link to it from the list on the left.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Embedd external page?

Post by RonnyK »

Karabaja,

you can set the page to "not show in the menu", that way it is not visible in the menu, and call it somewhere else with "show_all" that shows also "not shown entries". Antoher option is to use "include_prefix/exclude_prefix" as shown in the help of MenuManager, "layout -> MenuManager -> Help", there are the other parameters listed as well that can be given in the calling of the menu.

I've setup different content-parents, that I call at different places in the template.....

Ronny
karabaja
Forum Members
Forum Members
Posts: 11
Joined: Tue Jun 12, 2007 3:02 pm

Re: Embedd external page?

Post by karabaja »

Thanks RonnyK, all good now. I'll open a new thread if I get stuck with something.
Post Reply

Return to “CMSMS Core”