diff --git a/AssemblyVersion.cs b/AssemblyVersion.cs
index 55845d1..9bd7c0c 100644
--- a/AssemblyVersion.cs
+++ b/AssemblyVersion.cs
@@ -16,5 +16,5 @@ using System.Reflection;
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
-[assembly: AssemblyVersion("3.0.0.339")]
-[assembly: AssemblyFileVersion("3.0.0.339")]
+[assembly: AssemblyVersion("3.0.0.340")]
+[assembly: AssemblyFileVersion("3.0.0.340")]
diff --git a/Core/Formatter.cs b/Core/Formatter.cs
index fb6d92b..b548366 100644
--- a/Core/Formatter.cs
+++ b/Core/Formatter.cs
@@ -871,13 +871,15 @@ namespace ScrewTurn.Wiki {
/// The string builder.
/// The anchor ID.
private static void BuildHeaderAnchor(StringBuilder buffer, string id) {
- buffer.Append(@"¶");
+ if(Settings.EnableSectionAnchors) {
+ buffer.Append(@"¶");
+ }
}
///
diff --git a/Core/Settings.cs b/Core/Settings.cs
index bb04d29..09fa271 100644
--- a/Core/Settings.cs
+++ b/Core/Settings.cs
@@ -696,6 +696,18 @@ namespace ScrewTurn.Wiki {
}
}
+ ///
+ /// Gets or sets a value indicating whether to display section anchors.
+ ///
+ public static bool EnableSectionAnchors {
+ get {
+ return GetBool(Provider.GetSetting("EnableSectionAnchors"), true);
+ }
+ set {
+ Provider.SetSetting("EnableSectionAnchors", PrintBool(value));
+ }
+ }
+
///
/// Gets or sets a value indicating whether to disable the Breadcrumbs Trail.
///
diff --git a/WebApplication/AdminConfig.aspx b/WebApplication/AdminConfig.aspx
index d2a065c..3bb6181 100644
--- a/WebApplication/AdminConfig.aspx
+++ b/WebApplication/AdminConfig.aspx
@@ -350,6 +350,12 @@
meta:resourcekey="chkEnableSectionEditingResource1" />
+
+
protected global::Anthem.CheckBox chkEnableSectionEditing;
+ ///
+ /// chkEnableSectionAnchors control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::Anthem.CheckBox chkEnableSectionAnchors;
+
///
/// chkEnablePageToolbar control.
///
diff --git a/WebApplication/App_LocalResources/AdminConfig.aspx.cs-CZ.resx b/WebApplication/App_LocalResources/AdminConfig.aspx.cs-CZ.resx
index 530b236..49f7bc5 100644
--- a/WebApplication/App_LocalResources/AdminConfig.aspx.cs-CZ.resx
+++ b/WebApplication/App_LocalResources/AdminConfig.aspx.cs-CZ.resx
@@ -117,6 +117,12 @@
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+ Display anchors for pages' sections
+
+
+
+
diff --git a/WebApplication/App_LocalResources/AdminConfig.aspx.da-DK.resx b/WebApplication/App_LocalResources/AdminConfig.aspx.da-DK.resx
index 2791ea1..ee7c5b1 100644
--- a/WebApplication/App_LocalResources/AdminConfig.aspx.da-DK.resx
+++ b/WebApplication/App_LocalResources/AdminConfig.aspx.da-DK.resx
@@ -117,6 +117,12 @@
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+ Display anchors for pages' sections
+
+
+
+
IP/Host Filter for allowed editing (seperate with commas, Use '*' for wild cards)
diff --git a/WebApplication/App_LocalResources/AdminConfig.aspx.de-DE.resx b/WebApplication/App_LocalResources/AdminConfig.aspx.de-DE.resx
index 2791ea1..ee7c5b1 100644
--- a/WebApplication/App_LocalResources/AdminConfig.aspx.de-DE.resx
+++ b/WebApplication/App_LocalResources/AdminConfig.aspx.de-DE.resx
@@ -117,6 +117,12 @@
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+ Display anchors for pages' sections
+
+
+
+
IP/Host Filter for allowed editing (seperate with commas, Use '*' for wild cards)
diff --git a/WebApplication/App_LocalResources/AdminConfig.aspx.es-ES.resx b/WebApplication/App_LocalResources/AdminConfig.aspx.es-ES.resx
index 2791ea1..ee7c5b1 100644
--- a/WebApplication/App_LocalResources/AdminConfig.aspx.es-ES.resx
+++ b/WebApplication/App_LocalResources/AdminConfig.aspx.es-ES.resx
@@ -117,6 +117,12 @@
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+ Display anchors for pages' sections
+
+
+
+
IP/Host Filter for allowed editing (seperate with commas, Use '*' for wild cards)
diff --git a/WebApplication/App_LocalResources/AdminConfig.aspx.fr-FR.resx b/WebApplication/App_LocalResources/AdminConfig.aspx.fr-FR.resx
index 2791ea1..ee7c5b1 100644
--- a/WebApplication/App_LocalResources/AdminConfig.aspx.fr-FR.resx
+++ b/WebApplication/App_LocalResources/AdminConfig.aspx.fr-FR.resx
@@ -117,6 +117,12 @@
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+ Display anchors for pages' sections
+
+
+
+
IP/Host Filter for allowed editing (seperate with commas, Use '*' for wild cards)
diff --git a/WebApplication/App_LocalResources/AdminConfig.aspx.hu-HU.resx b/WebApplication/App_LocalResources/AdminConfig.aspx.hu-HU.resx
index 18f1605..dc792d8 100644
--- a/WebApplication/App_LocalResources/AdminConfig.aspx.hu-HU.resx
+++ b/WebApplication/App_LocalResources/AdminConfig.aspx.hu-HU.resx
@@ -1,4 +1,4 @@
-
+