5 votes

uLoremsy - Property Prevalue Setter

uLoremsy allows you to set prevalues for properties.

See a demo here: http://www.screenr.com/87Ls

Prevalues are set in a simple xml file (/config/uLoremsy.config). uLoremsy allows you to define prevalues for different site roots (see example xml below).

<?xml version="1.0"?>
    <tree nodeName="Simple website" enabled="true">
        <documentType nodeTypeAlias="umbTextpage" enabled="true">
            <property alias="bodyText" enabled="true">
                Lorem ipsum dolor sit amet, consectetur adipiscing elit.

<!-- example using wildcard for nodeTypeAlias -->
<documentType nodeTypeAlias="umbHomepage" enabled="true">
            <property alias="siteName" enabled="true">
                [INSERT Site Name]

    <tree nodeName="Simple website 2" enabled="true">
<documentType nodeTypeAlias="umbTextpage" enabled="true">
            <property alias="bodyText" enabled="true">
                [INSERT BODY TEXT HERE]



You do not have to define prevalues for all your tree roots and doctypes. Wildcards can be used. 

Example 1:
Secifying a wildcard for any Tree root:
<tree nodeName="*" enabled="true">

Example 2:
Specifying a wildcard for any doctype
<documentType nodeTypeAlias="*" enabled="true">


Extra properties

Supported .Net values

  • DateTime.Now
  • DateTime.UtcNow


Supported Umbraco Document values

  • Document.Id
  • Document.DateCreated
  • Document.DateUpdated
  • Document.Name
  • Document.NodeTypeAlias


Supports Umbraco values from ancestor Document
eg. To get the name of the parent

eg. To get the name of the grandparent

Supports Custom properties of ancestor Documents
Eg. If the parent contains a property called bodyText

Eg. If the grandparent contains a property called bodyText


Version History

- For Umbraco 7 

- For Umbraco 6 

- Added comma separated doctypes

- Supports specific Umbraco properties and custom properties (including from ancestors)
- Processes wildcards first.

- Supports DateTime.Now and DateTime.UtcNow



Package owner

Anthony Dang

Anthony Dang

Anthony has 2558 karma points

Package Compatibility

This package is compatible with the following versions as reported by community members who have downloaded this package:
Untested or doesn't work on Umbraco Cloud
Version 8.18.x (untested)

You must login before you can report on package compatibility.

Previously reported to work on versions:

Package Information

  • Package owner: Anthony Dang
  • Created: 16/11/2011
  • Current version 2.0
  • License MIT
  • Downloads on Our: 3.5K

External resources