[[!migxLoopCollection?
&packageName=`datequote`
&classname=`DateQuote`
&selectfields=`id,quote,author`
&where=`[{"author:>":"John Doe",}]`
&tpl=`authorTpl`
&sortConfig=`[{"sortby":"pos"}]`
]]
><div class="grid-item"> <p style="font-size: 18px; color:#000000; font-weight: bold;">[[+quote]]</p> <em style="font-size: 14px; color:#800000;">[[+author]]</em> </div
This question has been answered by Bruno17. See the first response.
[[!migxLoopCollection?
&packageName=`datequote`
&classname=`DateQuote`
&selectfields=`id,quote,author`
&where=`{"author":"John Doe","value:LIKE":"%\"date\":\"21\"%"}`
&tpl=`authorTpl`
&sortConfig=`[{"sortby":"pos"}]`
]]<?xml version="1.0" encoding="UTF-8"?>
<model package="datequote" baseClass="xPDOObject" platform="mysql" defaultEngine="MyISAM" version="1.1">
<object class="DateQuote" table="datequote" extends="xPDOSimpleObject">
<field key="quote" dbtype="varchar" precision="255" phptype="string" null="false" default=""/>
<field key="author" dbtype="varchar" precision="255" phptype="string" null="false" default=""/>
<field key="topic" dbtype="varchar" precision="255" phptype="string" null="false" default=""/>
<field key="birthday" dbtype="varchar" precision="255" phptype="string" null="false" default=""/>
<field key="month" dbtype="varchar" precision="255" phptype="string" null="false" default=""/>
<field key="date" dbtype="int" precision="10" phptype="string" null="false" default=""/>
<field key="createdon" dbtype="datetime" phptype="datetime" null="true"/>
<field key="createdby" dbtype="int" precision="10" attributes="unsigned" phptype="integer" null="false" default="0" />
<field key="editedon" dbtype="datetime" phptype="datetime" null="true"/>
<field key="editedby" dbtype="int" precision="10" attributes="unsigned" phptype="integer" null="false" default="0" />
<field key="deleted" dbtype="tinyint" precision="1" attributes="unsigned" phptype="integer" null="false" default="0" />
<field key="deletedon" dbtype="datetime" phptype="datetime" null="false" />
<field key="deletedby" dbtype="int" precision="10" phptype="integer" null="false" default="0" />
<field key="published" dbtype="tinyint" precision="1" attributes="unsigned" phptype="integer" null="false" default="0" />
<field key="publishedon" dbtype="datetime" phptype="datetime" null="false" />
<field key="publishedby" dbtype="int" precision="10" phptype="integer" null="false" default="0" />
<aggregate alias="CreatedBy" class="modUser" local="createdby" foreign="id" cardinality="one" owner="foreign"/>
<aggregate alias="EditedBy" class="modUser" local="editedby" foreign="id" cardinality="one" owner="foreign"/>
</object>
</model>&where=`{"author":"John Doe"}`&where=`{"author":"John Doe","date":"21"}`to get the author with name John Doe try:
&where=`{"author":"John Doe"}`
not sure, to understand, what you are trying with the date
but getting an author with name John Doe and date of 21, you would do:
&where=`{"author":"John Doe","date":"21"}`
