This project is not covered by Drupal’s security advisory policy.
Introduction
This module allows CCK fields values to be displayed on separate pages.
This module was created in order to replace old approach of media handling used
at our websites (it was image as node approach and nodereference as glue between
parent nodes (like articles) and child as images). In our case it was big impact
for performance (we got over 300 000 image nodes for only 70 000 "parent nodes")
This solution is quite lightweight (it doesn't requires views) and uses cck
content cache, so it works really fast.
This solution has some disadvantages. CCK field is not powerful like node, so
you cannot do many things like comment such nodes and do other thins.
But if you need to display fields on separate pages, with various layout. If you
need some basic support for tokens and pathauto, this module might serve you well.
Usage
In order to use this module, please enable single field view mode at content type settings page (admin/content/node-type/[content-type-name]). After that, selected, field will be displayed on page node/%nid/field/%field_name/%delta.
In order to theme CCK single values, you can use one of templates with following name's pattern:
single_field_viewer.tpl.php
single_field_viewer-{node-type}.tpl.php
single_field_viewer-{node-type}-{field-name}.tpl.phpAt template level, you can access following variables:
$node - current node
$field - field name
$delta - field value delta
$value - current field value
If you need basic token support, on single cck value page following tokens are generated:
single_field_viewer_field_delta - current field value delta
single_field_viewer_field_name - current field name
(Following values work currently for emvideo and filefield cck fields)
single_field_viewer_data_title - field title attribute
single_field_viewer_data_title-words - field title in comma separated form
single_field_viewer_data_description - field description
Sponsorship
This project is sponsored by Media Regionalne, one of the leading media company in Poland.
Project information
Maintenance fixes only
Considered feature-complete by its maintainers.- Created by jsobiecki on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.
