Grouping categories (1 Viewer)

pantav

Portal Pro
January 5, 2009
68
5
Home Country
Spain Spain
It is possible to group categories?

Because now i have 3 categories: adventure, aventura, aventuras, refering to the same type of films. I am requesting if it is possible to merge this categories in only one (without a manually mantained method).

A similar situation happens with more grups.

Thanks.
 

RoChess

Extension Developer
  • Premium Supporter
  • March 10, 2006
    4,434
    1,897
    It is possible to group categories?

    Because now i have 3 categories: adventure, aventura, aventuras, refering to the same type of films. I am requesting if it is possible to merge this categories in only one (without a manually mantained method).

    A similar situation happens with more grups.

    Thanks.

    You could run SQL queries that adjust the Genre field to a single name that you prefer, i.e. "Aventuras", but since you indicated you want a more automated method it would be possible to edit your scrapers to do this all automatic via the Replace node during the parsing loop of the Genres.

    For the IMDb scraper this would be something like:

    Code:
          <loop name='currGenre' on='genres'>
            <replace name="genres_fixed" input="${movie.genres}|${currGenre[0]:htmldecode}" pattern="(a|A)(d)?ventur(e|a)(s)?" with="Aventuras" />
            <set name='movie.genres' value='${genres_fixed}'/>
          </loop>
     

    pantav

    Portal Pro
    January 5, 2009
    68
    5
    Home Country
    Spain Spain
    Thanks.

    I try the solutions, and wait for a permanent solution in the future (dictionaries?).
     

    Users who are viewing this thread

    Top Bottom