Forum Moderators: open

Message Too Old, No Replies

include part of page with frontpage

can it be done?

         

soapystar

2:41 pm on Sep 5, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Wondering if there is anyway to include part of one page in another, in other words rather than just a body tag, is there another tag that will let me specify the part of another page i would like to include?

Thanks.

mattglet

5:08 pm on Sep 5, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



includes are usually done server-side. what language are you writing in?

-Matt

Swordsman

5:29 pm on Sep 5, 2003 (gmt 0)

10+ Year Member



Write a page for the content and put it in the _private directory. Then "include" it in BOTH pages.

pageoneresults

5:39 pm on Sep 5, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



soapystar, you'll need to create a new page that contains the content you wish to include in the other page. Once you've done that, go to the page where the content is going to be included. Put your cursor at the area where the included content is to begin (in Normal View) and go to...

Insert > Web Component > Included Content > Page

That will bring up a dialog which allows you to browse to the page you wish to include. Select it, then press okay and you should see that new included content appear on the page. In the html view, you will see something like this...

<!--webbot bot="include" u-include="/file.htm" tag="body" -->

That is FP's code to execute its interpretation of an SSI or Server Side Include.

soapystar

6:16 pm on Sep 5, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



yup thats what ive done till now. However there are certain sections of certain documents that id like to include on others. As the only tag fp seems to insert is the body tag i wondered if there was anther tag, the equal of say a span tag, that could be used to specify just a range of a document. Would make life much easier. :-)

pageoneresults

6:28 pm on Sep 5, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Yes, I understand what you are trying to accomplish and unfortunately that is not a feature that is available through standard FP commands. You could use another scripting language to achieve this.

Usually I don't have the type of situation you have painted. If content needs to be included, usually it occupies a scope of pages and therefore the standard FP includes work just fine. If that content appears on more than two pages, it may be of benefit to utilize the FP include feature. If not, just cut and paste (the old fashioned way).