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

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Locked

How to include static html document within cms page?

option1
1
100%
option2
0
No votes
 
Total votes: 1

gosforth

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

Post 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.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm
Location: Raalte, the Netherlands

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

Post 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
calguy1000
Support Guru
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?

Post by calguy1000 »

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.
gosforth

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

Post 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....
Last edited by gosforth on Thu Nov 29, 2007 9:40 pm, edited 1 time in total.
gosforth

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

Post 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....
Leav
Forum Members
Forum Members
Posts: 38
Joined: Fri Aug 11, 2006 8:26 pm

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

Post 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
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm
Location: Raalte, the Netherlands

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

Post 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
Locked

Return to “Layout and Design (CSS & HTML)”