Archive for February, 2009

Extra fields support for Typepad

,,,,

                                 Enabling extra fields support for Typepad

         Lot of you blog on the Typepad using Contribute and would like to have the support for the extra fields like Extended Entry, Excerpt and Keywords while creating a blog entry from Contribute. The same can be achieved by making a minor modification in the auto-generated template for the corresponding.

How to customize the template:

  Open the DefaultTemplate.dwt in “\..\user\Local Settings\Application Data\Adobe\Contribute\en_US\Sites\SiteX\Templates” in Windows or “user/Application Support/Adobe/Contribute /en_US/Sites/SiteX/Templates” in Mac using any editor. Add the following lines to add the editable region for Typepad support for Extended Entry, Excerpt and Keyword:

Original piece of code:

<div class="entry-content">
<div class="entry-body"><!– TemplateBeginEditable name="Enter Blog Content" –><br/>
<!– TemplateEndEditable –></div>
</div>

and the workspace looks like:

 

 

Add the 3 lines of code as below and the modified code looks like:


<div class="entry-content">
<div class="entry-body"><!– TemplateBeginEditable name="Enter Blog Content" –><br/>
<!– TemplateEndEditable –></div>
<!– Add the following 3 line for the extra fields support of Typepad–>
<!– TemplateBeginEditable name="mt_text_more" –><!– TemplateEndEditable –><br/>
<!– TemplateBeginEditable name="mt_excerpt" –><!– TemplateEndEditable –><br/>
<!– TemplateBeginEditable name="mt_keywords" –><!– TemplateEndEditable –><br/>
</div>

The workspace after the above changes is shown below:

 

 Save the changes and you will see the extra 3 fields to add the content while creating a blog entry.

          It is good idea to create a back up copy of the template for the changes to refer later as in case you remove the connection and create it again then the template will be generated and changes will be lost, in that case you need to make the changes again.

Happy blogging!

 

var addthis_pub=”dmichael”;
Bookmark and Share

    Adobe Contribute  Contribute Publishing Server


Continue reading…

Contribute Podcasting

,,

Enabling Podcasting via Contribute

What is Podcasting?

                Podcasting is online audio/video content that is delivered via an RSS feed. Many people liken podcasting to radio on demand. However, in reality, podcasting gives far more options in terms of content and programming than radio does. In addition, with Podcasting, listeners can determine the time and the place, meaning they decide what programming they want to receive and when they want to listen to it. Listeners can retain audio archives to listen to at their leisure. While blogs have turned many bloggers into journalists, podcasting has the potential to turn podcasters into radio personalities.

How Podcasting works with Contribute? Here the easy steps to do it.

  1. Create a connection to your blog server (Which supports Enclosures) using Contribute.
  2. Create a new entry and insert your favorite audio or video file.Enclosure option in toolbarYou can insert via the Enclosure button in the toolbar or through the menu, Insert–> Enclosure.
  3. After inserting the enclosure you can see the same inserted in the enhancement bar. After inserting the enclosure
  4. Publish the entry.
  5. Now open iTunes and add a podcast URL (Eg: http://.typepad.com//rss.xml )of the blog by going to Advanced-> Subscribe to podcast in iTunes.
  6. Right click on the URL in iTunes and click on update.

Now your favorite audio or video gets listed in iTunes.

 Here is the video demo

var addthis_pub=”dmichael”;
Bookmark and Share

    Adobe Contribute  Contribute Publishing Server   Dominic Michael

server side includes

,,,,

SSI – Server side includes are files in the server that contain html snippet to be included in different web pages. The web server takes care of replacing the include tag with the content of ssi file when it delivers the parent page to the client.

Why SSI ?

SSI helps you organize repeating code in you site better. A large website might have multiple pages having same header, footer, left/right margins or menus. But for ssi, same code has to be repeated in all the pages and maintaining them would become nightmare as the website grows. The same site can be redesigned to pull out the header, footer, left/right margins and menu code snippets into different ssi files. These ssi files can be included in different web pages. So in future any change in the general layout would require a change in corresponding ssi file only. There by enabling you to maintain the site effectively.

SSI include markup:

Common code can be removed from the parent page and saved as ssi file in the server. To get the content of the ssi in the parent page you will have to add include tag in the parent page. When the parent page is delivered to the client, the server takes care of replacing the include markup with the content of the ssi file.

The syntax to embed the contents of an external file onto the current page is:

<!–#include virtual="/ssifolder/myssi.shtml" –>

            Or

<!–#include file="myssi.shtml" –>

Virtual attribute can be used when the ssi is not in the same folder as the parent page.

File attribute can be used when the ssi is in the same or sub folder as the parent page.

Typically you would be using the “virtual” attribute as it would be good practice to club all the ssi file in a folder and have the rest of the web pages in the site refer to them with a site root relative path.

Can I edit a webpage containing ssi in Contribute?

When you edit a web page using Contribute, it would pull the included ssi content form the server and render the full page like a web browser. The ssi regions in the page are locked. Hence you can not edit the ssi content in the main page. This is to prevent the user from accidently editing the ssi content, at the same time have the WYSIWYG feel when you edit the main web page.

Using Contribute the site administrator can control if a user of Contribute can delete the included ssi from the main page.

Sample web page using ssi:

Mainpage.shtml

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>

<head>

<title>SSI Test</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

</head>

 

<body>

<!–#include virtual="/ssi/includes/include_01.shtml"–>

<!–#include virtual="/ssi/includes/include_02.shtml"–>

<!–#include virtual="/ssi/includes/include_03.shtml"–>

<p>This text is from main page</p>

</body>

</html>

 

Include_01.shtml

<p>This is a simple SSI test. The objects between the horizontal lines are within

an SSI.</p>

<p><img src="../images/contrib_team.jpg" width="209" height="122"></p>

<hr>

 

Include_02.shtml

<p>&iexcl;Hola, mundo!</p>

<table width="635" height="353" border="1" cellpadding="3" cellspacing="0">

  <tr>

    <td><img src="../images/contrib_team.jpg" width="378" height="221"></td>

    <td bgcolor="#33CC33">&nbsp;</td>

    <td><h3>Hello, nested SSI!</h3>

      <p><em>Hello, nested SSI!</em></p>

      <p align="center"><font color="#669900" face="Verdana, Arial, Helvetica, sans-serif"><strong>Hello,

            nested SSI!</strong></font></p></td>

  </tr>

  <tr>

    <td width="397" height="122" bgcolor="#9966FF"><h2>&nbsp;</h2></td>

    <td width="90"><p align="right"><strong>Hello,<br>

      world!</strong></p>

    </td>

    <td width="122" bgcolor="#FFCC00">&nbsp;</td>

  </tr>

</table>

<p><font color="#FF3300" size="3" face="Georgia, Times New Roman, Times, serif"><strong>&iexcl;Hola,

mundo!</strong></font></p>

 

Include_03.shtml

<hr>

<table width="129" height="62" border="1" cellpadding="3" cellspacing="0">

  <tr>

    <td>&nbsp;</td>

    <td>&nbsp;</td>

    <td>&nbsp;</td>

  </tr>

</table>

<hr>

Following is the result when you edit the main page using Contribute:

var addthis_pub=”dmichael”;
Bookmark and Share