eBook Scripts
customizing the search results page

 
Home Design Tips Scripts Templates/Translations


Customizing The Search Results Page

Overview

This example explains how to customize the search results page in your E-Book. (Strictly speaking this is not a script - as no actual scripting is required).


Requirements
  • Activ E-Book Compiler, version 5.00 or later.

    Important: This example relies on the search template's feature as implemented in 5.0x, which is classifed as "experimental". Changes may be required to use this script with subsequent versions of the compiler.

Instructions
  1. Create an HTML page called __searchtemplate.htm (there are two underscore characters on the front of that file name).

  2. In the HTML file you can include the following special markers where you wish to insert information about the search:

    • *PHRASE* where you want to display the phrase that the user searched on.

    • *MATCH* a sentence indicating the number of matches that were found by the search (the text of this phrase comes from the language file - see Advanced Features in our Help).
    • *RESULTS* is an HTML table that contains the search results. In version 5.0x, the table itself is not really customizable, it always use an "Arial" SIZE=2 font to display the text. Howeve you may be to alter the position and/or appearance of this table by nesting it within your own table and/or using CSS.

  3. The Help which comes with version 5.0x, itself uses this feature to display a custom search result page (it also highlights search hits). A screen shot of this (after searching for password and security) is shown below.

    Custom Search Results Page


Notes
  1. This example has been tested with Activ E-Book Compiler versions 5.00 (5.00 is the latest version - beta release - at the time of writing). It is possible that changes might be required for e-books made with subsequent versions.

  2. This example will not work with versions of Activ E-Book Compiler prior to 5.00.

  3. Important: This example relies on the search template's feature as implemented in 5.0x, which is classifed as "experiment". Changes may be required to use this example with subsequent versions of the compiler.


Amazon Integration Powered by Piranha Feed




 

Sites about eBooks

EBookApprentice.com
Learn about eBook publishing

EBookCompiler.com
Software to create your own eBooks

CoverFactory.com
Create eBook Covers with ease

EBookPower.com
Add multimedia to your eBooks

EBookFriends.com
Discuss eBooks

EBookInterviews.com
Read about other eBook authors' experiences

EBookSubmit.com
Learn about eBook marketing

EBookJungle.com
Searchable directory of eBooks



Related Links

Internet Marketing
 Learn Marketing
 Marketing Tactics

Promotion Links
 Email Marketing
 Increase Traffic
 Press Releases
 Search Engines
 Web Position

Web Site Building
 Accept Credit Cards
 Affiliate Programs
 Domain Names
 Setup Internet Store
 Web Design Tutorial
 Web Hosting
 Webmaster Tools

 

 
About/Terms Of Use     Privacy     Site Map

Copyright © 2002-2008, Answers 2000 Limited