<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Get articles with language_id parameter - SOLVED</title>
  <link rel="self" href="https://liferay.dev/pt/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=3396508" />
  <subtitle>Get articles with language_id parameter - SOLVED</subtitle>
  <id>https://liferay.dev/pt/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=3396508</id>
  <updated>2026-06-02T19:40:35Z</updated>
  <dc:date>2026-06-02T19:40:35Z</dc:date>
  <entry>
    <title>RE: Get articles with language_id parameter</title>
    <link rel="alternate" href="https://liferay.dev/pt/c/message_boards/find_message?p_l_id=119785294&amp;messageId=21509559" />
    <author>
      <name>Alex Galkin</name>
    </author>
    <id>https://liferay.dev/pt/c/message_boards/find_message?p_l_id=119785294&amp;messageId=21509559</id>
    <updated>2013-02-14T18:16:12Z</updated>
    <published>2013-02-14T18:16:12Z</published>
    <summary type="html">Same happens for me. @language_id@ is not parsed in Web Content. Please post any suggestion or workaround. Thanks</summary>
    <dc:creator>Alex Galkin</dc:creator>
    <dc:date>2013-02-14T18:16:12Z</dc:date>
  </entry>
  <entry>
    <title>RE: Get articles with language_id parameter</title>
    <link rel="alternate" href="https://liferay.dev/pt/c/message_boards/find_message?p_l_id=119785294&amp;messageId=3458600" />
    <author>
      <name>Francesco Marangi</name>
    </author>
    <id>https://liferay.dev/pt/c/message_boards/find_message?p_l_id=119785294&amp;messageId=3458600</id>
    <updated>2009-06-30T14:49:02Z</updated>
    <published>2009-06-30T14:49:02Z</published>
    <summary type="html">Hi guys,&lt;br /&gt;&lt;br /&gt;I wanted to have access to the current locale inside a text area of a journal article &lt;em&gt;.&lt;br /&gt;&lt;br /&gt;Other tokens, like @root_path@ and @main_path@, work as expected, but somehow @language_id@ is not parsed and is returned as is. What&amp;#39;s wrong with that? Should i set up something in the .properties files? I&amp;#39;m not talking about Velocity Templates, i want to access these tokens from a web content directly.&lt;br /&gt;&lt;br /&gt;Can anybody help me with that? Thanks a million!&lt;br /&gt;&lt;br /&gt;Francesco&lt;/em&gt;</summary>
    <dc:creator>Francesco Marangi</dc:creator>
    <dc:date>2009-06-30T14:49:02Z</dc:date>
  </entry>
  <entry>
    <title>RE: Get articles with language_id parameter</title>
    <link rel="alternate" href="https://liferay.dev/pt/c/message_boards/find_message?p_l_id=119785294&amp;messageId=3406738" />
    <author>
      <name>Amos Fong</name>
    </author>
    <id>https://liferay.dev/pt/c/message_boards/find_message?p_l_id=119785294&amp;messageId=3406738</id>
    <updated>2009-06-25T16:58:38Z</updated>
    <published>2009-06-25T16:58:38Z</published>
    <summary type="html">oh interesting, I didn&amp;#39;t know that. Anyways nice job!</summary>
    <dc:creator>Amos Fong</dc:creator>
    <dc:date>2009-06-25T16:58:38Z</dc:date>
  </entry>
  <entry>
    <title>RE: Get articles with language_id parameter</title>
    <link rel="alternate" href="https://liferay.dev/pt/c/message_boards/find_message?p_l_id=119785294&amp;messageId=3402350" />
    <author>
      <name>Filippo Boatto</name>
    </author>
    <id>https://liferay.dev/pt/c/message_boards/find_message?p_l_id=119785294&amp;messageId=3402350</id>
    <updated>2009-06-25T09:14:34Z</updated>
    <published>2009-06-25T09:14:34Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;the parameter to use is:&lt;br&gt;&lt;pre&gt;&lt;code&gt;
