We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 30025
    • 32 Posts
    Is it possible to display only resources that start with a certain letter with getResources? If not, is there another way to do this?
      • 4172
      • 5,888 Posts
      try
      &where=`{{"pagetitle:LIKE":"a%"}}`
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 30025
        • 32 Posts
        Quote from: Bruno17 at Sep 11, 2010, 02:32 AM

        try
        &where=`{{"pagetitle:LIKE":"a%"}}`


        Great!!! That worked!!

        Another question: How would I use a TV in place of pagetitle? I tried to sort by TV with:

        &where=`{{"artistName:=":"Travis"}}`


        But I get the following error:

        [2010-09-14 23:53:18] (ERROR @ /index.php) Error 42S22 executing statement: Array ( [0] => 42S22 [1] => 1054 [2] => Unknown column 'modResource.artistName' in 'where clause' )