Child pages
  • Working with Media

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This chapter describes the supported media file types, how to import media into the library, how to view the media library, how to add media to a form, and how to manage media files.

...

Stoc

Supported Media

Virtually any type of media can be incorporated in Servoy. Servoy does have a built-in viewer for the following image file types:

...

Users can import other file types, such as sound, video, and image files, into the media library.

Importing Media

...

into the Library

There are several ways to import media files into a solution's Media library:

...

  1. View image
  2. Import media
  3. Import media folder
  4. Delete media
  5. Media Preferences

Viewing the Media Library

To view a solution's media library:

...

  1. Click on the Media Preferences button in the contextual list mini-toolbar.
  2. Select Include Entries from Modules. Media items inside modules will be added to the contextual list.

Adding Media to a Form

Media can be added to a form using either the Solution Explorer or the Form Editor Toolbar, which features a Place Media wizard with an image preview.

To add media using the Solution Explorer:

  1. Select the Media node to display the list of items in the contextual list.
  2. Select the desired item and drag it to the form.
  3. Drag the corners to resize the item as desired. (The inserted image is initially placed at its original size.)

To add media using the Form Editor toolbar :

  1. Click on the Place Media wizard button. Image Removed !Screen shot 2011-06-14 at 10.11.12 AM.png|align=center!#* The Place Media wizard will open, showing the media items available in the solution (including items in modules' media libraries).
  2. Type a keyword in the filter field to limit the items displayed, if desired.
  3. Check the Preview box if you wish to preview the images, if desired (select an image to preview).
  4. Click OK to place the image.
Info

Note: Media items need to be imported to solution's media library before using the Place Media wizard.

Tip

Tip: Media items can also be click-dragged to a Script Editor or CSS Editor window, in which case the file location for the media item will be inserted into the code.

Managing Items in the Media Library

Once placed in the Media library, items can be deleted, renamed, and moved or duplicated to another module's Media library. These functions are accessed via the context menu of each item when displayed in Solution Explorer.

...