MTCategoryArchiveLink Can Be Used Only If You Have Enabled Category Archives.
Question
When rebuilding my site or saving an entry, I get the following error:
Build error in template 'Main Index': Error in <MTSubCategories> tag: <$MTCategoryArchiveLink$> can be used only if you have enabled Category archives.
Answer
You will need to either enable Category Archives on your weblog; or remove the code which is causing the error from your Main Index Template.
Enable Category Archives
Navigate to Settings > Publishing : Archive Mapping1 and check the box next to Category. Click Save Changes and then Rebuild Site.
Remove the Template Code
If you don't wish to enable Category Archives, you can remove the code causing the error from the template.
Navigate to the Templates Listing and click on the Main Index Template to edit it. In the Template Body text area, look for the code which starts with the <MTSubCategories> tag and ends with the </MTSubCategories> tag. Select this section of code and press your Delete key to remove it.
Click Save to preserve your changes, and then Rebuild Site.
1 In versions prior to 3.2, navigate to Weblog Configuration > Archive Files.


