Installation
Other docs of this package
- Load the package
From the site where you intend to install the new package, go to the "yourdomain.com/admin/apm/package-load" page. Then fill in: "www.arsdigita.com/acs-repository/download/apm/enhanced-news-1.0.apm".
An alternative way is to download the 'enhanced-news-1.0.apm' file to your local disk. An .apm file is nothing more than a gzipped tar file. So you just need to gunzip and untar the file to your /packages directory. On linux platform, you can try:
% tar -xvzf enhanced-news-1.0.apm --dir /web/yourservicename/packages
Then on your own site, visit the page "yourdomain.com/admin/apm/package-scan" . The new package will automatically be read in.
- Load Data Model
The news module is included in the ACS3.4 distribution. So the upgrade sql script is the right one to run.% cd /web/yourservicename/packages/news % sqlplus username/password < upgrade-from-newsmodule.sql- Enable the package
Go to /admin/apm page, select the Enhanced News package. Then enable the package by click on the "Enable this version of the package" link towards the bottom part of the page. Restart the web server.
- Set up Newsgroups
The approval policy of all existing newsgroups are default to be "closed". The settings in the parameter file are no longer used. So the site-wide administrator should visit page /admin/news to make sure the approval policy settings are correct, as well as set up admin group for existing newsgroups.
- URL Change
The user pages for this Enhanced News package can be accessed at /news, while the New module can still be accessed at /news. Since the Enhanced News package uses the same tables as the News module (but more columns are added), the news module /news should still work.
To keep the same url /news, but use the Enhanced News package, just edit the procs.tcl file to un-comment out the line registering the redirect proc. (line 10). The procs.tcl has to be reloaded before the redirect takes effect.
If the News module was linked from other pages on your site, then the links should be updated to point to the correct urls.
- News Module Files
The News module related files should be removed. This includes:
- /www/admin/news/*
- /www/news/*
- /tcl/news-defs.tcl
If the News module was associated with any groups (there is link to the News module at /groups/groupname page), then you should keep the file /www/news/index.tcl. In the file, keep only one line:
ad_returnredirect "/news"- Parameter File
Following lines should be added to the parameter .ini file:[ns/server/yourservicename/acs/news] ; do we allow users to comment on news SolicitCommentsP=1 CommentApprovalPolicy=open