-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
now works with content-type for configuration :)
- Loading branch information
1 parent
99292c2
commit b4aa659
Showing
8 changed files
with
124 additions
and
5 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
...c.Dnn.DataSources.FnL/.data/contenttypes/System.d98db323-7c33-4f2a-b173-ef91c0875124.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"_":{"V":1},"ContentType":{"Id":"d98db323-7c33-4f2a-b173-ef91c0875124","Name":"|Config ToSic.SexyContent.DataSources.DnnFormAndList","Scope":"System","Description":"Configuration for the Form and List Data Source","Attributes":[{"Name":"Title","Type":"String","IsTitle":true,"Metadata":[{"Id":40448,"Version":1,"Guid":"eb7cacd2-6da7-42cf-a38c-3c1e0b6f4457","Type":{"Name":"@All","Id":"@All"},"Attributes":{"String":{"DefaultValue":{"*":"FnL DataSource Configuration"},"Name":{"*":"Title"},"Notes":{"*":"<p>Just a title for you to give this configuration a name.</p>"}},"Boolean":{"Required":{"*":true},"VisibleInEditUI":{"*":true}}},"Owner":"dnn:userid=1"}]},{"Name":"Notes","Type":"String","IsTitle":false,"Metadata":[{"Id":43374,"Version":2,"Guid":"8898809b-f758-46b0-9e60-5dc543100107","Type":{"Name":"@All","Id":"@All"},"Attributes":{"String":{"CustomJavaScript":{"*":""},"DefaultValue":{"*":""},"InputType":{"*":"string-default"},"Name":{"*":"Notes"},"Notes":{"*":"<p>just some notes if you want them...</p>"},"ValidationRegExJavaScript":{"*":""}},"Boolean":{"Disabled":{"*":false},"Required":{"*":false},"VisibleInEditUI":{"*":true}}},"Owner":"dnn:userid=1"},{"Id":43375,"Version":1,"Guid":"97e0be58-3513-4e0d-89b9-27bb90c6db4d","Type":{"Name":"@string-default","Id":"@string-default"},"Attributes":{"Number":{"RowCount":{"*":3.0}}},"Owner":"dnn:userid=1"}]},{"Name":"ModuleId","Type":"String","IsTitle":false,"Metadata":[{"Id":40449,"Version":1,"Guid":"f7093be0-ebc7-4759-aa90-d54808ba0fe2","Type":{"Name":"@All","Id":"@All"},"Attributes":{"String":{"DefaultValue":{"*":""},"Name":{"*":"FnL Module Id"},"Notes":{"*":"<p>The ID of the Form and List Module in DNN. The Data will be retrieved from that specific module. </p>"}},"Boolean":{"Required":{"*":true},"VisibleInEditUI":{"*":true}}},"Owner":"dnn:userid=1"}]},{"Name":"TitleFieldName","Type":"String","IsTitle":false,"Metadata":[{"Id":40450,"Version":1,"Guid":"48ff65ea-ba00-4243-87c5-9132f24cd593","Type":{"Name":"@All","Id":"@All"},"Attributes":{"String":{"DefaultValue":{"*":""},"Name":{"*":"Title Field Name"},"Notes":{"*":"<span>The column in Form and List which should become the title of the resulting content-items. If you leave this blank, the system will just pick the first column as title. </span>"}},"Boolean":{"Required":{"*":false},"VisibleInEditUI":{"*":true}}},"Owner":"dnn:userid=1"}]},{"Name":"ContentTypeName","Type":"String","IsTitle":false,"Metadata":[{"Id":40451,"Version":1,"Guid":"fef1a456-4e74-4299-8a1b-792da607a5ec","Type":{"Name":"@All","Id":"@All"},"Attributes":{"String":{"DefaultValue":{"*":""},"Name":{"*":"Content Type Name"},"Notes":{"*":"<p>This is the internal name for the resulting Content-Type. Usually not important, if you leave it blank a default value (usually FnL) is used. </p>"}},"Boolean":{"Required":{"*":false},"VisibleInEditUI":{"*":true}}},"Owner":"dnn:userid=1"}]}],"Metadata":[{"Id":43373,"Version":1,"Guid":"ac8e7948-52fa-4f9f-abc6-f3527ac58186","Type":{"Name":"ContentType","Id":"ContentType"},"Attributes":{"String":{"Description":{"*":"Configuration for the Form and List Data Source"},"EditInstructions":{"*":"<p>This data-source lets you access FnL (UDT) data and process / show it in 2sxc. Here is the <a href=\"https://github.com/2sic/dnn-datasource-form-and-list/wiki\" target=\"_blank\" rel=\"noopener\">wiki</a> if you need it (still work in progress...)</p>"},"Label":{"*":"|Config ToSic.SexyContent.DataSources.DnnFormAndList"},"Notes":{"*":""}},"Hyperlink":{"Icon":{"*":""},"Link":{"*":""}}},"Owner":"dnn:userid=1","For":{"Target":"ContentType","String":"d98db323-7c33-4f2a-b173-ef91c0875124"}}]}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
ToSic.Dnn.DataSources.FnL/RegisterContentTypeForConfigUi.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using System.Collections.Generic; | ||
using System.Web; | ||
using ToSic.Eav.Repositories; | ||
|
||
namespace ToSic.Dnn.DataSources | ||
{ | ||
/// <summary> | ||
/// This class simply tell the EAV / 2sxc that there is another folder | ||
/// which contains content-types to load from... | ||
/// </summary> | ||
public class RegisterContentTypeForConfigUi: RepositoryInfoOfFolder | ||
{ | ||
/// <summary> | ||
/// Empty constructor, so it can be used from reflection | ||
/// </summary> | ||
public RegisterContentTypeForConfigUi() : base(true, true, null) { } | ||
|
||
public override List<string> RootPaths => new List<string> | ||
{ | ||
HttpContext.Current.Server.MapPath("~/desktopmodules/ToSic.Dnn.DataSources.FnL/.data") | ||
}; | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+1.72 KB
(110%)
ToSic.Dnn.DataSources.FnL/install/ToSic.Dnn.DataSources.FnL_01.00.00_Install.zip
Binary file not shown.
Binary file modified
BIN
+991 Bytes
(110%)
ToSic.Dnn.DataSources.FnL/install/ToSic.Dnn.DataSources.FnL_01.00.00_Source.zip
Binary file not shown.