PDF (adobe.com)

Customize template files for blogs

Whenever you create a connection to a blog in Contribute, a Dreamweaver template (DWT) file is automatically generated. You can customize DWT files to include additional fields in your blog if your blog publishing service supports extra fields. You can use these additional fields to add extra information to your blogs.

Note: Not all blog publishing services support extra fields.

You can enter any additional fields in the form of XML tags in the Dreamweaver template file. After you add these tags, the additional fields appear the next time you create a blog entry. For more information on creating blog entries, see Create a blog entry for your blog.

Note: This process is helpful to customize your Dreamweaver template file. Familiarity with XML tags is helpful to publish your blog entries to a blog publishing service such as Movable Type.

You can also publish this customized blog entry to another blog if the other blog server supports extra fields; otherwise the additional fields are invisible in the blog. After you change the blog entry back to the original blog, all the additional fields become visible. For more information on specifying target blogs, see Select the blog for the blog entry.

  1. Open the DefaultTemplate.dwt file in any text editor:

    • In Windows, the DefaultTemplate.dwt file is located at: C:\Documents and Settings\[user name]\Local Settings\Application Data\Adobe\Contribute CS4\Sites\Sitex\Templates.

      Note: If you cannot see the Local Settings folder, open Windows Explorer and select Tools > Folder Options > View. In Hidden Files And Folders, select Show Hidden Files And Folders.
    • In Mac OS, the DefaultTemplate.dwt is located at: /[Mac OS HD]/Application Support/Adobe/Contribute CS4/Sites/Sitex/Templates

  2. Enter the XML tags for the fields you want. Following is an example for adding the Extended Content, Excerpt, and Keyword tags:

    <<begintranslate>> <!-- TemplateBeginEditable name="mt_text_more" --> <<endtranslate>><!-- TemplateEndEditable --> 
    <<begintranslate>> <!-- TemplateBeginEditable name="mt_excerpt" --> <<endtranslate>><!-- TemplateEndEditable --> 
    <<begintranslate>> <!-- TemplateBeginEditable name="mt_keywords" --> <<endtranslate>><!-- TemplateEndEditable -->

    Always add the tags after the following lines:

    <div class="entry-content"> 
    <<begintranslate>> <!-- TemplateBeginEditable name="adobe_main_content" --> <<endtranslate>><!-- TemplateEndEditable --></div>
  3. Save and close the file.

    The additional fields appear the next time you create a blog. For more information, see Create a blog entry for your blog.