subText学习心得二(皮肤安装方法)

官方原文

Skin Installation Instructions
SubText skins are generally delivered as a zip file. To install the skins follow these instructions;

   1. Unzip the skins folder
   2. Create a directory under the skins directory in your subtext installation. This would normally have a name matching the skin name
   3. Copy the unzipped files into your new directory
   4. Navigate to the admin directory of your subtext installation.
   5. If you have an existing skins.user.config file skip to step 7.
   6. Create a new file named skins.user.config and containing the following information;

      <?xml version="1.0"?>
      <SkinTemplates xmlns:xsd="http://www.w3.org/2001/XMLSchema"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <Skins>
        </Skins>
      </SkinTemplates>

   7.  Add a reference to your new skin template between the <Skins> tag; for example;

      <SkinTemplate Name="Skin Display Name"
        TemplateFolder="Skin Folder Name">
      </SkinTemplate>

      You do not need to prefix the skin folder with /skins/; so if, for example, you uploaded your skin into "myNewSkin" then the TemplateFolder attribute would have a value of "myNewSkin".

      Your new skin may need extra template lines, please check the skin documentation carefully.
   8. Go to the administration pages for your blog, choose Options, then choose Configure
   9. Pull down the Display Skin drop down list and choose the name of your new skin.
  10. Press the "Save" button.

1。在Subtext.Web\Admin文件夹中找到Skins.config文件.更改配置文件。

注意:皮肤文件存在Subtext.Web\Skins\文件夹中,

<SkinTemplate Name="皮肤的名称" TemplateFolder="皮肤的文件夹">
      <Styles>
          <Style href="~/skins/_System/csharp.css" />
          <Style href="~/skins/_System/commonstyle.css" />
          <Style href="~/skins/_System/commonlayout.css" />
          <Style href="print.css" media="print" />
      </Styles>

  </SkinTemplate>

 在学习做新皮肤时,建议直接复制原来的一个皮肤在上面修改。

 

posted @ 2008-07-21 09:58  编程入门  阅读(458)  评论(0编辑  收藏  举报