Page 1 of 1
Embedd external page?
Posted: Thu Jun 14, 2007 1:19 am
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.
Re: Embedd external page?
Posted: Thu Jun 14, 2007 6:08 am
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).
Re: Embedd external page?
Posted: Thu Jun 14, 2007 1:11 pm
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?
Re: Embedd external page?
Posted: Thu Jun 14, 2007 1:16 pm
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
Re: Embedd external page?
Posted: Thu Jun 14, 2007 1:35 pm
by cyberman
RonnyK wrote:
after downloading this, you can upload this to the folder scripts.
Think you mean folder /plugins
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?
Re: Embedd external page?
Posted: Thu Jun 14, 2007 1:38 pm
by RonnyK
You're right Cyberman, that's the thing with recalling stuff. I can't do two things at the same time.....
Ronny
Re: Embedd external page?
Posted: Thu Jun 14, 2007 1:49 pm
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.
Re: Embedd external page?
Posted: Thu Jun 14, 2007 2:07 pm
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
Re: Embedd external page?
Posted: Thu Jun 14, 2007 2:32 pm
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.
Re: Embedd external page?
Posted: Thu Jun 14, 2007 2:41 pm
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
Re: Embedd external page?
Posted: Thu Jun 14, 2007 5:48 pm
by karabaja
Thanks RonnyK, all good now. I'll open a new thread if I get stuck with something.