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: No “no_results” when entry assigned to a category in one language

Status Resolved
Add-on / Version Publisher 1.6.7
Severity
EE Version 2.10.1

Madelon

Sep 10, 2015

Description:
I have a channel in which one entry exists. This entry has an English translation. The Dutch translation does not exist. The entry has been assigned to a category.

I am viewing the Dutch page and it is blank while I added a message to show when there are no results.

{exp:channel:entries channel="test-channel" dynamic="no" publisher_lang_id="{publisher:current_language_id}" publisher_enable_persistence="n" limit="8" disable="categories|category_fields|member_data|pagination"}
{if no_results}
 <p>No results - This message will not show</p>
<p>{/if}<br />
{/exp:channel:entries}

When I remove the category from the entry, the message that is specified in “no_results” will show.

#1

BoldMinded (Brian)

I try to replicate and fix it this week.

#2

BoldMinded (Brian)

Madelon, I think this is an EE bug, not Publisher related. I created a bug report after looking into it last night. https://support.ellislab.com/bugs/detail/21106

#3

Madelon

I looked further into it. More people have the same problem:

http://stackoverflow.com/questions/13119828/expressionengine-no-results-not-working http://expressionengine.stackexchange.com/questions/21823/no-results-doesnt-work-if-channelentries-uses-category-as-parameter

I added the parameter require_entry=”yes” to my tag and now it works.

Thank you for looking into it and report it to Ellislab.

Login to reply