snipt

Ctrl+h for KB shortcuts

Text only

Drupal 7: View entity translation field duplicated issue

If you have a Sort Criteria on the title_field you may have your nodes appear twice.
To fix this, you just need to add a Filter Criteria on the title_field:language (Current user's language) and it works !
https://snipt.net/embed/8f519940f0965984452507bddd0000ff/
/raw/8f519940f0965984452507bddd0000ff/
8f519940f0965984452507bddd0000ff
text
Text only
2
2019-06-21T02:03:58
True
False
True
Jun 12, 2013 at 06:12 AM
/api/public/snipt/63929/
drupal-7-view-entity-translation-field-duplicated-issue
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>If you have a Sort Criteria on the title_field you may have your nodes appear twice. </span><span id="L-2"><a name="L-2"></a>To fix this, you just need to add a Filter Criteria on the title_field:language (Current user&#39;s language) and it works ! </span></pre></div> </td></tr></table>
"drupal 7", entity, field, i18n, translation, views