Asset handling / file upload

Often, when handling web content, texts are just a part of the information that meets the visitor. Most often you also want to handle other kind of information like images, documents and sound-files as well. In InfoGlue such content are called Assets and they can be uploaded to the appropriate content.

An example could be that you have an article which introduces a large PDF-document which the user can download. The appropriate way would be to attach the PDF-asset to the introducing article probably. There are other ways as well and it depends a bit on what you wish to achieve.

If you want to upload an asset to a content you must attach it to a language version. The reason is that most often with most assets you want to be able to upload different files to different languages. There are fallback possibilities in the presentation later if the file is valid for all languages. Be aware that you must first save a first version of an article for the “Attach file”-button to appear.

 

Now that you have a content version you just click on the “Attach file”-button. The following dialog will be shown:

 

 

This view requires you to state an asset key (if you browse file first the filename is proposed as assetkey). This key is used by developers if you have attached a lot of different assets to the same article or if they have different meaning or format for similar images. Use a good key or a predefined if the system administrator has predefined them. To view predefined keys just click the drop-box down arrow and select the right key. If no suitable keys are defined you write your own key. “PDF”, “NormalImage” or “Flag_se” could all be suitable keys depending on context.

 

 

Next you browse your hard drive for the file you want to upload.

 

 

 

After you have selected it just press the “Save”-button and the dialog will report when the file was uploaded. Now you can continue upload assets if you have more or you just press “Close” when you are satisfied.

Now you will notice that last in the language version will be a list of the assets uploaded. If it’s an uploaded image a thumbnail will be shown – otherwise a suitable icon.

If you have many asset you want to upload you switch to “Bulk”-upload:

 

 

To edit an existing asset you just click the edit link below it. You can click the asset to preview it and the “Delete”-button lets you delete it from the system.

 


Image editor

If you have uploaded a gif or jpg you can click the edit-link and get to the image editor which currently is very experimental but works somewhat ok. You get the image in the main field and a small palette of tools to the left.

 

The image area is markable – just klick somewhere on the image and drag to another point and a rectangle is formed. The picture below shows the rectangle and the non selected parts are greyed out.

 


 

When you have selected an area of the image you can use the crop tool. It looks like this 


and means you can cut away all except the marked area. The result would be:

 

There is also a image scaling tool which is represented by the icon


When you click that you don't have to mark an area fist but you get this dialog:

 

What you do is to state what width and height the image should have after the scale or only one of the fields. The first field is the width and the second height.

 

When you are done with the image and wants to save it just press the save-icon and the dialog below is shown:

 

 
 

 

 

 

Just state an asset key and press the “Save”-button.