&amp;amp;amp;[b][color=#00C002]languageId[/color][/b]=@language_id@
&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;and NOT:&lt;br&gt;&lt;pre&gt;&lt;code&gt;
&amp;amp;amp;[b][color=#C00300]language_id[/color][/b]=@language_id@
&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;I use this URL&lt;br&gt;&lt;pre&gt;&lt;code&gt;
http://@portal_url@/c/journal/get_articles?groupId=@group_id@&amp;amp;amp;[b]languageId=@language_id@[/b]&amp;amp;amp;type=marketing&amp;amp;amp;approved=true&amp;amp;amp;expired=false&amp;amp;amp;delta=1&amp;amp;amp;orderBy=display-date
&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;look at &lt;a href="https://205.134.240.99/web/guest/community/wiki/-/wiki/Main/CMS+Internal+API;jsessionid=09017AECB657FEAF9BA42A6B1AB97320"&gt;Wiki&lt;/a&gt;&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Filippo Boatto</dc:creator>
    <dc:date>2009-06-25T09:14:34Z</dc:date>
  </entry>
  <entry>
    <title>RE: Get articles with language_id parameter</title>
    <link rel="alternate" href="https://liferay.dev/pt/c/message_boards/find_message?p_l_id=119785294&amp;messageId=3401791" />
    <author>
      <name>Filippo Boatto</name>
    </author>
    <id>https://liferay.dev/pt/c/message_boards/find_message?p_l_id=119785294&amp;messageId=3401791</id>
    <updated>2009-06-25T08:11:57Z</updated>
    <published>2009-06-25T08:11:57Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;The problem is not the @language_id@ because it contains the same value of $locale.&lt;br&gt;&lt;br&gt;te problem is that the get_articles doen't matter the language_id parameter:&lt;br&gt;&lt;pre&gt;&lt;code&gt;
http://10.1.4.191:8082/portal/c/journal/get_articles?groupId=12501&amp;amp;amp;[b]language_id=en_US[/b]&amp;amp;amp;type=marketing&amp;amp;amp;delta=1&amp;amp;amp;approved=true&amp;amp;amp;expired=false&amp;amp;amp;orderBy=display-date
&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;and &lt;br&gt;&lt;pre&gt;&lt;code&gt;
http://10.1.4.191:8082/portal/c/journal/get_articles?groupId=12501&amp;amp;amp;[b]language_id=it_IT[/b]&amp;amp;amp;type=marketing&amp;amp;amp;delta=1&amp;amp;amp;approved=true&amp;amp;amp;expired=false&amp;amp;amp;orderBy=display-date
&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;does not returns the same article in English or Italian but returns always the same article in the same language.&lt;br&gt;&lt;br&gt;I've tried this in the portlet WebContent dysplay in my portal and it does not work, with or without language_id parameter.&lt;br&gt;BUT if i try the link, without the language parameter, in another window, &lt;br&gt;&lt;pre&gt;&lt;code&gt;
http://10.1.4.191:8082/portal/c/journal/get_articles?groupId=12501&amp;amp;amp;type=marketing&amp;amp;amp;delta=1&amp;amp;amp;approved=true&amp;amp;amp;expired=false&amp;amp;amp;orderBy=display-date
&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;it returns the right article with the current language selected in the portal.&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Filippo Boatto</dc:creator>
    <dc:date>2009-06-25T08:11:57Z</dc:date>
  </entry>
  <entry>
    <title>RE: Get articles with language_id parameter</title>
    <link rel="alternate" href="https://liferay.dev/pt/c/message_boards/find_message?p_l_id=119785294&amp;messageId=3399394" />
    <author>
      <name>Amos Fong</name>
    </author>
    <id>https://liferay.dev/pt/c/message_boards/find_message?p_l_id=119785294&amp;messageId=3399394</id>
    <updated>2009-06-24T23:28:11Z</updated>
    <published>2009-06-24T23:28:11Z</published>
    <summary type="html">Hi Filippo,&lt;br /&gt;&lt;br /&gt;That doesn&amp;#39;t appear to be a valid token. See the full list in journalUtil.java. Try using $locale instead.&lt;br /&gt;&lt;br /&gt;If you haven&amp;#39;t already found it, this is a good list of velocity variables available to you:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/How%20To%20Access%20Objects%20From%20A%20Velocity%20Template"&gt;http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/How%20To%20Access%20Objects%20From%20A%20Velocity%20Template&lt;/a&gt;</summary>
    <dc:creator>Amos Fong</dc:creator>
    <dc:date>2009-06-24T23:28:11Z</dc:date>
  </entry>
  <entry>
    <title>Get articles with language_id parameter - SOLVED</title>
    <link rel="alternate" href="https://liferay.dev/pt/c/message_boards/find_message?p_l_id=119785294&amp;messageId=3396507" />
    <author>
      <name>Filippo Boatto</name>
    </author>
    <id>https://liferay.dev/pt/c/message_boards/find_message?p_l_id=119785294&amp;messageId=3396507</id>
    <updated>2009-06-24T15:33:10Z</updated>
    <published>2009-06-24T15:33:10Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;with this code a have the last article o type "products"&lt;br&gt;&lt;pre&gt;&lt;code&gt;
http://@portal_url@/c/journal/get_articles?groupId=@group_id@&amp;amp;amp;type=products&amp;amp;amp;delta=1&amp;amp;amp;approved=true&amp;amp;amp;expired=false&amp;amp;amp;[b]language_id=@language_id@[/b]&amp;amp;amp;orderBy=display-date
&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;but the &lt;strong&gt;language_id=@language_id@&lt;/strong&gt; seems to be ignored...why?&lt;br&gt;&lt;br&gt;P.S. the article uses a structure and a template. It is inserted with localized check box checked.&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Filippo Boatto</dc:creator>
    <dc:date>2009-06-24T15:33:10Z</dc:date>
  </entry>
</feed>
