[Newbie] A bit lost... (multi-category movies)

If you made a script you can offer it to the others here, or ask help to improve it. You can also report here bugs & problems with existing scripts.
Post Reply
Zaphod
Posts: 3
Joined: 2006-05-14 14:04:00

[Newbie] A bit lost... (multi-category movies)

Post by Zaphod »

Hey everyone...

I've just created a new base with my DVD list. I've imported informations from the Internet, and i'm very happy ! :D This soft is really excellent...

However, the site from which I've imported, uses multi-category classification. For example, Lethal Weapon is categorized as Action, but Danny the dog is categorized as Action, Kung Fu.

So AMC has two distinct categories Action and Action, Kung Fu.

In fact, i'd like to know if there's a way to export to a sql base, using multi-category, so i can list Danny the dog in Action and in Kung Fu.

Moreover, if there's an already-made frond end in PHP, i agree to take it too :ha: !!!

Thanks in advance, and if this has already been discussed, excuse me once again...

This question can also be asked for Actors, Directors, Sub-titles, Languages, Producers, Country, ans so on...
antp
Site Admin
Posts: 9651
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

Multiple values for categories is not handled by AMC.
So it would be possible that a template splits the multiple categories stored in the field, but it is not stored as separated values in the database, and not possible to export the data as separated values.
Zaphod
Posts: 3
Joined: 2006-05-14 14:04:00

Post by Zaphod »

antp wrote:Multiple values for categories is not handled by AMC.
I know, and that's not a problem at all.
antp wrote:So it would be possible that a template splits the multiple categories stored in the field
Ok, so we can do it in a template. I believe that templates are for export, so what kind of template can I use to do it ? HTML ? And moreover how a template can split it ? And has anyone already tried it ? Will I have to do things like that :

Code: Select all

<?php
  ...
  process_multicategory(THECATEGORY);
  ...
?>
Or is there a simplier way ?
antp
Site Admin
Posts: 9651
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

I mean that it could be processed by a PHP template, but not in a static HTML exported file.
Zaphod
Posts: 3
Joined: 2006-05-14 14:04:00

Post by Zaphod »

Ok, I'll try to wort it out... But if someone, has already succeeded in doing it... Just answer here... :grinking:
lestatou
Posts: 25
Joined: 2006-10-28 20:45:45

Post by lestatou »

Please... I need some help.

I use this script with php http://lestatou.iespana.es/example.php

I'm spanish and my english is not very good, sorry.

I want to split "multicategories" in "individual categories". For example:

the movie "La Batalla de midway" has "drama" and "belica" categories, but ant movie creates a multicategory called "drama, belica". I want that in my php "la batalla de midway" appears at categoris of "drama" and "belica" and not in a category called "drama, belica".

I suposse that this question is very frequently, but I don't have idea about php, sorry.

Thanks !
Post Reply