eBook authors eBook Software - create and publish your own ebooks
Create your own eBooks
Learn How To Create, Publish & Market E-Books
E-Book Creation Software
Add sophisticated multimedia to your E-Books
Create E-Book covers in minutes
E-Book Marketing & Promotion made easy
Search engine for E-Books
Interviews with eBook authors
Tools for building better eBooks
Archived Message:

Html Includes

Tony Happy Holidays Everyone

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.

Thanks for your help.

Posted on: 11:28 am on December 30, 2001
EBookCompiler Yes, but not using the same syntax as ASP

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.

Posted on: 1:37 pm on December 30, 2001
spyderman 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)

Posted on: 4:00 pm on December 30, 2001
EBookCompiler 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

Posted on: 11:49 pm on December 30, 2001
spyderman 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.

Posted on: 11:22 am on January 13, 2002
Wiplinger I am still out of luck with the include thing:

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)

Posted on: 4:52 pm on September 23, 2002

List All Archived Forums

Copyright © 2000-2018, Answers 2000 Limited.

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.

Disclosure: Our company's websites' content (including this website's content) includes advertisements for our own company's websites, products, and services, and for other organization's websites, products, and services. In the case of links to other organization's websites, our company may receive a payment, (1) if you purchase products or services, or (2) if you sign-up for third party offers, after following links from this website. Unless specifically otherwise stated, information about other organization's products and services, is based on information provided by that organization, the product/service vendor, and/or publicly available information - and should not be taken to mean that we have used the product/service in question. Additionally, our company's websites contain some adverts which we are paid to display, but whose content is not selected by us, such as Google AdSense ads. For more detailed information, please see Advertising/Endorsements Disclosures

Our sites use cookies, some of which may already be set on your computer. Use of our site constitutes consent for this. For details, please see Privacy.

Click privacy for information about our company's privacy, data collection and data retention policies, and your rights.

Contact Us    About and Terms Of Use    Privacy    Advertising/Endorsements Disclosures