[
http://jira.magnolia-cms.com/browse/MAGNOLIA-3101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=26756#action_26756
]
Hudson CI server commented on MAGNOLIA-3101:
--------------------------------------------
Integrated in !http://hudson.magnolia-cms.com/nocacheImages/16x16/blue.gif!
[magnolia_main-trunk
#1401|http://hudson.magnolia-cms.com/job/magnolia_main-trunk/1401/]
MAGNOLIA-3101 Allowing mixed content/contentNode query results in
QueryImpl - trivial patch without changing any method signature
> 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]>
----------------------------------------------------------------