Dec 7, 20218:31 AM - last edited on Dec 7, 20214:12 PM by PamCotton
Contributor
Error in my HubL code; please help!
SOLVE
On our one of our staging pages (*link removed due to security reasons) I use accordions to present product listings from our 'lenses' HubDB ID 5307563. All column 1 and most of column 2 accordions work as expected, sample code per:
where rows are selected by 'class'. The last 2 accordion sections in column 2 (CS - 3MP & M14 - VF) cheerfully refuse to display the required content. Sample code:
Rows with classes 'CS - 3MP' and 'M14 - VF' exist in the HubDB, yet these refuse to display. I have taken several steps to trouble-shoot but nothing works.
Is there anything obvious in what I'm doing wrong?
I have tried to isolate the problem by moving code from one of the working accordions into the offending accordion: success.
Then editing the 'class' filter in the code transplanted to the offending accordion to display the product class 'M12 - 10MP' from
{% for row in hubdb_table_rows(5307563,'class__contains=M12 - 10MP') %}
to
{% for row in hubdb_table_rows(5307563,'class__contains=CS - 3MP') %}
...trying to display the product class 'CS - 3MP'. Result: fail. Must be something with the DB. I've deleted the row for the offending single record for CS - 3MP and re-entered the data manually: fail.
I'm not sure what you mean by the schema of the table. The class column is a multi-select contining ~20 entries. All other columns are text fields.
@wmflan39 it's kind of hard to understand what's going on here. Are you able to make a reduced test case? And possibly the structure/schema of the hubdb table?