ChadSmiley Blog Things about family, life, coding, and more

7Jan/052

New BlogSphere Image Document

BlogSphere currently displaying the URL of the image which is nice, but most of the time I use the image in a blog with plain text so I have to remember the rest of the HTML like the ALT and border that needs to be added. What would be nice is to display the image HTML along with the URL, with the ability copy the text. All I do now is attach the image and save and start copying text. Here are the changes I made with the ability to have multiple images which is currently possible.

If your are going to make these changes please place the image description and fields in a table so the URL and HTML text is aligned correctly when there are multi-values.

Change the ImageName to be editable with multi-value checked with Newline as the as the display separator. The input translation would be:

@If( ImageName = "" ; @AttachmentNames ; ImageName )

The Computed Text for the URL needs to be changed to an editable field (ImageURL) with Newline as the as the display separator. The editable is needed so copying of the URL can be done while editing. The input translation would be:

@GetProfileField("BlogConfig";"Conf_basic_baseURL") + "/2/") + @Explode( ImageFileName; ";" ))</div> 
 A new field(ImageHTML) editable with Newline as the as the display separator.  The editable is needed so copying of the HTML can be done while editing.  The input translation would be:  <div class="formula">url := (@GetProfileField("BlogConfig";"Conf_basic_baseURL") + "/2/") + @Explode( ImageFileName; ";" ) ;
 @If(ImageName=""; ""; (("&lt;img src=\"") + url + ("\" border=0 ALT=\"")) + ImageName + ("\"&gt;" ))

The preview will need the same code as the ImageHTML field.

The last step is to move the ImageFileName field above the ImageURL fields so URL and HTML display correctly when refreshed or saved the first time.

New Look:

New BlogSphere Image Document