The Site.Config File
The site.config file resides in your {webroot}/siteConfig/ directory and may look somewhat like this in the beginning:
<?xml version="1.0" encoding="utf-8"?>
<SiteConfig xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:newtelligence-com:dasblog:config">
<Title>My DasBlog!</Title>
<Subtitle>newtelligence powered</Subtitle>
<Theme>dasBlog</Theme>
<Description />
<Contact>dasblog@example.com</Contact>
<Root>http://localhost/DasBlog/</Root>
<Copyright>Your Name Here</Copyright>
<RssDayCount>10</RssDayCount>
<RssMainEntryCount>50</RssMainEntryCount>
<RssEntryCount>50</RssEntryCount>
<EnableRssItemFooters>false</EnableRssItemFooters>
<RssItemFooter>This weblog is sponsored by <a href="http://www.newtelligence.com">newtelligence AG</a>. </RssItemFooter>
<FrontPageDayCount>8</FrontPageDayCount>
<FrontPageEntryCount>50</FrontPageEntryCount>
<CategoryAllEntries>true</CategoryAllEntries>
<FrontPageCategory />
<AlwaysIncludeContentInRSS>true</AlwaysIncludeContentInRSS>
<EntryTitleAsLink>true</EntryTitleAsLink>
<NotifyWebLogsDotCom>false</NotifyWebLogsDotCom>
<NotifyBloGs>false</NotifyBloGs>
<ObfuscateEmail>true</ObfuscateEmail>
<NotificationEMailAddress>@foo.com</NotificationEMailAddress>
<SendCommentsByEmail>true</SendCommentsByEmail>
<SendReferralsByEmail>true</SendReferralsByEmail>
<SendTrackbacksByEmail>true</SendTrackbacksByEmail>
<SendPingbacksByEmail>true</SendPingbacksByEmail>
<SendPostsByEmail>false</SendPostsByEmail>
<EnableBloggerApi>true</EnableBloggerApi>
<EnableComments>true</EnableComments>
<EnableCommentApi>true</EnableCommentApi>
<EnableConfigEditService>true</EnableConfigEditService>
<EnableEditService>false</EnableEditService>
<EnableAutoPingback>true</EnableAutoPingback>
<ShowCommentCount>true</ShowCommentCount>
<EnableTrackbackService>true</EnableTrackbackService>
<EnablePingbackService>true</EnablePingbackService>
<EnableStartPageCaching>false</EnableStartPageCaching>
<EnableBlogrollDescription>false</EnableBlogrollDescription>
<EnableUrlRewriting>true</EnableUrlRewriting>
<EnableFtb>true</EnableFtb>
<EnableCrossposts>true</EnableCrossposts>
<UseUserCulture>true</UseUserCulture>
<ShowItemDescriptionInAggregatedViews>true</ShowItemDescriptionInAggregatedViews>
<EnableClickThrough>true</EnableClickThrough>
<EnableAggregatorBugging>true</EnableAggregatorBugging>
<DisplayTimeZoneIndex>85</DisplayTimeZoneIndex>
<AdjustDisplayTimeZone>true</AdjustDisplayTimeZone>
<ContentDir>content/</ContentDir>
<LogDir>logs/</LogDir>
<BinariesDir>content/binary/</BinariesDir>
<SmtpServer />
<EnablePop3>false</EnablePop3>
<Pop3Server></Pop3Server>
<Pop3Username></Pop3Username>
<Pop3Password></Pop3Password>
<Pop3SubjectPrefix></Pop3SubjectPrefix>
<Pop3Interval>30</Pop3Interval>
<Pop3InlineAttachedPictures>true</Pop3InlineAttachedPictures>
<Pop3InlinedAttachedPicturesThumbHeight>100</Pop3InlinedAttachedPicturesThumbHeight>
<ApplyContentFiltersToWeb>true</ApplyContentFiltersToWeb>
<ApplyContentFiltersToRSS>false</ApplyContentFiltersToRSS>
<EnableXSSUpstream>false</EnableXSSUpstream>
<XSSUpstreamEndpoint>http://radio.xmlstoragesystem.com/RPC2</XSSUpstreamEndpoint>
<XSSUpstreamUsername />
<XSSUpstreamPassword />
<XSSRSSFilename>rss-dasblog.xml</XSSRSSFilename>
<XSSUpstreamInterval>3600</XSSUpstreamInterval>
<ContentFilters>
<ContentFilter find="\$g\((?<expr>[\w\s\d]+)\)" replace="<a href="http://www.google.com/search?q=${expr}">${expr}</a>" isregex="true" />
<ContentFilter find="\$d\((?<expr>[\w\s\d]+)\)" replace="<a href="http://dictionary.reference.com/search?q=${expr}">${expr}</a>" isregex="true" />
<ContentFilter find="dasBlog" replace="<a href="http://www.dasblog.net">dasBlog</a>" isregex="false" />
<ContentFilter find="
" replace="<img alt="
" src="smilies/openmouth.gif">" isregex="false" />
<ContentFilter find="
" replace="<img alt="
" src="smilies/frown.gif">" isregex="false" />
<ContentFilter find="
" replace="<img alt="
" src="smilies/veryhappy.gif">" isregex="false" />
<ContentFilter find="
" replace="<img alt="
" src="smilies/unhappy.gif">" isregex="false" />
<ContentFilter find="
" replace="<img alt="
" src="smilies/wink.gif">" isregex="false" />
<ContentFilter find="
" replace="<img alt="
" src="smilies/happy.gif">" isregex="false" />
</ContentFilters>
<CrosspostSites />
<Pop3DeleteAllMessages>true</Pop3DeleteAllMessages>
<Pop3LogIgnoredEmails>true</Pop3LogIgnoredEmails>
<EnableReferralUrlBlackList>false</EnableReferralUrlBlackList>
<ReferralUrlBlackList />
<EnableCaptcha>true</EnableCaptcha>
<EnableReferralUrlBlackList404s>false</EnableReferralUrlBlackList404s>
<EnableMovableTypeBlackList>false</EnableMovableTypeBlackList>
<ChannelImageUrl />
<EnableCrossPostFooter>false</EnableCrossPostFooter>
<EnableTitlePermaLink>false</EnableTitlePermaLink>
<EnableTitlePermaLinkUnique>false</EnableTitlePermaLinkUnique>
<EnableTitlePermaLinkSpaces>false</EnableTitlePermaLinkSpaces>
<EncryptLoginPassword>true</EncryptLoginPassword>
<EnableSmtpAuthentication>true</EnableSmtpAuthentication>
<SmtpUserName></SmtpUserName>
<SmtpPassword></SmtpPassword>
<RssLanguage>en-us</RssLanguage>
<EnableSearchHighlight>true</EnableSearchHighlight>
</SiteConfig>
There is no formal schema for this file as it is expected to change wildly and there’s also no namespace declaration for it for the same reason. Here’s the list of some of the currently recognized tags below <SiteConfig>:
· <Root /> This is the most important element for you to change. This element contains the external root URL of you Weblog. All relative links are built using this value, instead of relying on the URL that was used for the incoming request, because that URL may not be what we want to have, especially when the URLs come through a complex redirect.
· <ContentDir /> The value of this entry is the relative path to the content directory and should end with a forward slash. You should not need to change this.
· <LogDir /> The value of this entry is the relative path to the log directory and should end with a forward slash. You should not need to change this.
· <BinariesDir /> The value of this entry is the relative path to the binaries directory for uploads and should end with a forward slash. You should not need to change this.
· <Title /> The title of your Weblog.
· <Subtitle /> The subtitle of your Weblog.
· <Theme /> The default design these that first-time visitors are seeing your Weblog in. Visitors can pick their own preference using the so-called Theme-Bar, which is included in all templates that come with the default installation. The available design themes are registered in Web.config. The Macros section has details on themes, macros and how to register new themes.
· <Description /> The description for your Weblog. The description is a short description of the Weblog topics; maybe two to three sentences long.
· <Contact /> A valid email address that’s yours. This email address is used to generate mailto: links on the site and is also the email address at which you will receive notifications.
· <Copyright /> This is typically your name. The copyright symbol and the current year are automatically inserted into the templates, so you only have to put the copyright owner’s name here.
· <RssDayCount /> A number defining the maximum number of days that your RSS stream shall contain. This is not a “number of calendar days” value, but a cumulative value. If you have posted only on 15 days in the last year and this value is set to 10, the RSS will contain the most recent 10 days of those 15.
· <RssEntryCount /> A number defining the overall maximum number of entries that can be contained in your RSS stream. If the entries gathered within the days restricted by <RssDayCount/> exceed this number, the only the topmost (most recent) entries limited by this values are shown.
· <FrontPageDayCount /> A number defining the maximum number of days to appear on your home page. This setting only applies to the default page and not to the category pages. Everything else work just as with the <RssDayCount/> entry.
· <FrontPageCategory /> This is an optional setting that sets a category filter for your home page. This filter is actually used on this documentation site and the effect is that only entries that are in this category are showing up on the home page. There’s one catch with this right now: If you set this value and you have entries that are not in any category, they will not be visible anywhere and, worse, you will not be able to edit them, because they get filtered out in the internal view as well.
· <EntryTitleAsLink /> Set this to “true” or “false” depending on whether you want to have the Title macro formatting a link instead of just the plain text.
· <NotifyWebLogsDotCom /> If you set this to “true”, the engine will notify weblogs.com any time you add or change a post. The default is “false”.
· <ObfuscateEmail /> If you set this to “true”, all email addresses rendered onto the website will be mildly obfuscated to irritate spammers harvesting your page for email addresses. Default is “false”.
· <SmtpServer /> The value of this entry should be a valid SMTP server address. The SMTP server should not expect authentication. This setting is used for the following four options:
· <SendCommentsByEmail /> If you want to be notified by email about someone commenting on an item, set this to “true”.
· <SendReferralsByEmail /> If you want to be notified by email about a referral on an item, set this to “true”. This option generates lots of emails on a busy site.
· <SendTrackbacksByEmail /> If you want to be notified by email about someone sending a Trackback for an item, set this to “true”.
· <SendPingbacksByEmail /> If you want to be notified by email about a Pingback received for an item, set this to “true”.
· <Pop3Server /> Set this value if you want to enable the Mail-To-Weblog feature. This should be the DNS name or IP address of your POP3 server from which mails shall be retrieved.
· <Pop3Username /> This is the username for the POP3 account used for Mail-To-Weblog. Please note that the POP3 account should be exclusively assigned to the Weblog, because the engine will remove all entries it finds, regardless of whether it’s able to post them.
· <Pop3SubjectPrefix /> This is the password equivalent for Weblog entries received through Mail-To-Weblog. E-Mails are only recognized if the subject line starts with this exact character sequence. All other emails are ignored and discarded.
· <Pop3Interval /> This number is the interval (in seconds) in which the Mail-To-Weblog handler checks your email account. The preconfigured default value is 240 (4 minutes) and that’s usually impatient enough for everyone.
· <DaysCommentsAllowed /> This is the number of days which a comment can be added to your blog postss, for example just add <DaysCommentsAllowed>30</DaysCommentsAllowed> to your site.config and it will only allow posting of comments on entries not older than 30 days old.