Skip to content

Commit

Permalink
Fix #85 Tweak siteConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
ComLock committed Mar 8, 2024
1 parent 49a0cd9 commit d88e81f
Showing 1 changed file with 61 additions and 56 deletions.
117 changes: 61 additions & 56 deletions src/main/resources/site/site.xml
Original file line number Diff line number Diff line change
@@ -1,74 +1,53 @@
<?xml version="1.0" encoding="UTF-8"?>
<site>
<form>
<input name="maxItems" type="TextLine">
<!-- ContentStudio was not happy when trying to convert this TextLine to Long -->
<label>Max included items</label>
<occurrences maximum="1" minimum="0"/>
<default>10000</default>
<help-text>Default value of 10000 will be used if nothing is specified</help-text>
<config>
<!--
<min>1</min>
<max>50000</max>
-->
<regexp>^(50000|[1-4]\d{4}|\d{2,4}|[1-9])$</regexp>
</config>
</input>
<input name="overrideDomain" type="TextLine">
<label>Override the generated domain</label>
<help-text>For instance "https://enonic.com"</help-text>
<occurrences minimum="0" maximum="1"/>
<config>
<regexp>^https:\/\/[^\/]+$</regexp>
</config>
</input>
<item-set name="siteMap">
<label>Mappings</label>
<label>Include by type</label>
<occurrences maximum="0" minimum="0"/>
<help-text>Select which content types to include in the sitemap</help-text>
<items>
<input name="contentType" type="ContentTypeFilter">
<label>Content Type</label>
<occurrences maximum="1" minimum="0"/>
<help-text>Adds the selected content type to the sitemap.xml</help-text>
<label>Content Type</label>
<occurrences maximum="1" minimum="0"/>
<help-text>Adds the selected content type to the sitemap.xml</help-text>
</input>
<input name="updatePeriod" type="ComboBox">
<label>Update period</label>
<occurrences maximum="1" minimum="0"/>
<config>
<option value="always">Always</option>
<option value="hourly">Hourly</option>
<option value="daily">Daily</option>
<option value="weekly">Weekly</option>
<option value="monthly">Monthly</option>
<option value="yearly">Yearly</option>
<option value="never">Never</option>
</config>
<help-text>For the selected content type, set this update frequency in xml file (default is "monthly")</help-text>
<label>Update period</label>
<occurrences maximum="1" minimum="0"/>
<config>
<option value="always">Always</option>
<option value="hourly">Hourly</option>
<option value="daily">Daily</option>
<option value="weekly">Weekly</option>
<option value="monthly">Monthly</option>
<option value="yearly">Yearly</option>
<option value="never">Never</option>
</config>
<help-text>For the selected content type, set this update frequency in xml file (default is "monthly")</help-text>
</input>
<input name="priority" type="ComboBox">
<label>Priority</label>
<occurrences maximum="1" minimum="0"/>
<config>
<option value="0.0">0.0</option>
<option value="0.1">0.1</option>
<option value="0.2">0.2</option>
<option value="0.3">0.3</option>
<option value="0.4">0.4</option>
<option value="0.5">0.5</option>
<option value="0.6">0.6</option>
<option value="0.7">0.7</option>
<option value="0.8">0.8</option>
<option value="0.9">0.9</option>
<option value="1.0">1.0</option>
</config>
<help-text>This does not increase possibilities for SEO, it's only information for the search engines that they might or might not use when crawling your site. Default is 0.5.</help-text>
<default>0.5</default>
<label>Priority</label>
<occurrences maximum="1" minimum="0"/>
<config>
<option value="0.0">0.0</option>
<option value="0.1">0.1</option>
<option value="0.2">0.2</option>
<option value="0.3">0.3</option>
<option value="0.4">0.4</option>
<option value="0.5">0.5</option>
<option value="0.6">0.6</option>
<option value="0.7">0.7</option>
<option value="0.8">0.8</option>
<option value="0.9">0.9</option>
<option value="1.0">1.0</option>
</config>
<help-text>This does not increase possibilities for SEO, it's only information for the search engines that they might or might not use when crawling your site. Default is 0.5.</help-text>
<default>0.5</default>
</input>
</items>
</item-set>
<item-set name="ignoreList">
<label>Ignore list</label>
<label>Exclude by path</label>
<help-text>For instance "/full/path", "/startsWith*", "*hasInTheMiddle*" or "*endsWith"</help-text>
<occurrences maximum="0" minimum="0"/>
<items>
Expand All @@ -78,6 +57,32 @@
</input>
</items>
</item-set>
<field-set>
<label>Advanced</label>
<items>
<input name="maxItems" type="TextLine">
<!-- ContentStudio was not happy when trying to convert this TextLine to Long -->
<label>Max included items</label>
<occurrences maximum="1" minimum="0"/>
<help-text>Default value is 10000, maximum is 50000 - aligned with sitemap.xml specification</help-text>
<config>
<!--
<min>1</min>
<max>50000</max>
-->
<regexp>^(50000|[1-4]\d{4}|\d{2,4}|[1-9])$</regexp>
</config>
</input>
<input name="overrideDomain" type="TextLine">
<label>Base URL</label>
<help-text>Force a specific base-url to be used in the sitemap, this will override the contextual domain</help-text>
<occurrences minimum="0" maximum="1"/>
<config>
<regexp>^https:\/\/[^\/]+$</regexp>
</config>
</input>
</items>
</field-set>
</form>
<mappings>
<mapping controller="/site/controllers/sitemap/sitemap.js" order="50">
Expand Down

0 comments on commit d88e81f

Please sign in to comment.