<?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>Display  knowledge base artilce in asset pulpisher in lifeay 7.1 to Guests</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=113435340" />
  <subtitle>Display  knowledge base artilce in asset pulpisher in lifeay 7.1 to Guests</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=113435340</id>
  <updated>2026-04-03T18:51:38Z</updated>
  <dc:date>2026-04-03T18:51:38Z</dc:date>
  <entry>
    <title>RE: Display  knowledge base artilce in asset pulpisher in lifeay 7.1 to Gue</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113517905" />
    <author>
      <name>Andrew Jardine</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113517905</id>
    <updated>2019-05-03T17:12:45Z</updated>
    <published>2019-05-03T17:12:45Z</published>
    <summary type="html">Hahaha .. well that&amp;#39;s an argument for you to have with Liferay &lt;img alt="emoticon" src="@theme_images_path@/emoticons/happy.gif" &gt;. If you really believe it to be an error, then I suggest you open a ticket at issues.liferay.com and state your case there &lt;img alt="emoticon" src="@theme_images_path@/emoticons/happy.gif" &gt;</summary>
    <dc:creator>Andrew Jardine</dc:creator>
    <dc:date>2019-05-03T17:12:45Z</dc:date>
  </entry>
  <entry>
    <title>RE: Display  knowledge base artilce in asset pulpisher in lifeay 7.1 to Gue</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113517560" />
    <author>
      <name>Nader Jafari</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113517560</id>
    <updated>2019-05-03T17:02:32Z</updated>
    <published>2019-05-03T17:02:32Z</published>
    <summary type="html">Thank you Andrew.&lt;br /&gt;I am new in liferay 7 &lt;img alt="emoticon" src="@theme_images_path@/emoticons/happy.gif" &gt; and OSGI is great!&lt;br /&gt;i think if this path does not work for Guest so this is a bug!&lt;br /&gt;everyone expect that works for Guest when KB articles have enough permissions!</summary>
    <dc:creator>Nader Jafari</dc:creator>
    <dc:date>2019-05-03T17:02:32Z</dc:date>
  </entry>
  <entry>
    <title>RE: Display  knowledge base artilce in asset pulpisher in lifeay 7.1 to Gue</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113505072" />
    <author>
      <name>Andrew Jardine</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113505072</id>
    <updated>2019-05-02T20:46:18Z</updated>
    <published>2019-05-02T20:46:18Z</published>
    <summary type="html">I thought about it a little more and there is one more thing to consider when using the portal-ext. With each release, more and more of the portal-ext properties are deprecated as they are moved into new models... Usually the control panel somewhere. So it might work now, but might stop working in an upgrade.</summary>
    <dc:creator>Andrew Jardine</dc:creator>
    <dc:date>2019-05-02T20:46:18Z</dc:date>
  </entry>
  <entry>
    <title>RE: Display  knowledge base artilce in asset pulpisher in lifeay 7.1 to Gue</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113502662" />
    <author>
      <name>Andrew Jardine</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113502662</id>
    <updated>2019-05-02T16:21:42Z</updated>
    <published>2019-05-02T16:21:42Z</published>
    <summary type="html">Hi Nader,&lt;br /&gt;&lt;br /&gt;That&amp;#39;s good to hear. No, it&amp;#39;s not wrong -- you can do it that way as well of course. The only downside to that approach is that you lose some of the awesome dynamism that Liferay gives you. By putting it in a module it allows you to turn the public path &amp;#34;on and off&amp;#34; at runtime without the need to restart the server. In your case though, it&amp;#39;s probably not an issue because that KB is an out of the box feature -- but if you ever find yourself defining your own public paths, I would encourage you to use the module approach so that the paths come and go with the availability of your feature.</summary>
    <dc:creator>Andrew Jardine</dc:creator>
    <dc:date>2019-05-02T16:21:42Z</dc:date>
  </entry>
  <entry>
    <title>RE: Display  knowledge base artilce in asset pulpisher in lifeay 7.1 to Gue</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113491001" />
    <author>
      <name>Nader Jafari</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113491001</id>
    <updated>2019-05-02T04:18:15Z</updated>
    <published>2019-05-02T04:18:15Z</published>
    <summary type="html">Thank you for detailed reply  &lt;img alt="emoticon" src="@theme_images_path@/emoticons/smile.gif" &gt; it works!&lt;br /&gt;But i do this by another way like liferay 6.1, i set this property in portal-ext.properties and append &lt;strong&gt;/knowledge_base/find_kb_article&lt;/strong&gt; to this property value , is it wrong?</summary>
    <dc:creator>Nader Jafari</dc:creator>
    <dc:date>2019-05-02T04:18:15Z</dc:date>
  </entry>
  <entry>
    <title>RE: Display  knowledge base artilce in asset pulpisher in lifeay 7.1 to Gue</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113488451" />
    <author>
      <name>Andrew Jardine</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113488451</id>
    <updated>2019-05-01T18:16:17Z</updated>
    <published>2019-05-01T18:16:17Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Hi Nader,&amp;nbsp;&lt;br&gt;&lt;br&gt;Alright I have reproduced your issue. I used the same setup that you specified above, however when I first did it, was working. But when I change the display type on teh asset publisher to "View in Context" it broke -- or rather it behaves the way you said, by challenging me to authenticate first.&amp;nbsp;&lt;br&gt;&lt;br&gt;Looking at the URL though I can see that it uses&amp;nbsp;&lt;br&gt;&lt;pre&gt;&lt;code&gt;http://localhost:8080/c/knowledge_base/find_kb_article?plid=20129&amp;amp;amp;resourcePrimKey=105031&amp;amp;amp;redirect=%2Fweb%2Fguest%2Fhome%3Fp_p_id%3Dcom_liferay_login_web_portlet_LoginPortlet%26p_p_lifecycle%3D0%26p_p_state%3Dnormal%26p_p_state_rcv%3D1
