Forum Moderators: open

Message Too Old, No Replies

Understanding FP Includes

         

gph

2:56 pm on Apr 27, 2002 (gmt 0)

10+ Year Member



I'm using FP 2000 to build an image site and have a number of pages that are exactly the same except for the image and the link to the next one.

I'm using include pages (not SSI as my server doesn't support them) for various parts of the page. I would like to be able to cut the page up into include pages with only the link and image as variable content but have been unable to do so. When I break a table up FP automatically "repairs" the rest of the page by removing or adding tags.

I tried a simply test by splitting up a one cell table which does work but have been unable to cut up a more complex layout.

My questions are:

1/ Is the above possible or does an include page have to be able to stand on its own as a complete HTML document.

2/ How does an include page work, is webbot a language that browsers can read?

3/ Is there a better client side method for doing what I'm trying to do?

Thanks for your help.

tedster

9:44 pm on Apr 27, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



We have another thread here about Front Page Includes that may shed some light for you.

[webmasterworld.com...]

gph

11:44 pm on Apr 27, 2002 (gmt 0)

10+ Year Member



Thanks tedster, that explains why I couldn't edit the pages in NotePad to stop FP from rewriting the page code as FP obviously adds extra information with an include.

Would you or anyone else have answers for my questions 1/ and 3/?

pageoneresults

11:53 pm on Apr 27, 2002 (gmt 0)

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



Hello gph! You asked...

> 1/ Is the above possible or does an include page have to be able to stand on its own as a complete HTML document.

The include page needs to stand on its own. You can have multiple includes on one page as you are suggesting.

And you also asked...

> 3/ Is there a better client side method for doing what I'm trying to do?

Not that I am aware of. I've been working with FP since 1996 and use includes religiously. Typically I have three includes on each page; top, left or right, and bottom.

For your requirement, you would add one more include to create the surrounding content and then have your variable in the center or wherever you wish to place it.

pageoneresults

11:55 pm on Apr 27, 2002 (gmt 0)

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



Pssst, you can also use CSS and position <div>'s where you need them and place your includes in the <div>'s. Check your Sticky.

gph

12:02 am on Apr 28, 2002 (gmt 0)

10+ Year Member



Thanks pageoneresults, what's a "Sticky"

pageoneresults

12:09 am on Apr 28, 2002 (gmt 0)

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



Look up above at the top of your screen.

You have mail: [1]

gph

12:14 am on Apr 28, 2002 (gmt 0)

10+ Year Member



Cool, thanks pageoneresults, I'll check out those links :-)