Forum OpenACS Q&A: Response to Extra code: index.tcl

Collapse
Posted by Roberto Mello on
In my ad.ini (default OpenACS download) it is off by default. Someone must have changed it in your install:

The param is in the "pdm" section, short for Pull Down Menus. The comments could be more explicit. Maybe we'll do that for OpenACS 3.2.4.

[ns/server/yourservername/acs/pdm]
; Flag to display the administration menu bar
MenuOnAdminPagesP=0
; Flag to display the default menu bar on non-/admin pages
MenuOnUserPagesP=0
.tcl config file:
ns_section ns/server/${server}/acs/pdm
        # Flag to display the administration menu bar
        ns_param MenuOnAdminPagesP 0

        # Flag to display the default menu bar on non-/admin pages
        ns_param MenuOnUserPagesP 0

Bob: /bin/nsd8x -t nsd.tcl -u nsadmin server.log 2 & > 1

Did he put the nsd binary and the nsd.tcl under /bin ? I had never seen this... It'll be kinda hard to upgrade later huh ?

If you're restarting the server with "-t nsd.tcl" then the server is reasing nsd.tcl as its config file. The ad.ini or ad.tcl (that should be renamed to yourservicename.ini/.tcl) should be in the parameters/ directory of the OpenACS path and there must be a param in the nsd.tcl explicitly telling it to read the OpenACS config file.

I don't think you can read an ad.ini file having started AOLserver with nsd.tcl (anyone can tell me if this is correct ?), so maybe your ad.tcl file is somewhere else.

Is there a "source /path/to/wherever/ad.tcl" line in your nsd.tcl ?