[ 
http://jira.magnolia-cms.com/browse/MGNLRSSAGG-12?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=21935#action_21935
 ] 

Jan Haderka commented on MGNLRSSAGG-12:
---------------------------------------

yeah indeed. This is what I meant when I said ordering is done by paragraph or 
more precisely by the {{ActionBasedParagraph}} class which is tied to the 
paragraph template and executed before template is rendered
the current code of the CombinedFeedAction class reads as {code}            
String queryString = 
"/jcr:root"+this.getContent().getNodeData("link").getString()+"/data[1]/*/* 
order by " + orderByNodeValue + " " + sortDirectionNodeValue;
{code}
and actually in the screenshot I've attached the {{orderByNodeValue}} was set 
to {...@pubdate}} and {{sortDirectionNodeValue}} was set to {{ascending}} 
resulting in the same query as you use (and the result is correct as you can 
see in the screenshot). I was under impression you are not using default 
CombinedFeedParagraph but one written explicitly for you. Maybe just send me 
svn link to it and I'll try with your paragraph. We might also want to move 
this issue to support :D

> Sortation of imported feed is wrong
> -----------------------------------
>
>                 Key: MGNLRSSAGG-12
>                 URL: http://jira.magnolia-cms.com/browse/MGNLRSSAGG-12
>             Project: Magnolia RSS Aggregator Module
>          Issue Type: Bug
>    Affects Versions: 1.0
>         Environment: Running the module in a 3.6.3 EE instance
>            Reporter: Olivier Marti
>            Assignee: Jan Haderka
>             Fix For: 1.0
>
>         Attachments: data.rssaggregator.Jans-Blog.xml, screenshot.png
>
>
> When importing the data from: http://neatresults.com/rah003/index.rdf we have 
> it correctly sorted in the repository, but when displaying it on the website 
> something goes wrong and the newest entry isn't on top anymore. Already the 
> class info.magnolia.module.rssaggregator.CombinedFeedAction is bringing the 
> collection back unsorted.
> See the attached file as an export of the data.

-- 
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]>
----------------------------------------------------------------

Reply via email to