Author:
nickdunn
Version:
1.2.1
Released:
7 March 2011
Category:
Field Types

Browse

Description

This field extends the existing Number field by incrementing the field value by one every time the field is returned in a Data Source XML. This is useful for storing counts of views of pages or articles on your site, to allow for ‘sort by popularity’ functionality or basic page view statistics.

A new entry will provide a default value of zero. The value will increment every time the field is output by a Data Source. If you do not wish a Data Source to touch the value, simply do not output the field. The value can be amended at any time.

Note: this field requires the Number field to be present in your /extensions/ folder, but not necessarily installed (it simply extends the Number field class).

Repository

https://github.com/nickdunn/incrementnumberfield

Discuss this Extension

Compatibility

2.7.10 Unsure
2.7.9 Unsure
2.7.8 Unsure
2.7.7 Unsure
2.7.6 Unsure
2.7.5 Unsure
2.7.4 Unsure
2.7.3 Unsure
2.7.2 Unsure
2.7.1 Unsure
2.7.0 Unsure
2.6.11 Unsure
2.6.10 Unsure
2.6.9 Unsure
2.6.8 Unsure
2.6.7 Unsure
2.6.6 Unsure
2.6.5 Unsure
2.6.4 Unsure
2.5.4 Unsure

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details