Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

eclipse

macrumors 6502a
Original poster
Nov 18, 2005
989
14
Sydney
Hi all,
remember "Components" in Golive which were really cool things that could be changed and then the updates transferred automatically across to all the other webpages that included that Component? (Great for Navbars).

I asked about "Component" functions in Kompozer and received this answer.... but I don't really know what it means.
As long as your server supports .php server side includes you can do that with an include file. You make the change in the include file and upload it and the change will show up where ever you call for that specific include. ISP space usually does not support this but most hosted space does.

What is an "include file"... a specially designated web-page or special code or something? Where do I put it? :confused:
 
An include file in PHP looks like,
PHP:
include "head.php";
That file usually has some HTML and PHP in it and can be included where ever the code of that file is needed.

How that helps with Components, I'm not sure. I've never used them in Go Live or Kompozer.
 
My dad answered with all this... but he's an old IBM programmer.

I don't know anything about php - except I was told a way to go

Include pages - I assume you mean a file included on other pages such as Copyright line

a left right or top navigation bar

Which is what I do on my site using SSI includes.

Previously I used Frontpage "component" "include page"
but when you changed it you have to load every page that uses it again
and the included stuff sits in the page increasing the size of each page.

Changing an SSI includes immediately changes every file that uses and the text of the include is not in the file so the size is reduced.

example of SSI include
<!--#include virtual="../_includes/ronfootssi.htm" -->

all is explained here
<http://freepages.genealogy.rootsweb.ancestry.com/~lankshear/fhlinks/techforthisweb.htm>

and here are more on SSI syntax
which is really quite simple
once you comprehend the relative to home page syntax
if you don't have folders it is very simple
http://www.htmlgoodies.com/beyond/webmaster/article.php/3473341



http://htmlhelp.rootsweb.com/members/mamat/ssi.html

As this says it is Server Side Includes so the nice Header and Footer are not on local copy

http://www.genealogy-web-creations.com/server-side-includes.htm

This has a list of commands for echo
http://freepages.computers.rootsweb.com/~elsi/SSI-commands.html
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.