I consider here that you know what is mlam's administration tool, how to edit your present project, how
to add new structures, save the configuration files and create listing for your data. From now on, I will
only present the interesting parts of the screens, and not all of them.
Time to add picture to our movie data
In mlam administration tool, edit the edit_film structure. Until now, we haven't selected the
img_film field. It's time to check it on, with insertion and update on, and we want use it
as or file or picture data, as mentioned in the right column. Validate the changes, we have this :
img_film What title ?
Insertion ? Update ?
Data representing a file or a picture this value can't be edited, waiting for addition in current config
As you can see, you must add the current structure in your config to edit specific data for using file or
pictures. This is something you will encounter for specific data manipulations like pictures, external keys
and else. So let's add the structure as asked.
We have now a link to edit a configuration for the pictures. Follow it, the next screen is this one :
Needing url and directory element to save this structure
We are interested here to handle pictures, so we have to select it. The directory is where the files will
be saved, and the corresponding url is what you have to give to your navigator to have access to this
directory. With just these values, you are able to put pictures for your movies. If you have Imagemagick,
we have better possibilities. In this case, do something like this :
Now save the configuration file, go back to the main screen, and save (again) the configuration file (a
syntax problem the first time, sorry). You need to create the pics directory (in my case).
You are ready to add pictures in your movies.
Pictures in action
In your previous edit_movie.php, you have nothing to change. Just go to the option for creating
a new movie. A new row has appeared :
picture
No picture yet Add a picture
After selecting a file and validating the changes, it becomes something like :
Without imagemagick, you won't have the thumbnail, but directly the full picture. Mlam uses imagemagick
because it is very accurate, but also because I had other picture manipulations projects, still not
included in mlam...
Now that we can perfectly manage our movies, it's time to begin our dvd section, allowing you to see mlam
in action with external keys.