Embedd external page?
Embedd external page?
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.
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.
Re: Embedd external page?
Hi karabaja,
Welcome on CMS made simple
.
http://dev.cmsmadesimple.org/projects/pirss/
http://dev.cmsmadesimple.org/projects/rssmodule/
embed tag (comes with default install)
Piiframe http://dev.cmsmadesimple.org/projects/piiframe/
Other software needs an own module to embed (like Gallery2).
Welcome on CMS made simple

CMSms has extensions for thatkarabaja wrote: Like for example I'd like to include some php rss reader into one of the pages.
http://dev.cmsmadesimple.org/projects/pirss/
http://dev.cmsmadesimple.org/projects/rssmodule/
If you want that someone should not be parsed by Smarty you have to mask it with {literal}do_not_parsing{/literal}If I just include the code in the content it will be parsed by smarty and give me errors.
For embedding pages exists two iframe based solutionsAnyway I was wondering, is there a way to include external page html or php
embed tag (comes with default install)
Piiframe http://dev.cmsmadesimple.org/projects/piiframe/
Other software needs an own module to embed (like Gallery2).
Re: Embedd external page?
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?
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?
Re: Embedd external page?
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
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
Re: Embedd external page?
Think you mean folder /pluginsRonnyK wrote: after downloading this, you can upload this to the folder scripts.

Another way could be to modify config.phpkarabaja wrote: but still I'd like to try out to include this php script.
Code: Select all
$config['use_smarty_php_tags'] = false;
Code: Select all
$config['use_smarty_php_tags'] = true;
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).How do I install piiframe or generally any module that is a php file.
But I'm wondering why you script does not work as user defined tag

Re: Embedd external page?
You're right Cyberman, that's the thing with recalling stuff. I can't do two things at the same time.....
Ronny
Ronny
Re: Embedd external page?
Thanks guys, appreciate the help. The script is not mine, I found it the other day here:
It works fine as stand alone.
Code: Select all
http://www.futuremovies.co.uk/rss/php-rss-reeder.asp
Re: Embedd external page?
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
http://test.cmsmadesimple.de/index.php?page=rssreader
Re: Embedd external page?
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.
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.
Re: Embedd external page?
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
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
Re: Embedd external page?
Thanks RonnyK, all good now. I'll open a new thread if I get stuck with something.