Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jamie Attwood 201 posts 493 karma points c-trib
    Aug 30, 2016 @ 14:15
    Jamie Attwood
    0

    Using nupicker value inside Orderby clause

    I am using a nupicker to assign a category to a product item content type via an xml radiobutton picker that picks up the values for the category through another set of nodes in the content section.

    The nupicker content item contains a category name/label in English and french.

    I am now trying to loop through my products and order the list by either the English or french label name - not the id of the nupicker category.

    Using dynamic inside a macro, if I do an OrderBy the alias of the nupicker, it will of course order based on the ID of the category, however, I would like it to somehow dynamically resolve and sort on the internal property names as needed.

    If this cant be done inside the orderby, then how could I create a parallel dynamic list and resovle the values inside a for loop and then bind my output to the secondary result set?

    Any ideas appreciated!

    Thanks,

    Jamie

Please Sign in or register to post replies

Write your reply to:

Draft