Forum OpenACS CMS: Re: Figuring out CMS

Collapse
3: Re: Figuring out CMS (response to 1)
Posted by Adrian Byng-Clarke on
That's what I've been trying.

Here is my exact template:

<html>
@content.title@<br>
<content>
</html>

And here is the error I get:

Request Error

can't read "content(title)": no such variable
    while executing
"append __adp_output "<html>
$content(title)<br>
""
    ("uplevel" body line 3)
    invoked from within
"uplevel {
          set __adp_output ""
append __adp_output "<html>
$content(title)<br>
"
append __adp_output [publish::get_html_body [publish::handle_it..."
    (procedure "template::code::adp::/web/drrdemo/templates/research_topic" line 2)
    invoked from within
"template::code::${template_extension}::$__adp_stub"
    (procedure "template::adp_parse" line 57)
    invoked from within
"template::adp_parse "/web/drrdemo/templates/research_topic" [list ]"
    ("eval" body line 1)
    invoked from within
"eval "template::adp_parse \"$file_stub\" \[list $adp_args\]""
    (procedure "publish::merge_with_template" line 38)
    invoked from within
"publish::merge_with_template 8439 -revision_id 8467 -embed"
    ("eval" body line 1)
    invoked from within
"eval $code"
    (procedure "::publish::handle::text" line 15)
    invoked from within
"::publish::handle::text 8439 -revision_id 8467 -embed"
    ("eval" body line 1)
    invoked from within
"eval $code"
    (procedure "handle_item" line 58)
    invoked from within
"handle_item $item_id -revision_id $revision_id -embed"
    (procedure "publish_revision" line 14)
    invoked from within
"publish_revision $revision_id -root_path [publish::get_publish_roots]"
    ("live" arm line 9)
    invoked from within
"switch $new_status {

    production - expired {
      # Delete the published files
      publish::unpublish_item $item_id
    }

    ready {
      # ..."
    (procedure "publish::set_publish_status" line 4)
    invoked from within
"publish::set_publish_status $item_id $publish_status"
    ("uplevel" body line 2)
    invoked from within
"uplevel 1 $transaction_code "
    (procedure "db_transaction" line 1)
    invoked from within
"db_transaction {
      publish::set_publish_status $item_id $publish_status

      set start_when [template::util::date get_property sql_date $start_w..."
    invoked from within
"if { [form is_valid publish_status] } {

  form get_values publish_status publish_status start_when end_when item_id

  db_transaction {
      publish..."
    ("uplevel" body line 86)
    invoked from within
"uplevel {
          # Build an appropriate form to edit the publishing status for an item.
request create
request set_param item_id -datatype integer
req..."
    (procedure "code::tcl::/web/drrdemo/packages/cms/www/modules/items/statu..." line 2)
    invoked from within
"code::tcl::$__adp_stub"
    invoked from within
"if { [file exists $__adp_stub.tcl] } {

      # ensure that data source preparation procedure exists and is up-to-date
      adp_init tcl $__adp_stub
..."
    ("uplevel" body line 3)
    invoked from within
"uplevel {

    if { [file exists $__adp_stub.tcl] } {

      # ensure that data source preparation procedure exists and is up-to-date
      adp_init t..."
    (procedure "adp_prepare" line 2)
    invoked from within
"adp_prepare "
    (procedure "template::adp_parse" line 30)
    invoked from within
"template::adp_parse [file root [ad_conn file]] {}"
    (procedure "adp_parse_ad_conn_file" line 7)
    invoked from within
"$handler"
    ("uplevel" body line 2)
    invoked from within
"uplevel $code"
    invoked from within
"ad_try {
    $handler
      } ad_script_abort val {
    # do nothing
      }"
    invoked from within
"rp_serve_concrete_file [ad_conn file]"
    (procedure "rp_serve_abstract_file" line 60)
    invoked from within
"rp_serve_abstract_file "$root/$path""
    ("uplevel" body line 2)
    invoked from within
"uplevel $code"
    invoked from within
"ad_try {
    rp_serve_abstract_file "$root/$path"
    set tcl_url2file([ad_conn url]) [ad_conn file]
    set tcl_url2path_info([ad_conn url]) [ad_conn path_inf..."

Collapse
4: Re: Figuring out CMS (response to 3)
Posted by Robert Gaszewski on

Looks that you don't have file research_topic.tcl in directory /web/drrdemo/templates/

You should create this file with content:
content::get_content