51 votes

Standard Values in Umbraco

This package adds a Standard Values folder in the Settings section of Umbraco, which allows you to add standard values to all your document types.
You can create standard values for each of your document types or just a selected few, you decide. All values are saved in the original DataTypes, so there should be no limitation as to creating standard values.
Values are inserted when you create a new document based on a document type, for which you added standard values to.

The package allows you to use two keys by default: $name$ and $date$

The $name$ key takes the name of the content node you are creating and replaces it with this key whereever you inserted it.

The $date$ key inserts todays date, and the format can be configured in the supplied config file, which is located under (your umbraco folder)/plugins/Sitereactor/StandardValues/Config/StandardValue.config (default value is dd-MMM-yyyy).

From version 1.1 you can create your own keys based on these key types:
Date format (use this type to specify one or more date formats, which can be used for inserting todays date).
Dictionary Item (use this type to get a dictionary item by dictionary key and culture).
Node (use this type to get a specific property from a content node by node id and property alias).
Static Value (use this type to enter a static text string).
XPath (use this type to get content/properties from published nodes by the specified XPath - remember that there is no currentPage though).

The current version has been tested on the following versions of Umbraco:

Umbraco 4.7.1 SQL Server
Umbraco 4.7.1 SQL CE

MySQL remains untested, but should also work in Umbraco version 4.7.1.

Short screencasts of the package in action:
http://screenr.com/Puh (version 1.1) - Part 1
http://screenr.com/iuh (version 1.1) - Part 2

http://screenr.com/GP1 (version 1.0)

Please note that version 1.6 only works in Umbraco version 6.0 or newer.

If you have suggestions for other keys, please add your request to the project foum.
Also, if you encounter certain datatypes (like the datepicker) that doesn't work with Standard Values or the two keys, please add it to the suggestions forum.

Remember to vote up the project ;)



Project owner

Morten Christensen

Morten Christensen

Morten has 2729 karma points

Project Compatibility

This project is compatible with the following versions as reported by community members who have downloaded this package:
Untested or doesn't work on Umbraco Cloud
7.6.x (untested)
7.5.x (untested)
7.4.x (untested)
7.3.x (untested)
7.2.x (0%)
7.1.x (untested)
7.0.x (untested)
6.1.x (0%)
6.0.x (100%)

You must login before you can report on package compatibility.

Project Information

  • Project owner: Morten Christensen
  • Created: 24/01/2010
  • Current version 1.6
  • License MIT
  • Downloads: 8745

External resources