I'm new to Drupal.
I have a couple of Content Types and some of them have a special field called Foo. This field has value 1 for some Contents and 2 for others.
I need to create a page that will list all the Content Types which have Contents with Foo equals 2. In this list, each item must be linked to 'some-page/$s', where $s is the Content Type.
Initially I thought about creating a module and writing raw SQL, but since I don't know te Drupal database structure yet, I decided to try a solution with Views. I ended up with almost exactly what I need, but I can't create the link right, because the Content Type is being printed with underscores in the place of hiphens.
Any help? If you know a different solution (with no Views), please post it.
Thanks.