User Tools

Site Tools


tn:features

This is an old revision of the document!


Drupal compatibility

  • As of 2006-10-01, taxonews is still compatible with BOTH drupal 4.6.x and 4.7.x using the same version of taxonews.module
  • As of 2007-06-12, branches have been created. The 4.6/4.7 versions are considered stable, and the code have been overhauled to PHP5 OOP for Drupal 5

Paths

  • admin/block/configure/taxonews/<delta> links to the configuration page for each block. The value of delta is the rank of the term in the vocabulary chosen for taxonews, ordered by name and tid. Term weights are not used for ordering.
  • admin/settings/taxonews links to the settings page for the module

Blocks

Taxonews provides one block per taxonomy term from ONE single vocabulary used to classify news.

A static content can be supplied as a default for each block independently when there is no node matching both tid and freshness requirements. This is defined on the block configuration page.

Themeability

Taxonews defines one themeable function

theme_taxonews_block_view($delta, $items = null, $tid)

Using the value of $delta, it is possible to theme each block differently in a site-specific theme. The title of each block is defined as a configuration option for the block

The default theme displays:

  • the titles and links to a number of nodes matching the chosen term, themed using using theme_item_list. The maximum number of nodes displayed is determined by the smallest of
    • the number of nodes younger than variable_get('taxonews_lifetime', TAXONEWS_LIFETIME)
    • 5
  • an “Archive” link to the list of all nodes matching the chosen term with taxonomy depth unspecified
  • an optional RSS feed icon, displayed if variable_get(TAXONEWS_VAR_FEED, true) with taxonomy depth 0
tn/features.1181684553.txt.gz · Last modified: 2020/11/23 17:23 (external edit)