二、博客URL和存储路径
cfg_simple
<TMPL_IF NAME=CAN_CREATE_BLOG>
<fieldset>
<h3><MT_TRANS phrase="Publishing Paths"></h3>
<div class="inner">
<div class="setting">
<div class="label"><label for="site_url"><MT_TRANS phrase="Site URL:"></label></div>
<div class="field">
<input name="site_url" id="site_url" value="<TMPL_VAR NAME=SITE_URL ESCAPE=HTML>" size="50" />
<p><MT_TRANS phrase="Enter the URL of your website. Do not include a filename (i.e. exclude index.html)."><br /><MT_TRANS phrase="Example:"> <strong>http://www.example.com/weblog/</strong>
<a href="#" onclick="return openManual('blog_settings_publishing', 'site_url')" class="help">?</a></p>
</div>
</div>
<div class="setting">
<div class="label"><label for="site_path"><MT_TRANS phrase="Site Root">:</label></div>
<div class="field">
<input name="site_path" id="site_path" value="<TMPL_VAR NAME=SITE_PATH ESCAPE=HTML>" size="50" />
<p><MT_TRANS phrase="Enter the path where your index files will be published. An absolute path (starting with '/') is preferred, but you can also use a path relative to the Movable Type directory."><br /><MT_TRANS phrase="Example:"> <strong>/home/melody/public_html/weblog</strong>
<a href="#" onclick="return openManual('blog_settings_publishing', 'site_root')" class="help">?</a></p>
</div>
</div>
<p style="margin-left:83px;"><MT_TRANS phrase="You can configure the publishing model for this blog (static vs dynamic) on the "><a href="<TMPL_VAR NAME=SCRIPT_URL>?__mode=cfg_archives&blog_id=<TMPL_VAR NAME=BLOG_ID>#publ_prefs"><MT_TRANS phrase="Detailed Settings"></a><MT_TRANS phrase=" page."></p>
</div>
</fieldset>
</TMPL_IF>
三、cfg_archives
<TMPL_IF NAME=CAN_CREATE_BLOG>
<fieldset>
<h3><MT_TRANS phrase="Publishing Paths"></h3>
<div class="inner">
<div class="setting">
<div class="label"><label for="site_url"><MT_TRANS phrase="Site URL:"></label></div>
<div class="field">
<input name="site_url" id="site_url" value="<TMPL_VAR NAME=SITE_URL ESCAPE=HTML>" size="50" />
<p><MT_TRANS phrase="Enter the URL of your website. Do not include a filename (i.e. exclude index.html)."><br /><MT_TRANS phrase="Example:"> <strong>http://www.example.com/weblog/</strong>
<a href="#" onclick="return openManual('blog_settings_publishing', 'site_url')" class="help">?</a></p>
</div>
</div>
<div class="setting">
<div class="label"><label for="site_path"><MT_TRANS phrase="Site Root">:</label></div>
<div class="field">
<input name="site_path" id="site_path" value="<TMPL_VAR NAME=SITE_PATH ESCAPE=HTML>" size="50" />
<p><MT_TRANS phrase="Enter the path where your index files will be published. An absolute path (starting with '/') is preferred, but you can also use a path relative to the Movable Type directory."><br /><MT_TRANS phrase="Example:"> <strong>/home/melody/public_html/weblog</strong>
<a href="#" onclick="return openManual('blog_settings_publishing', 'site_root')" class="help">?</a></p>
</div>
</div>
<div class="setting">
<div class="label"><label for="archive_url"><MT_TRANS phrase="Advanced Archive Publishing:"></label></div>
<div class="field">
<ul>
<li><input type="checkbox" name="enable_archive_paths" id="enable_archive_paths" value="1" onclick="toggleSubPrefs(this); return true"<TMPL_IF NAME=ENABLE_ARCHIVE_PATHS> checked="checked"</TMPL_IF> class="cb" /> <MT_TRANS phrase="Publish archives to alternate root path"> <a href="#" onclick="return openManual('blog_settings_publishing', 'advanced_archive_publishing')" class="help">?</a></li>
</ul>
<p><MT_TRANS phrase="Select this option only if you need to publish your archives outside of your Site Root."></p>
</div>
</div>
<div id="enable_archive_paths_prefs"<TMPL_UNLESS NAME=ENABLE_ARCHIVE_PATHS> style="display: none;"</TMPL_UNLESS>>
<div class="setting">
<div class="label"><label for="archive_url"><MT_TRANS phrase="Archive URL:"></label></div>
<div class="field">
<input name="archive_url" id="archive_url" value="<TMPL_VAR NAME=ARCHIVE_URL ESCAPE=HTML>" size="50" />
<p><MT_TRANS phrase="Enter the URL of the archives section of your website."><br /><MT_TRANS phrase="Example:"> <strong>http://archives.example.com/</strong>
<a href="#" onclick="return openManual('blog_settings_publishing', 'archive_url')" class="help">?</a></p>
</div>
</div>
<div class="setting">
<div class="label"><label for="archive_path"><MT_TRANS phrase="Archive Root">:</label></div>
<div class="field">
<input name="archive_path" id="archive_path" value="<TMPL_VAR NAME=ARCHIVE_PATH ESCAPE=HTML>" size="50" />
<p><MT_TRANS phrase="Enter the path where your archive files will be published."><br /><MT_TRANS phrase="Example:"> <strong>/home/melody/public_html/archives</strong>
<a href="#" onclick="return openManual('blog_settings_publishing', 'archive_path')" class="help">?</a></p>
</div>
</div>
</div>
</div>
</fieldset>
</TMPL_IF>
因为首页有特定的规则,CNLOG的博客无法更改“归档映射”相关设置如下:
<TMPL_IF NAME=CAN_CREATE_BLOG>
<div class="setting">
<div class="label"><label for="file_extension"><MT_TRANS phrase="File Extension for Archive Files:"></label></div>
<div class="field">
<input name="file_extension" id="file_extension" size="5" value="<TMPL_VAR NAME=FILE_EXTENSION ESCAPE=HTML>" />
<p><MT_TRANS phrase="Enter the archive file extension. This can take the form of 'html', 'shtml', 'php', etc. Note: Do not enter the leading period ('.')."> <a href="#" onclick="return openManual('blog_settings_publishing', 'archive_file_extension')" class="help">?</a></p>
</div>
</div>
<TMPL_IF NAME=SHOW_BUILD_OPTIONS>
<div class="setting">
<div class="label"><label for="dynamicity"><MT_TRANS phrase="Dynamic Publishing:"></label> <a href="#" onclick="return openManual('blog_settings_publishing', 'dynamic_publishing')" class="help">?</a></div>
<div class="field">
<ul>
<li><input type="radio" id="dynamic_none" name="dynamicity" value="none"<TMPL_IF NAME=DYNAMIC_NONE> checked="on"</TMPL_IF> class="rb" /> <label for="dynamic_none"><MT_TRANS phrase="Build all templates statically"></label></li>
<li><input type="radio" id="dynamic_archives" name="dynamicity" value="archives"<TMPL_IF NAME=DYNAMIC_ARCHIVES> checked="checked"</TMPL_IF> class="rb" /> <label for="dynamic_archives"><MT_TRANS phrase="Build only Archive Templates dynamically"></label></li>
<li><input type="radio" id="dynamic_custom" name="dynamicity" value="custom"<TMPL_IF NAME=DYNAMIC_CUSTOM> checked="checked"</TMPL_IF> class="rb" /> <label for="dynamic_custom"><MT_TRANS phrase="Set each template's Build Options separately"></label></li>
</ul>
</div>
</div>
</TMPL_IF>
</TMPL_IF>











