View my profile on LinkedIn



User login

Introduction
This section describes how the plug-in module formats the actual blog entry when an upload of a photo or video has been detected.

Formatting
A Share-It upload has the following components:

  • Payload - the actual photo or video
  • Content - The text of the blog entry
  • Title - The text of the blog entry title
  • Keywords - The keywords/tags for the blog entry

Title
This is used as the title of the blog entry.

Keywords
These are added to the entries taxonomy - I have this set to free form so that all keywords that are uploaded will be created if they do not exist already.

Payload and Content
These are dealt with together as they both make up the blog entry for a Share-It upload. The payload file is stored and processed as described elsewhere in this book and is then either turned into an HTML image tag (for photos) or an embedded object tag (for videos). This is then used as the first part of the content of the blog entry, an HTML line break is then added followed by the Content text as uploaded.

Example Photo entry:

<img src="/files/999/preview_sky.jpg"><br/> This is my picture of the sky as it turned red at sunset looking over Crane beach in Barbados.<br/>- Taken at 18:48 PM on Feb 18, 2006 - cameraphone upload by ShoZu