Forum OpenACS Q&A: Re: Search and OpenFTS

Collapse
5: Re: Search and OpenFTS (response to 1)
Posted by James Bennin on
Again, thank you for your answers.  You are really helping me out.  So far the packages installed are bug-tracker and its dependent packages and that is pretty much it. (other than openfts and search).

Thank you

James

PS:  Also I understand to create a web page you need three files: -.adp, -.tcl, -.xql.  I wrote my queries and wrote my tcl script but the variables I passed in to the adp are not working right.  Are the files supposed to be compiled automatically?
These are my different scripts:

<pre>

<master>
<property name="title">Congratulations</property>
<p>Today's date is @date@ and the time is now @time@</p>

</pre>

<pre>
ad_page_contract {
    Main view page for one project.

    @author mailto:jsb88@stlife.byu.edu
    @creation-date 2003-08-14
    @cvs-id $Id$

}

-properties {
    date:onevalue
    time:onevalue

}

db_1row date_select {}

db_2row time_select {}

</pre>

tcl file

<pre>

<?xml version="1.0"?>
<queryset>
  <fullquery name="date_select">
    <querytext>
        SELECT current_date;
    </querytext>
  </fullquery>

  <fullquery name="time_select">
    <querytext>
        SELECT current_time;
    </querytext>
  </fullquery>
</queryset>

</pre>

xql file