rispost

Blogs – Uploading files, specifying MIME type in WAS not longer needed

March 17th, 2009

Think this topic is a bit outdated but just giving it a go to spread the info.

Few months back posted this one, it’s about the errors you get when
specifying  alternate files to upload in a blog. For every file you would
like to upload in blogs you had to specify the MIME type in the WAS console.

Found out that this kind of configuration is not longer required in LC 2.0.1.
Also had this confirmed by the guys of IBM.

rispost

Image resizing in Blogs

January 2nd, 2009

The default behavior for images used in Blog post is to be scaled down to a
maximum of 350px, both width and height, aspect ratio is kept.

This is not really handy for screenshots that are posted on Blogs.

Thanks to the reply of Chris Whisonant at the Lotus Connections forum
I learned how to configure this behavior.

http://www-10.lotus.com/ldd/lcforum.nsf/DateAllThreadedweb/42a2b16da056408bc12575210040b42f?OpenDocument

Made some extra edits so that scaled down images are clickable and a
full version of the image opens in a new window when you click on it.

Tested it with Firefox and IE

Changed the code in the file _day.vm as follow.

/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/installedApps/localhostNode01Cell/Blogs.ear/blogs.war/themes/blog # vi _day.vm

function openImage(item)
{
window.open(item);
}

dojo.addOnLoad(function(){
dojo.query(’.entryContentContainer img’).forEach(
function(item){

if(item.style != undefined && item.style.width != undefined && item.style.width == “100%”)
return;
if (item.width > 400) {
item.height = item.height * (400/item.width);
item.width = 400;
item.onclick=function(){openImage(this.src)};
item.style.cursor=’pointer’;
}
}
);
});

rispost

Uploading MS Office files into a blog

October 9th, 2008

In the Blogs administration tab we defined the following files
that are allowed to be uploaded.

txt,ppt,doc,pdf,xls,pptx,docx,xlsx,mmap,png,gif,jpeg,jpg,odt,rtf

After applying this change we could upload any of the files
mentioned in Allowed extensions.

But when clicking on a MS office file (.doc, .xls, .ppt, .docx, .xlsx, pptx )
that you just uploaded it will give you an error.

Unexpected Exception

Blogs has encountered and logged an unexpected exception.

When you want to upload MS office files into a blog you must specify
the Mime type in the WAS admin console. ( same rule applies if you
would like to upload .mp3 files in to your blog, you will have to enter
the Mime type for MP3 files in the WAS admin console )

http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0//index.jsp?topic=/com.ibm.websphere.base.doc/info/aes/ae/urun_rvhost_mime.html

So navigate to the this part of the WAS admin console

WASadmin console -> Environment -> Virtual Hosts > default_host > MIME Types

And add the following three mimetypes to be able to upload MS office 2007 files

pptx application/vnd.openxmlformats-officedocument.presentationml.presentation
xlsx application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
docx application/vnd.openxmlformats-officedocument.wordprocessingml.document

If you want to upload MS office files in the old .doc/.xls/.ppt format you will have
to add these three mime types listed below.

xls application/msexcel
ppt application/mspowerpoint
doc application/msword

   
© LOTUSCONNECTIONS.org , Designed by Stealth Settings
Entries (RSS) and Comments (RSS)