CGI::WeT::Modules::News

CGI::WeT::Modules::News are Perl extensions to engine to allow article management.
Download

CGI::WeT::Modules::News Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Price:
  • FREE
  • Publisher Name:
  • CGI::WeT::Modules::News Team
  • Publisher web site:
  • http://search.cpan.org/~jsmith/CGI-WeT-0.71/lib/CGI/WeT/Modules/News.pm

CGI::WeT::Modules::News Tags


CGI::WeT::Modules::News Description

CGI::WeT::Modules::News are Perl extensions to engine to allow article management. CGI::WeT::Modules::News are Perl extensions to engine to allow article management.SYNOPSIS use CGI::WeT::Modules::News ();This module provides rendering constructs to allow navigation through a set of articles. Support is provided for multiple types of articles in multiple groupings (or channels).EXTENSIONSCGI::WeT::Modules::News::initialize($engine, $r)This subroutine will initialize the engine passed as $engine with information from Apache (passed as $r). The base URL for articles is set with the following. PerlSetVar WeT_NewsURL /baseURL/This is available for building URLs as @@NEWS@@. For example, general articles are under the URL returned by $engine->url('@@NEWS@@/general/');The directory may likewise be found by using $engine->filename($engine->url('@@NEWS@@/general/'));NEWS_SUMMARYThis extension will insert a summary of available news items starting with the most recent (ordered by submission time). The top of the content stack is applied to each item as a template.The template used is called with four elements on the content stack: Title, Date, Author, and Summary (Title on top of stack). The available arguments for controlling NEWS_SUMMARY arechannelThis argument specifies which channel to collect items from. This defaults to `general.'categoryThis argument specifies which category to collect items from. Only one category may be specified at this time. There is no way to block items marked as `all.' The default category is `all.'linkIf this is set to `title,' the title will be made a link. No other value has an effect.numberThis tells NEWS_SUMMARY how many items to put in the list. There is no default for this argument, so one must be supplied.NEWS_NEXTThis extension is like CGI::WeT::Modules::Basic's LINK in that the top of the content stack is made into a link. The location is determined by the values of the arguments.channelSee NEWS_SUMMARYtypeThis can be either `story' or `response.' If `story,' then the articles in the top level are looked at. Otherwise, the articles in the current directory are examined.sequenceThis can be either `next' or `prev.'Requirements:· PerlWhat's New in This Release:· Removed CGI::WeT::User from distribution as non-germane.· True sub-class of CGI, so can handle both procedural and object-oriented interfaces.· Added mod-perl handler to replace scripts/chooser.cgi.· chooser.cgi is not Y2K complient - CGI::WeT::Chooser is.


CGI::WeT::Modules::News Related Software