Skip to content
This repository was archived by the owner on Jun 18, 2018. It is now read-only.

Commit b58aca2

Browse files
committed
Updated developers-guide
to include details about the new `{{$index}}` label template placeholder.
1 parent f0cdc1f commit b58aca2

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

docs/developers-guide.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ The prevalue editor allows you to configure the following properties.
4646

4747
| Member | Type | Description |
4848
|-----------------|---------|-------------|
49-
| Doc Types | List | Defines a list of doc types to use as data blue prints for this **Nested Content** instance. For each doc type you can provide the alias of the tab you wish to render (first tab is used by default if not set) as well as a template for generating list item labels using the syntax `{{propertyAlias}}`. |
50-
| Min Items | Int | Sets the minimum number of items that should be allowed in the list. If greater than 0, **Nested Content** will pre-populate your list with the minimum amount of allowed items and prevent deleting items below this level. Defaults to 0.
51-
| Max Itemd | Int | Sets the maximum number of items that should be allowed in the list. If greater than 0, **Nested Content** will prevent new items being added to the list above this threshold. Defaults to 0. |
52-
| Confirm Deletes | Boolean | Enabling this will require item deletions to require a confirmation before being deleted. Defaults to TRUE |
49+
| Doc Types | List | Defines a list of doc types to use as data blue prints for this **Nested Content** instance. For each doc type you can provide the alias of the tab you wish to render (first tab is used by default if not set) as well as a template for generating list item labels using the syntax `{{propertyAlias}}`. If you would like to include the index position in the label, you can use `{{$index}}`. |
50+
| Min Items | Integer | Sets the minimum number of items that should be allowed in the list. If greater than `0`, **Nested Content** will pre-populate your list with the minimum amount of allowed items and prevent deleting items below this level. Defaults to `0`.
51+
| Max Items | Integer | Sets the maximum number of items that should be allowed in the list. If greater than `0`, **Nested Content** will prevent new items being added to the list above this threshold. Defaults to `0`. |
52+
| Confirm Deletes | Boolean | Enabling this will require item deletions to require a confirmation before being deleted. Defaults to `true`. |
5353
| Show Icons | Boolean | Enabling this will display the items doc type icon next to the name in the **Nested Content** list. |
5454
| Hide Label | Boolean | Enabling this will hide the property editors label and expand the **Nested Content** property editor to the full with of the editor window. |
5555

src/Our.Umbraco.NestedContent/Web/UI/App_Plugins/NestedContent/Js/nestedcontent.filters.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ angular.module("umbraco.filters").filter("ncNodeName", function (editorState, en
3535
ncNodeNameCache.keys[input] = "Loading...";
3636

3737
entityResource.getById(input, "Document")
38-
.then(function (ent) {
39-
ncNodeNameCache.keys[input] = ent.name;
40-
});
38+
.then(function (ent) {
39+
ncNodeNameCache.keys[input] = ent.name;
40+
});
4141

4242
// Return the current value for now
4343
return ncNodeNameCache.keys[input];

0 commit comments

Comments
 (0)