Hi, Joe!
It is necessary to correct sort order after you add the module to the panel or move the module between the panels
PageLayout.aspx.cs
1) private void btnCreateNewContent_Click(Object sender, EventArgs e)
change:
ArrayList modules = GetPaneModules("contentPane");
to
ArrayList modules = GetPaneModules(m.PaneName);
and
Module.UpdateModuleOrder(pageID, item.ModuleId, item.ModuleOrder, "contentPane");
to
Module.UpdateModuleOrder(pageID, item.ModuleId, item.ModuleOrder, m.PaneName);
2) and for move the module between the panels
private void MoveContent(ListBox listBox, string sourcePane, string targetPane)
after CurrentPage.RefreshModules();
add
ArrayList modulesSource = GetPaneModules(sourcePane);
OrderModules(modulesSource);
foreach (Module item in modulesSource)
{
Module.UpdateModuleOrder(pageID, item.ModuleId, item.ModuleOrder, sourcePane);
}
ArrayList modulesTarget = GetPaneModules(targetPane);
OrderModules(modulesTarget);
foreach (Module item in modulesTarget)
{
Module.UpdateModuleOrder(pageID, item.ModuleId, item.ModuleOrder, modulesTarget);
}
3) GoogleAnalyticsScript.cs
SetupMainScript()
change:
script.Append("\n<script type=\"text/javascript\" src=\"" + overrideScriptUrl + "\" />\n");
to
script.Append("\n<script type=\"text/javascript\" src=\"" + overrideScriptUrl + "\" >");
script.Append(" </script>");
reason for the change is:
If the source is:
<script type="text/javascript" src="/ClientScript/googleanalytics/ga.js" />
Any script recorded after this code is not executed in browsers Firefox and IE. It executed only in Opera and Google Chrome
If the source is:
<script type="text/javascript" src="/ClientScript/googleanalytics/ga.js" > </script>
Scripts after this code are executed in all browsers
Best regards, Alexander