Single Record Display
The Single Record Display feature was included in the Database Doctor to allow
for displaying complete information from a database record, especially where it would not fit in
standard search results. In addition, we have included the ability to include a link that will
allow the viewer to return to the search results that they were looking at when they clicked
the link in the first place.
There are three main parts that make this work. The link to the single record display, the template to display
the record, and the return link.
Linking to the Single Record Display
You will want to pick out one column that is displayed in the Search Results
and create an HTML link around this column. The link format is provided in the
Search Results Item HTML template. The HTML link would look like this, assuming FIELD2 was
the column being linked:
|
|
The Database Doctor Manual is designed to help you get the most out of the program.
If you would like something discussed here, please post it to the
Database Doctor Forum
Example Setups
We have several examples of different types of uses of the Database Doctor Pro.
These examples will also show you different ways to configure search links to accomplish anything
that might be needed.
Baseball Card Example
Comic Book Example
Directory Example
|
|
|
<a href="display.cgi?display=1&record=RECORD&RETURN">FIELD2</a>
When the program is displaying the record in the search results, it will then
replace the word RECORD with the appropriate record to display, and replace RETURN
with the string that includes the search they performed to display the result in the first place.
Single Record Display Template
The template will insert pieces of the record being displayed into the template.
You will use the same replacemet tags available in the Search Results Item template.
Keep in mind that all Single Record Displays will use the same HTML format.
The best way to create this template is to make a display in your HTML
editor of choice (mine is Notepad...:-)) and adjust the HTML to the way
you want it with sample data. There is no end to the simplicity or complexity that you can create
here. When you have the sample display the way you want it, replace the
individual pieces of sample data with the corresponding replacement tags for each column.
Place this HTML in the box provided for editing the Single Record Template, and the
program will then display every record in the same way.
Also, please keep in mind that this template will NOT include HTML for the Header
and Footer of the page. This is set elsewhere, and is used to make these pages. Essentially
what you are making with this template is the middle of the page.
Returning to the Search Results
Once your viewer has finished with the Single Record Display they may return
to the Search Results that they came from with the retrun link.
This link is provided by default in the HTML template,
and can be recreated with this HTML link:
<a href="RETURN_LINK">Return to Search Results</a>
|