User Tools

Site Tools


tn:features

This is an old revision of the document!


Drupal compatibility

  • 2008-06-09,
    • The D6 branch is now in RC, should be final by the end of the month
    • The dev branch for D7 will be opened this month.
  • 2007-06-12, branches have been created. The D4.6/D4.7 versions are considered stable, and the code have been overhauled to PHP5 OOP for Drupal
  • 2006-10-01, taxonews is still compatible with BOTH D4.6.x and D4.7.x using the same version of taxonews.module

Paths

  • D6 branch:
    • admin/block/configure/taxonews/<delta> links to the configuration page for each block. The value of delta is the tid of the term in the vocabulary chosen for taxonews
    • admin/build/settings/taxonews links to the settings page for the module
  • D5, D4.7, D4.6 branches:
    • 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. (development versions for Drupal 5 now allow the use of multiple vocabularies.

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::VAR_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.1212915626.txt.gz · Last modified: 2020/11/23 17:23 (external edit)