[
http://jira.magnolia-cms.com/browse/MAGNOLIA-3101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Fabrizio Giustina resolved MAGNOLIA-3101.
-----------------------------------------
Resolution: Fixed
done as described, the patch doesn't change any interface method since it
relies on a space separated list of nodetypes.
> Allowing mixed content/contentNode query results in QueryImpl
> --------------------------------------------------------------
>
> Key: MAGNOLIA-3101
> URL: http://jira.magnolia-cms.com/browse/MAGNOLIA-3101
> Project: Magnolia
> Issue Type: Improvement
> Affects Versions: 4.3 M2
> Reporter: Fabrizio Giustina
> Assignee: Fabrizio Giustina
> Priority: Trivial
> Fix For: 4.3
>
>
> There may be several cases where you want to query for something that may be
> a content or a contentNode (page or paragraphs) and you want results of both
> types.
> At the moment you can only specify a single nodeType in query, so there is no
> way to handle a similar case. Also using the single query twice with
> different nodeType is not enough...
> <cms:query nodeType="mgnl:content" ..../>
> <cms:query nodeType="mgnl:contentNode" ..../>
> ... since the first query will also returns pages containing paragraphs that
> matches the xpath expression (QueryImpl iterates on parents till it founds
> the requested nodetype)... you will have to create two different queries with
> the nodetype used also for the xpath condition. After that, you may need to
> merge and sort the results.
> With a trivial change in QueryImpl we may allow specifying more than one node
> type, so that users can simply do:
> <cms:query nodeType="mgnl:content mgnl:contentNode" ..../>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------