pierrot1010 Reply #1, 3 months, 3 weeks ago
Dear All,
I am not a developper with MODx but I need to select to table
modx_memeber_group
modx_document_group
I protected some ressource and some user can access it because the are in Group resource.
I also created a snipest wich display some child resource.
I found how to filter, hidden document, but I need to filter document which are protetec.
In other words
1) If no user is authentified, the protected documetn are not showed
2) If user is logged, only the documents which belong to the resource group that user is owned
I know that the information are in the two emntionned table and I know how to get the user id.
But now, I do not know how to make the mysql query with MODx. I could make the usual mysql request, but I whish to respect the MODx syntax and then I would appreciate if you could inform me, how to do it?
Many thank for your help
I am not a developper with MODx but I need to select to table
modx_memeber_group
modx_document_group
I protected some ressource and some user can access it because the are in Group resource.
I also created a snipest wich display some child resource.
I found how to filter, hidden document, but I need to filter document which are protetec.
In other words
1) If no user is authentified, the protected documetn are not showed
2) If user is logged, only the documents which belong to the resource group that user is owned
I know that the information are in the two emntionned table and I know how to get the user id.
But now, I do not know how to make the mysql query with MODx. I could make the usual mysql request, but I whish to respect the MODx syntax and then I would appreciate if you could inform me, how to do it?
Many thank for your help
)