Skip to content

Instantly share code, notes, and snippets.

@pepebe
Last active June 21, 2023 09:43

Revisions

  1. pepebe revised this gist Jan 7, 2022. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions where.md
    Original file line number Diff line number Diff line change
    @@ -2,10 +2,11 @@
    ```
    &where=`{ "template:IN" : [ 1,2,3 ] }
    &where=`{ "template:NOT IN" : [ 1,2,3 ] }
    ```
    Source: https://gist.github.com/davidpede/a00fbd35ff7c0f69815c

    ## where with multiple conditions inside square brackets
    ```
    &where=`[{"alias:LIKE":"foo%", "OR:alias:LIKE":"%bar"},{"OR:pagetitle:=":"foobar", "AND:description:=":"raboof"}]`
    ```
    ```
    source: https://gist.github.com/davidpede/a00fbd35ff7c0f69815c
  2. pepebe created this gist Jan 7, 2022.
    2 changes: 2 additions & 0 deletions readme.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    # About this list
    A currated list of useful pdoTools settings/examples
    11 changes: 11 additions & 0 deletions where.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    ## where with single condition
    ```
    &where=`{ "template:IN" : [ 1,2,3 ] }
    &where=`{ "template:NOT IN" : [ 1,2,3 ] }
    ```

    ## where with multiple conditions inside square brackets
    ```
    &where=`[{"alias:LIKE":"foo%", "OR:alias:LIKE":"%bar"},{"OR:pagetitle:=":"foobar", "AND:description:=":"raboof"}]`
    ```