EN: I need to select all resources with template №1
AND ([with current resource as parent] OR [resources which has TV showin parameter contains ID of current resource]
). How to build this query?
RU: Мне нужно выбрать все ресурсы с шаблоном №1
И ([текущим ресурсом в качестве родителя] ИЛИ [ресурсы у которых доп.поле showin содержит ID текущего ресурса]
). Как построить этот запрос?
WHERE template=1 AND (parent=[[*id]] OR showin LIKE '%[[*id]]%')
EN: What I tried:
RU: Что Я попробовал:
&where=`{"template":1},{"parent":[[*id]],"OR:showin:LIKE":"%[[*id]]%"}`
&where=`{"template":1","AND:":{"parent":[[*id]],"OR:showin:LIKE":"%[[*id]]%"}}`
&where=`{{"template":1},{"AND:parent:=":[[*id]],"OR:showin:LIKE":"%[[*id]]%"}}`
&where=`{["template":1],["AND:parent:=":[[*id]],"OR:showin:LIKE":"%[[*id]]%"]}`
[ed. note: i_am_bars last edited this post 7 years ago.]