Posts in Category "Tips and Tricks"

Puzzled why Adobe Contribute lists only 10 Pages of WordPress?

,

This is due the changes done by WordPress for their API “wp.getPages”, which has been modified to return only 10 pages by default.. So Contribute is listing only the most recent ten pages  for editing.

Continue reading…

Paragraph Spacing Options in Adobe Contribute

,

One line, as in standard word processors applies inline CSS styles to each new p tag. The CSS styles defined for a website usually cause paragraphs to be rendered closer together. This style is often more familiar to users who have worked with desktop publishing applications, which provide greater typographic control. Users can include more space between paragraphs by pressing Enter twice to add a standard HTML paragraph (p) tag.

Continue reading…

Encoding Links

When you insert links in a web page you are editing, by default, Contribute encodes them. You might have noticed that, when a colon symbol is passed as a link parameter in a web page URL, it gets encoded as %3A when Contribute publishes the page. Sometimes you might want to insert the link as it is, so that the link is not broken because of encoding. Here is the option to do so.

Continue reading…

Compatibilty and Transition mode in Contribute

Transition and Compatibility Mode

     Wondering why after the migration the Contribute users for the website are not able to connect to the site? What can be the reason?

     Contribute offers two compatibility options to the Site Administrators — one that allows users with earlier versions to work on the website, and one that does not. Following steps can be used to go to the settings:

  • Go to Edit > Administer Websites and select a website.
  • Administer Website dialog box comes up.
  • Select Compatibility from the list on the left.

Continue reading…

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