• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

module_data multiple attributes for "order"

Participant ,
Mar 21, 2017 Mar 21, 2017

Copy link to clipboard

Copied

Allow a secondary order field to be pushed instead of just having it do an "alphabetical" search when products match.

example:

{module_data resource="products" order="isOnSale,-releaseDate" version="v3" fields="name" skip="0" limit="10" collection="catPoducts"}

This example would show all products on sale by release date first followed by all the products not on sale ordered by release date.

TOPICS
Developer

Views

211

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
May 13, 2017 May 13, 2017

Copy link to clipboard

Copied

LATEST

I support the idea and also would combine what I think still in the same line would be great to allow cross resources e.g {module_data resorce="orders,products" ... collection="Data"} and be able to dot output them under the collection like {{Data.orders.id}} and {{Data.products.id}}

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines