Page 1 of 1

Is EMBED method the only one to include some static page into layout?

Posted: Thu Nov 29, 2007 4:15 pm
by gosforth
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.

Re: Is EMBED method the only one to include some static page into layout?

Posted: Thu Nov 29, 2007 4:35 pm
by RonnyK
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

Re: Is EMBED method the only one to include some static page into layout?

Posted: Thu Nov 29, 2007 5:11 pm
by calguy1000
there's also the {fetch ...} smarty plugin, that will fetch a URL and output it directy into your content

Re: Is EMBED method the only one to include some static page into layout?

Posted: Thu Nov 29, 2007 9:29 pm
by gosforth
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
Thanks but what you are talking about? There's nothing like pi_include. Show me the place where you downloaded then....
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....

Re: Is EMBED method the only one to include some static page into layout?

Posted: Fri Nov 30, 2007 8:40 am
by gosforth
calguy1000 wrote: there's also the {fetch ...} smarty plugin, that will fetch a URL and output it directy into your content
FETCH is great but.... does not work.
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?

Posted: Fri Nov 30, 2007 9:22 am
by Leav
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?

Posted: Fri Nov 30, 2007 9:51 am
by RonnyK
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
inside (admin panel -> extensions). Now you can call it on every page with {whateveryouwant}

Ronny