&lt;/code&gt;&lt;/pre&gt;.. the leading /c indicates that it is a StrutsAction (service) that is being invoked. My guess is that it's challenging you for creds because that path is not listed as public. By default, struts actions services are private and if you want to make a path public, then you have to set the property auth.public.path to include the path you want to be unprotected. In Liferay with OSGI you can do this with a simple service.&amp;nbsp;&lt;pre&gt;&lt;code&gt;​​​​​​​@Component(
    immediate = true,
&amp;amp;nbsp;   property = {
&amp;amp;nbsp;       "auth.public.path=/knowledge_base/find_kb_article"
&amp;amp;nbsp;   },
&amp;amp;nbsp;   service = Object.class
)
public class KBPublicPath {
&amp;amp;nbsp; // empty class -- used only to make teh knowledge base struts action path public
}
&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;One thing to keep in mind though is that this will make this action public for all knowledge bases (on this site and others) because the struts action is a server level change.&amp;nbsp;&lt;br&gt;&lt;br&gt;Let me know if that helps -- I didn't actuall try it on my side &lt;img alt="emoticon" src="@theme_images_path@/emoticons/smile.gif"&gt;&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Andrew Jardine</dc:creator>
    <dc:date>2019-05-01T18:16:17Z</dc:date>
  </entry>
  <entry>
    <title>RE: Display  knowledge base artilce in asset pulpisher in lifeay 7.1 to Gue</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113488102" />
    <author>
      <name>Andrew Jardine</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113488102</id>
    <updated>2019-05-01T18:04:16Z</updated>
    <published>2019-05-01T18:04:16Z</published>
    <summary type="html">Ok -- I was just checking. I&amp;#39;ll try to replicate your configuration on my side to see what I get for results.</summary>
    <dc:creator>Andrew Jardine</dc:creator>
    <dc:date>2019-05-01T18:04:16Z</dc:date>
  </entry>
  <entry>
    <title>RE: Display  knowledge base artilce in asset pulpisher in lifeay 7.1 to Gue</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113487413" />
    <author>
      <name>Nader Jafari</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113487413</id>
    <updated>2019-05-01T17:26:59Z</updated>
    <published>2019-05-01T17:26:59Z</published>
    <summary type="html">I placet an Asset publisher portlet in Home page that is public and guest can view this page fine.&lt;br /&gt;Next , i confiured this portlet to display KB articles and Works fine.&lt;br /&gt;I have another page in this site that i placed a KB Display Portlet on that and shows all articles fine.&lt;br /&gt;Guest can views all articles in second page But when i click on listed articles in Asset publisher portlet that placed in Home page , Liferay redirect me to Login page!</summary>
    <dc:creator>Nader Jafari</dc:creator>
    <dc:date>2019-05-01T17:26:59Z</dc:date>
  </entry>
  <entry>
    <title>RE: Display  knowledge base artilce in asset pulpisher in lifeay 7.1 to Gue</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113486829" />
    <author>
      <name>Andrew Jardine</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113486829</id>
    <updated>2019-05-01T15:30:52Z</updated>
    <published>2019-05-01T15:30:52Z</published>
    <summary type="html">Is the page that is being linked to a public page?</summary>
    <dc:creator>Andrew Jardine</dc:creator>
    <dc:date>2019-05-01T15:30:52Z</dc:date>
  </entry>
  <entry>
    <title>RE: Display  knowledge base artilce in asset pulpisher in lifeay 7.1 to Gue</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113481115" />
    <author>
      <name>Nader Jafari</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113481115</id>
    <updated>2019-05-01T06:06:55Z</updated>
    <published>2019-05-01T06:06:55Z</published>
    <summary type="html">Hi Andrew&lt;br /&gt;I checked all these as you said&lt;ul style="list-style: disc outside;"&gt;&lt;li&gt;All folders in KB portlet have the View permission for Guest role.&lt;/li&gt;&lt;li&gt;Asset Publisher posrtlet shows all KB articles as list fine.&lt;/li&gt;&lt;li&gt;Also KB Dislpay portlet shows all articles fine.&lt;/li&gt;&lt;/ul&gt;But all links in asset publisher as i said need to login &lt;img alt="emoticon" src="@theme_images_path@/emoticons/sad.gif" &gt;&lt;br /&gt;&lt;img src="/documents/14/112481359/kb-1.png/e739e618-90e0-8659-06a7-c9cb19bcd3c1?t=1556690666380"  height="727" width="995" /&gt;</summary>
    <dc:creator>Nader Jafari</dc:creator>
    <dc:date>2019-05-01T06:06:55Z</dc:date>
  </entry>
  <entry>
    <title>RE: Display  knowledge base artilce in asset pulpisher in lifeay 7.1 to Gue</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113480103" />
    <author>
      <name>Andrew Jardine</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113480103</id>
    <updated>2019-05-01T03:34:08Z</updated>
    <published>2019-05-01T03:34:08Z</published>
    <summary type="html">Hi Nader, &lt;br /&gt;&lt;br /&gt;I&amp;#39;m not sure if this will make a difference since you said you set each of the articles to have the VIEW permission for the Guest role -- but can you try&lt;br /&gt;&lt;br /&gt;1. Log in as admin&lt;br /&gt;2. Control Panel &amp;gt; Users &amp;gt; Roles&lt;br /&gt;3. Guest Row &amp;gt; Stop Light Menu or Kebab &amp;gt; Edit&lt;br /&gt;4. Across the top is a link for &amp;#34;Define Permissions&amp;#34;&lt;br /&gt;5. Expand Site Administration (left tree)&lt;br /&gt;6. Expand Content&lt;br /&gt;7. Click on Knowledge base&lt;br /&gt;&lt;br /&gt;.. and make sure the correct permissions are in place. Note though that this will now become the default so it means that all KB articles will be visible to Guest users. Just mentioning it in case that is NOT what you want.&lt;br /&gt;&lt;br /&gt;Also, just to make sure -- the Asset Publisher is configured to show the Knowledge Base asset type right? &lt;img alt="emoticon" src="@theme_images_path@/emoticons/happy.gif" &gt;</summary>
    <dc:creator>Andrew Jardine</dc:creator>
    <dc:date>2019-05-01T03:34:08Z</dc:date>
  </entry>
  <entry>
    <title>Display  knowledge base artilce in asset pulpisher in lifeay 7.1 to Guests</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113435339" />
    <author>
      <name>Nader Jafari</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113435339</id>
    <updated>2019-04-28T08:32:26Z</updated>
    <published>2019-04-28T08:32:26Z</published>
    <summary type="html">Hi guys&lt;br /&gt;&lt;br /&gt;i added some articles in knowledege base portlet and now i want to display these in asset pulisher portlet.&lt;br /&gt;when i configure an asset pulisher portlet all URLs start with &lt;em&gt;/c/knowledge_base/find_kb_article&lt;/em&gt; and when i click on these links liferay shows me login portlet that seem need to login to display contents of article.&lt;br /&gt;all articles have Guest permission and display fine in Knowledege Base Display portlet to guests.&lt;br /&gt;&lt;br /&gt;  Could someone help me please?</summary>
    <dc:creator>Nader Jafari</dc:creator>
    <dc:date>2019-04-28T08:32:26Z</dc:date>
  </entry>
</feed>
