0

I have a channel that uses a Bloqs fieldtype in ee3. One of the defined blocks has a native relationship in it. I can output all the content from the related entries without a problem, but was wondering if anyone else had a problem with the total_results variable.

{exp:channel:entries}
{bloqs_field}
  {block_type}
    total: {relationfield:total_results}
    {relationfield}
        {relationfield:title} ({relationfield:count})
    {/relationfield}
  {/block_type}
{/bloqs_field}
{/exp:channel:entries}

Everything above works as expected - except the output of {relationfield:total_results} which is always "1" regardless of the number of items selected > 0.

Has anyone else run across this problem?

1 Answer 1

0

I believe to access the total_results tag it needs to be inside the relationship tags, currently you have it sitting outside the tag.

1
  • Hmm. Could have sword I had replied to this, but I don't see it here... Regardless of where I put the tag, the output remains the same.
    – koivi
    Apr 11, 2017 at 15:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.