CCK NodeMenu View

This project is not covered by Drupal’s security advisory policy.

This modules adds the opportunity to define a text or computed field as a list of menu links per node. This menu then can be displayed as a block or with one of two additional formatters within the nodetype.

menu creation

To get the menu links, nodemenu uses some separator to discern menu item, item depth, item link and item label.

view|View the Node
edit|Edit Node
|Lists
*../list_1/%nid|List1
*../list_2/%nid|List2
**../list_2/%nid/full|List 2 - Full View

The separators can be configured in the block configure. That settings also affect the field's formatters (within the first field's nodemenu block setting).

Compatible fields are text (textfield(rows=1), textarea(rows>1), single or multiple values) and computed fields (single and multiple values).

computed field & formatter in node view

to be able to show computed fields with CCK Node Menu formatters (or other additional/custom formatters) in node view you have to modify computed_field.module like in the patch of http://drupal.org/node/207443
this is not relevant for block view

theme

The block's and formatter output can be themed via theme_nodemenu($items,$delta = 0,$nid=0,$nodetype='')(Block & Formatter: Custom Node Menu) and theme_nodemenu_singleitem($items,$delta = 0,$nid=0,$nodetype='')(Formatter: Custom Node Menu - Single Item)

Views display is also supported for multiple and single values.

fetch node id

The Node ID is automatically fetched from URL-Arguments. Restrictions or explicit nid-fetch can be set in block visibility settings, for example:

list/*/*

to fetch the second argument as node id: list/2/5 => $nid = 2

list/*/$
list/*/*

to fetch the third argument as node id: list/2/5 => $nid = 5

Project information

  • caution Minimally maintained
    Maintainers monitor issues, but fast responses are not guaranteed.
  • caution Maintenance fixes only
    Considered feature-complete by its maintainers.
  • Module categories: Content Display
  • Created by derhasi on , updated
  • shield alertThis project is not covered by the security advisory policy.
    Use at your own risk! It may have publicly disclosed vulnerabilities.

Releases