Now that we have created our first structure (see previous section), we will be
able to edit our movies in a few moments. But we'll see first how to tell mlam to list our movies, because
we don't want to develop it in php. We are still in mlam's administration tool, in our dvd project, and
we're editing the structure named edit_film. Now let's follow the link configure the listing
of these data. We have of course the possibility to go back, but more interesting is this section of
the page :
First, we have to decide the name of the .php file which will be used to edit our movies, because each data
listed will link to it (allowing its edition). Let's name it edit_movie.php. Ok, now we'll decide
that this listing will show the title and the year for each movie, so we'll check the Shown column
for these two fields. We want the title first, then the year, so we enter 1 and 2 respectively in the
I let you decide for the indicating what are these data for these two fields.
It would be great to have our movies ordered by year, then by name in the same year, in ascending order. So
we select ASC for the fields title and year, and the order will be 2 and 1 respectively
in the following column.
Lastly, it would be very great to be able to search for movies when our collection will grow. The title will
be enough, so we check the Search it? option only for the title. You're free to put whatever you
want for the indications you want to see for this field.
So after updating the content (and not saving it yet), you have something like that :
Now we just have a little thing to do : save these changes ! So push the save the data and go back
button, you'll be redirected to the main page. We now have to save the configuration file to finish this
part of work for our movies, so save the configuration file.
It's time to take a look at what we have selected, checked, written and so on.