Dear All,

I am fairly new to Magnolia. After following the module mechanism, I have build 
a custom model which needs to return me a list, which should

a) return me all of the nodes which belongs to "STKArticle" template
b) It should be sorted list based on the custom property called publication 
"date", which is part of my dialog.

I have tried to execute the following query, but it does not sort the records 
by "date":

select * from [nt:base] where ISDESCENDANTNODE([/home-project/news/uk-branch]) 
AND 
[mgnl:template] = 'standard-templating-kit:pages/news/stkNewsArticle' 
order by [date] desc

In the same query, when I change the [nt:base] to [mgnl:page] it does not 
return me any records.

Could any one please suggest how to target and find the page nodes I need to 
render?

Much appreciate your help!

Regards,
MD

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=21a92a59-d487-438d-b3be-0271af17644f


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to