<?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 page of content web from a structure created on the global site</title>
  <link rel="self" href="https://liferay.dev/es/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121802070" />
  <subtitle>Display page of content web from a structure created on the global site</subtitle>
  <id>https://liferay.dev/es/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121802070</id>
  <updated>2026-04-17T16:56:59Z</updated>
  <dc:date>2026-04-17T16:56:59Z</dc:date>
  <entry>
    <title>RE: Display page of content web from a structure created on the global site</title>
    <link rel="alternate" href="https://liferay.dev/es/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121806501" />
    <author>
      <name>Jamie Sammons</name>
    </author>
    <id>https://liferay.dev/es/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121806501</id>
    <updated>2023-05-22T21:01:57Z</updated>
    <published>2023-05-22T21:01:56Z</published>
    <summary type="html">&lt;p&gt;Hi Eric,&lt;/p&gt;
&lt;p&gt;Thank you for the contribution! &lt;/p&gt;
&lt;p&gt;Here is the related Jira ticket: &lt;a href="https://issues.liferay.com/browse/LPS-185358"&gt;https://issues.liferay.com/browse/LPS-185358&lt;/a&gt;&lt;/p&gt;</summary>
    <dc:creator>Jamie Sammons</dc:creator>
    <dc:date>2023-05-22T21:01:56Z</dc:date>
  </entry>
  <entry>
    <title>Display page of content web from a structure created on the global site</title>
    <link rel="alternate" href="https://liferay.dev/es/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121802069" />
    <author>
      <name>Eric DARIEL</name>
    </author>
    <id>https://liferay.dev/es/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121802069</id>
    <updated>2025-10-21T05:12:37Z</updated>
    <published>2023-05-20T17:21:09Z</published>
    <summary type="html">&lt;p&gt;Liferay is very interesting when you have to manage a lot of sites
  and users.&lt;br&gt; In this case, the use of site templates is ideal.&lt;br&gt;
  It is therefore possible to create Web contents that will be visible
  on a particular site or on several sites of the same region, country
  or entity.&lt;br&gt; All of this is possible using site hierarchies
  (organizations) or assets libraries.&lt;br&gt; The problem in this case is
  that the asset publisher will offer the content of the different sites
  but their display page will not necessarily be on the current site or
  the content can be created without a default display page.&lt;/p&gt;
&lt;p&gt;
  &lt;br&gt; We want that a user of a site always stay on the current site
  with the right branding and not the site of the country or region. (if
  the web content has been created on the country or the region)&lt;br&gt; Our
  proposal would be that if the web content does not have a display page
  but if a page of the current site is named like the name of the
  structure of the current web content, instead of making an error, we
  could display the content on this display page intended for.&lt;/p&gt;
&lt;p&gt;For my client, we implemented this.&lt;/p&gt;
&lt;p&gt;The structure was created on the global site and therefore without a
  default display page, but we use a page with the same name as the name
  of the structure created on the site template.&lt;br&gt; We have 500 sites
  with this site template, this page is created on our 500 sites and
  contains an asset publisher who display the detail of the active web
  content.&lt;br&gt; So we overridden the native Liferay code in version
  7.4u64 to do this.&lt;/p&gt;
&lt;p&gt;It would be nice if it was Liferay native so that we don't need to
  check that our code remains compatible with the new Liferay code.&lt;br&gt;
  To do this, we simply override the class
  DefaultAssetDisplayPageFriendlyURLResolver.java and adapt the code to
  find the article not in the current site but in the parents sites or
  in the global. And for the display page, if none have been found, we
  try to find a page in the current site with the name of the stucture
  of the web content... so we search a page /web/my-current-site/structure-name-article.&lt;/p&gt;
&lt;p&gt;If the stucture of the content is named &amp;quot;news&amp;quot;, and the
  current site is &amp;quot;site-london&amp;quot; the url would be
  &amp;quot;/group/site-london/news&amp;quot; and the url of the content will be
  &amp;quot;/group/site-london/-/the-url-of-the-web-content&amp;quot; and not
  the url &amp;quot;/group/uk/...&amp;quot; or
  &amp;quot;/group/great-britain/...&amp;quot; or &amp;quot;/group/global/...&amp;quot;
  (I know, global site does not exist !)&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Regards, Eric.&lt;/p&gt;</summary>
    <dc:creator>Eric DARIEL</dc:creator>
    <dc:date>2023-05-20T17:21:09Z</dc:date>
  </entry>
</feed>
