Skip to content

Commit ac277f9

Browse files
committed
Packaging
1 parent 971b66d commit ac277f9

File tree

7 files changed

+141
-0
lines changed

7 files changed

+141
-0
lines changed

Umbraco Relation Editor.sln

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Umbraco.RelationEditor", "U
99
EndProject
1010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Umbraco.RelationEditor.Tests", "Umbraco.RelationEditor.Tests\Umbraco.RelationEditor.Tests.csproj", "{1F10C3B0-4F95-412E-B2C1-4B47E3E138A3}"
1111
EndProject
12+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Readmes", "Readmes", "{9F826BBD-9271-459B-A5E1-D2B810350914}"
13+
ProjectSection(SolutionItems) = preProject
14+
readme.txt = readme.txt
15+
EndProjectSection
16+
EndProject
1217
Global
1318
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1419
Debug|Any CPU = Debug|Any CPU

Umbraco.RelationEditor.Web/Umbraco.RelationEditor.Web.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@
228228
<Content Include="App_Plugins\RelationEditor\Package.manifest" />
229229
<Content Include="App_Plugins\RelationEditor\editrelations.html" />
230230
<Content Include="config\RelationEditor.config" />
231+
<Content Include="config\relationeditor.sample.config" />
231232
<None Include="Web.Debug.config">
232233
<DependentUpon>Web.config</DependentUpon>
233234
</None>
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
<!--
2+
Relations need to be enabled for object types for the menu to appear.
3+
4+
Supported ObjectTypes are
5+
* Document
6+
* Media
7+
* DocumentType
8+
* MediaType
9+
10+
Supported relation types are
11+
* Document -> Document
12+
* Document -> Media
13+
* Media -> Document
14+
* Media -> Media
15+
* DocumentType -> DocumentType
16+
* DocumentType -> MediaType
17+
* MediaType -> DocumentType
18+
* MediaType -> MediaType
19+
20+
Document and Media need a specified Alias to be enabled.
21+
Alias is the alias of the respective type.
22+
IE. <ObjectType Name="Document" Alias="myDocumentTypeAlias">
23+
24+
Types does not need, nor should have alias.
25+
IE. <ObjectType Name="DocumentType"/>
26+
27+
Relations to be displayed has to be enabled by adding EnabledRelation elements.
28+
IE. <EnabledRelation Alias="myRelationType"/>
29+
30+
For documents and media, you can limit which types of related items to support.
31+
IE. <EnabledChildType Alias="otherDocumentTypeAlias"/>
32+
33+
If no enabled child types are enabled, all types will be selectable.
34+
35+
Note: Names and aliases are case sensitive.
36+
37+
Here's a sample configuration:
38+
<RelationEditor>
39+
<ObjectType Name="Document" Alias="page">
40+
<EnabledRelation Alias="documentRelation">
41+
<EnabledChildType Alias="post"/>
42+
</EnabledRelation>
43+
<EnabledRelation Alias="docMediaRel">
44+
<EnabledChildType Alias="Image"/>
45+
</EnabledRelation>
46+
</ObjectType>
47+
<ObjectType Name="Document" Alias="post">
48+
<EnabledRelation Alias="documentRelation">
49+
<EnabledChildType Alias="page"/>
50+
</EnabledRelation>
51+
</ObjectType>
52+
<ObjectType Name="DocumentType">
53+
<EnabledRelation Alias="typeToType"/>
54+
</ObjectType>
55+
</RelationEditor>
56+
-->
57+
<RelationEditor>
58+
</RelationEditor>
14.2 KB
Loading
2.93 KB
Loading
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0"?>
2+
<package >
3+
<metadata>
4+
<id>Umbraco.RelationEditor</id>
5+
<version>$version$</version>
6+
<title>$title$</title>
7+
<authors>Lars-Erik Aabech</authors>
8+
<owners>Lars-Erik Aabech</owners>
9+
<projectUrl>http://lars-erik.github.io/umbraco-relation-editor</projectUrl>
10+
<requireLicenseAcceptance>false</requireLicenseAcceptance>
11+
<description>$description$</description>
12+
<releaseNotes/>
13+
<copyright>Copyright 2014 Lars-Erik Aabech / MarkedsPartner AS</copyright>
14+
<tags>umbraco relations</tags>
15+
</metadata>
16+
<files>
17+
<file src="..\umbraco.relationeditor.web\app_plugins\relationeditor\*.*" target="content\App_Plugins\RelationEditor"/>
18+
<file src="..\umbraco.relationeditor.web\config\relationeditor.sample.config" target="content\config\relationeditor.config"/>
19+
<file src="..\readme.txt" target=""/>
20+
</files>
21+
</package>

readme.txt

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
Umbraco 7 Relation Editor
2+
3+
The editor will appear for supported objects after they're configured in /config/relationeditor.config.
4+
5+
Supported ObjectTypes are
6+
* Document
7+
* Media
8+
* DocumentType
9+
* MediaType
10+
11+
Supported relation types are
12+
* Document -> Document
13+
* Document -> Media
14+
* Media -> Document
15+
* Media -> Media
16+
* DocumentType -> DocumentType
17+
* DocumentType -> MediaType
18+
* MediaType -> DocumentType
19+
* MediaType -> MediaType
20+
21+
Document and Media need a specified Alias to be enabled.
22+
Alias is the alias of the respective type.
23+
IE. <ObjectType Name="Document" Alias="myDocumentTypeAlias">
24+
25+
Types does not need, nor should have alias.
26+
IE. <ObjectType Name="DocumentType"/>
27+
28+
Relations to be displayed has to be enabled by adding EnabledRelation elements.
29+
IE. <EnabledRelation Alias="myRelationType"/>
30+
31+
For documents and media, you can limit which types of related items to support.
32+
IE. <EnabledChildType Alias="otherDocumentTypeAlias"/>
33+
34+
If no enabled child types are enabled, all types will be selectable.
35+
36+
Note: Names and aliases are case sensitive.
37+
38+
Here's a sample configuration:
39+
<RelationEditor>
40+
<ObjectType Name="Document" Alias="page">
41+
<EnabledRelation Alias="documentRelation">
42+
<EnabledChildType Alias="post"/>
43+
</EnabledRelation>
44+
<EnabledRelation Alias="docMediaRel">
45+
<EnabledChildType Alias="Image"/>
46+
</EnabledRelation>
47+
</ObjectType>
48+
<ObjectType Name="Document" Alias="post">
49+
<EnabledRelation Alias="documentRelation">
50+
<EnabledChildType Alias="page"/>
51+
</EnabledRelation>
52+
</ObjectType>
53+
<ObjectType Name="DocumentType">
54+
<EnabledRelation Alias="typeToType"/>
55+
</ObjectType>
56+
</RelationEditor>

0 commit comments

Comments
 (0)