Snipt.net is closing on December 31st, 2016

For more information, please visit this blog post.

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/
https://snipt.net/raw/8f519940f0965984452507bddd0000ff/
8f519940f0965984452507bddd0000ff
text
Text only
2
2016-12-02T19:47:30
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

Text only

Drupal 7 : Add i18n to field (Localization)

1
2
3
4
1 - Add and enable the "Field translation" module (http://drupal.org/node/1279346)
2 - Go to your field settings
3 - A new "Translate" tab has appeared !
4 - Click it and translate the field ! It's that simple
https://snipt.net/embed/e969d2a09a002157029467f0943dd910/
https://snipt.net/raw/e969d2a09a002157029467f0943dd910/
e969d2a09a002157029467f0943dd910
text
Text only
4
2016-11-30T02:52:11
True
False
True
Oct 29, 2012 at 04:26 AM
/api/public/snipt/48481/
drupal-7-add-i18n-to-field-localization
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>1 - Add and enable the &quot;Field translation&quot; module (http://drupal.org/node/1279346) </span><span id="L-2"><a name="L-2"></a>2 - Go to your field settings </span><span id="L-3"><a name="L-3"></a>3 - A new &quot;Translate&quot; tab has appeared ! </span><span id="L-4"><a name="L-4"></a>4 - Click it and translate the field ! It&#39;s that simple </span></pre></div> </td></tr></table>
"drupal 7", field, i18n
Copyrighted, illegal, or inappropriate content? Email [email protected].