Skip to content

Commit 01f6100

Browse files
committed
Merge branch 'release/v44'
2 parents cc7a76b + 17442ee commit 01f6100

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

108 files changed

+2500
-203
lines changed

OpenContent/CloneModule.ascx.cs

+3-2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
using DotNetNuke.Entities.Tabs;
1919
using DotNetNuke.Framework.JavaScriptLibraries;
2020
using Satrabel.OpenContent.Components;
21+
using Satrabel.OpenContent.Components.Dnn;
2122
using Satrabel.OpenContent.Components.Manifest;
2223

2324
#endregion
@@ -56,7 +57,7 @@ protected override void OnLoad(EventArgs e)
5657
{
5758
{
5859
ListItem li = new ListItem(ti.TabName, ti.TabID.ToString());
59-
li.Text = ti.IndentedTabName;
60+
li.Text = $"{ti.IndentedTabName} <a href='{DnnUrlUtils.NavigateUrl(ti.TabID)}' target='_blank' style='font-size: 10px;text-decoration: none;' class='clonetabid'>({ti.TabID})</span></a>" ;
6061
li.Enabled = ti.TabID != m.TabID;
6162
cblPages.Items.Add(li);
6263

@@ -68,7 +69,7 @@ protected override void OnLoad(EventArgs e)
6869
if (tmi.IsDeleted)
6970
{
7071
//li.Enabled = false;
71-
li.Text = "<i>" + li.Text + "</i>";
72+
li.Text = $"<i>{li.Text}</i>";
7273
}
7374
else
7475
{

OpenContent/Components/Alpaca/AlpacaEngine.cs

+11-1
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,16 @@ private void RegisterAlpaca(bool bootstrap, bool loadBootstrap, bool loadGlyphic
113113
ClientResourceManager.RegisterScript(Page, "~/DesktopModules/OpenContent/js/alpacaengine.js", FileOrder.Js.DefaultPriority + 10);
114114

115115
ClientResourceManager.RegisterStyleSheet(Page, "~/DesktopModules/OpenContent/css/font-awesome/css/font-awesome.min.css", FileOrder.Css.DefaultPriority + 1);
116+
117+
118+
string prefix = (string.IsNullOrEmpty(Prefix) ? "" : $"{Prefix}-");
119+
string physicalDirectory = HostingEnvironment.MapPath("~/" + VirtualDirectory);
120+
string jsFilename = physicalDirectory + "\\" + $"{prefix}edit.js";
121+
if (File.Exists(jsFilename))
122+
{
123+
ClientResourceManager.RegisterScript(Page, $"~/{VirtualDirectory}/{prefix}edit.js", FileOrder.Js.DefaultPriority + 11);
124+
}
125+
116126
}
117127
public void RegisterTemplates()
118128
{
@@ -156,7 +166,7 @@ private void RegisterFields(bool bootstrap)
156166
fieldTypes = FieldTypes(options);
157167
}
158168
}
159-
if (allFields || fieldTypes.Contains("address"))
169+
if (allFields || fieldTypes.Contains("address") || fieldTypes.Contains("mladdress"))
160170
{
161171
string apikey = App.Services.CreateGlobalSettingsRepository(PortalId).GetGoogleApiKey();
162172
ClientResourceManager.RegisterScript(Page, "//maps.googleapis.com/maps/api/js?v=3.exp&libraries=places" + (string.IsNullOrEmpty(apikey) ? "" : "&key=" + apikey), FileOrder.Js.DefaultPriority);

OpenContent/Components/Alpaca/FormBuilder.cs

+12-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ private static void GetFields(SchemaConfig newSchemaFilter, OptionsConfig newOpt
149149

150150
fieldLst.Add(propKey);
151151
}
152-
else if (prop.Value.Type == "number")
152+
else if (prop.Value.Type == "number" || optType == "mlnumber")
153153
{
154154
var newProp = new SchemaConfig()
155155
{
@@ -358,6 +358,17 @@ private FieldConfig CreateFieldConfigFromSchemaAndOptionFile(string key)
358358
};
359359
newConfig.Fields.Add(prop.Key, newField);
360360
}
361+
else if (optType == "mlnumber")
362+
{
363+
var newField = new FieldConfig()
364+
{
365+
IndexType = "float",
366+
Index = true,
367+
Sort = true,
368+
MultiLanguage = true
369+
};
370+
newConfig.Fields.Add(prop.Key, newField);
371+
}
361372
else if (prop.Value.Type == "number")
362373
{
363374
var newField = new FieldConfig()

0 commit comments

Comments
 (0)