Hi,
I do not want to work with database to create content (I want to be free and have all content in static pages - only menu or some not important things in database).
So I fount that there is {embed} function but this gives quite bad results; pictures are not formated to the width of column, I have scrolls.
Is there any better way I can use to include html pages within cmsmadesimple frames?
Thanks a lot for help.
Is EMBED method the only one to include some static page into layout?
Re: Is EMBED method the only one to include some static page into layout?
You can use the tag {pi_include} that can be downloaded from the dev-area to create an iframe, or put an iframe in yourself. Another option is using the php-include logic. I often use the pi_iframe logic and style the iframe through CSS.
Ronny
Ronny
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
- Location: Fernie British Columbia, Canada
Re: Is EMBED method the only one to include some static page into layout?
there's also the {fetch ...} smarty plugin, that will fetch a URL and output it directy into your content
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.
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.
Re: Is EMBED method the only one to include some static page into layout?
Thanks but what you are talking about? There's nothing like pi_include. Show me the place where you downloaded then....RonnyK wrote: You can use the tag {pi_include} that can be downloaded from the dev-area to create an iframe, or put an iframe in yourself. Another option is using the php-include logic. I often use the pi_iframe logic and style the iframe through CSS.
Ronny
In fact there tag pi_iframe is quite old and I got some not official one:
http://forum.cmsmadesimple.org/index.ph ... 3.msg63583
Finaly it works and thanks for that.
Anyway, how to use PHP function 'include' when creating new content?
If I write for instance I have just text....
Last edited by gosforth on Thu Nov 29, 2007 9:40 pm, edited 1 time in total.
Re: Is EMBED method the only one to include some static page into layout?
FETCH is great but.... does not work.calguy1000 wrote: there's also the {fetch ...} smarty plugin, that will fetch a URL and output it directy into your content
Not able to display pictures that html page contains - just text.
All the time same; 'sophisticated' CMSes that are not able to so simple thing like inclueds correctly....
Re: Is EMBED method the only one to include some static page into layout?
gosforth wrote: All the time same; 'sophisticated' CMSes that are not able to so simple thing like inclueds correctly....
calm down there buddy, you won't get help like that.
CMSes are made to manage content, and they do it in the best possible way. it's elegant and user friendly.
if you want to create pages in an outside program you could use a template which only has {content} in it and when you edit pages through the page editor insert your own html via direct html editing (there is a button there.)
good luck,
-Leav
Re: Is EMBED method the only one to include some static page into layout?
gosforth,
sorry, but it was pi_iframe instead.
http://dev.cmsmadesimple.org/projects/piiframe/
For including through include():
Create a user defined tag named 'whateveryouwant' with
Ronny
sorry, but it was pi_iframe instead.
http://dev.cmsmadesimple.org/projects/piiframe/
For including through include():
Create a user defined tag named 'whateveryouwant' with
inside (admin panel -> extensions). Now you can call it on every page with {whateveryouwant}include (http://www.mywebsitename/myfile.php);
Ronny