OK. Here's the picture. I have design a couple of sites in my time and in my designs made use of 'includes' for page headers / footers and menu bars. This is my first ebook and wanted to apply the same format to my pages. I understand activlink but can we apply this logic to include html files. This is probably not the first time you have been asked this but we have to start some where. The help files are good to get you started but has anyone written a manual. Details of page builds using the talked about features.
Make the file to be included in a folder outside the source folder, example - in the include folder if you used Activ Quick Project
Make an Activ Variable, which is HTML include type, call it say myinclude, and browse the file to be included
In whichever files that are doing includes, stick in [={myinclude}]
Enable the PreProcessor (double click on the file in the Files tab and check the option or you can enable it for all HTML files) for the files that are doing the includes
I like to use this trick myself a lot, as it can save a lot of cutting and pasting.
I am fairly new to Includes. In fact, I recently tested my first SSI on my Web server with much success.
My question is this... would this apply to SSI as well? Like I said, I am new to this because all my previous work has involved nothing more than plain ol' HTML, JavaScript, and CSS. Anyway, I've heard about SSI in the past, but never really investigated it until now. Plus, I stumbled upon information regarding this topic just a few days ago, tried a sample configuration on my host's Webserver, and it worked.
If I can at least achieve similar results in Activ E-Book, that would cut down even more time for me.
(Edited by spyderman at 11:13 am on Jan. 13, 2002)
(Edited by spyderman at 11:14 am on Jan. 13, 2002)
(Edited by spyderman at 11:15 am on Jan. 13, 2002)
The SSI syntax you use on your web site is different - same basic idea - different way of writing it from in ebooks
(for examples below change the [ ] and into less-than and greater-than signs, I can't get the less-than and greater-than signs to show in my post)
For .shtml files you normally use (if your web host has this feature enabled)
[!--#include file="somefile.html" --]
For .php files (if your web host has this feature enabled) [? include "somefile.html" ?]
For .asp files
[!--#INCLUDE FILE="somefile.html" --]
In all 3 cases there can be a lot of other variations and features too, but this is the start. There can also be minor differences between different web hosts depending on how they set things up
Thanks for the feedback. I will eventually try using the Pre-Processor soon, when time permits. If I have any further questions, I'll be sure to post them them here.
I have an Active variable paypal and donatenag These files are html type (with 1. no value, 2. path in relation to the project file, and 3. with a full path).
I tried to name the file in the include directory paypal.html and paypal (donatenag.html and donate). Both does not work.
====
I found it, it is not HTML-Fragment, it is Compile time include HTML-Fragment, than it asks for the file location, ....
The variable I type as: [={paypal}] or [={paypal.html}]
(Edited by Wiplinger at 12:48 am on Sep. 25, 2002)
With any business, it is up to the individual owner of said business to ensure the success of the business. You may make more or less than any sample figures or results that might be quoted on our web sites or other publications. All business involves risk, and many businesses do not succeed. Further, Answers 2000 Limited does NOT represent that any particular individual or business is typical, or that any results or experiences achieved by any particular individual/business is necessarily typical.