Publisher does not support the Fluid field type. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: Using Bloqs Date Field in ‘orderby=’ List Output

Status Resolved
Add-on / Version Bloqs 3.3.0
Severity
EE Version 3.5.14

James Breen

Nov 01, 2018

I want a simple event listing. I want the output the list by a custom field I created as part of a Bloqs date field.

{exp:channel:entries channel="touring_calendar" dynamic="no" orderby="touring_date_and_time" sort="asc"}

This did not output by date. I contacted Ellislab support and they were uncertain if a date field created in Bloqs could be used in an ‘orderby’. 

They suggested that “the simple solution might be to take that date out of the bloqs and use it as a regular standalone date field” I did that and it worked. At present using this as the solution. 

My question, is this true?  I need to know for future projects. Bloqs is the best way to set up custom fields, and I want to keep using it. Also taking the date out of bloqs is a very clunky way to do it.

Thanks ...

#1

BoldMinded (Brian)

If I understand correctly what you are seeing is correct behavior. The orderby parameter can’t search inside of a Bloqs field to determine how to order entry results. You could have 10 blocks with the same date field with different values, which means it won’t know which date field to use to to do the ordering. The only parameter on the entries tag that will work with Bloqs is the search parameter, e.g. exp:channel:entries search:your_bloqs_field=”some text”

#2

BoldMinded (Brian)

Also, you’re several versions behind on Bloqs if you’re using 3.3 still.

Login to reply