<?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>I fear I've to develop my own theme for language support and cookie warning</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120467183" />
  <subtitle>I fear I've to develop my own theme for language support and cookie warning</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120467183</id>
  <updated>2026-04-05T02:41:25Z</updated>
  <dc:date>2026-04-05T02:41:25Z</dc:date>
  <entry>
    <title>RE: I fear I've to develop my own theme for language support and cookie war</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120478707" />
    <author>
      <name>Andre Kreienbring</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120478707</id>
    <updated>2020-11-29T14:47:39Z</updated>
    <published>2020-11-29T14:47:39Z</published>
    <summary type="html">&lt;p&gt;Thanks! The link you posted and the method described there is
  working! Regarding the copy of the classic theme: The best way to
  achive that is to unpack the deployed theme war (from the osgi folder)
  make your changes and build it with gulb again.&lt;/p&gt;
&lt;p&gt;However, if you have only small changes, it might even be simpler to
  unpack - change - repack the original theme. Because I think one has
  to do the same work on every release of liferay again anyway.&lt;/p&gt;
&lt;p&gt;BUT: making Liferay compliant with the European Law, regarding the
  cookie rules..., thats kind of a challenge that might be worth a blog post!&lt;/p&gt;
&lt;p&gt;The reason is that in Europe we are basically not allowed to place a
  cookie in the browser without the consent of the user! Plus: the user
  must have the possibility to reject cookies permanently!&lt;/p&gt;
&lt;p&gt;The only exception to this rule are cookies that are 'necessary' to
  offer the service at all.&lt;/p&gt;
&lt;p&gt;But Liferay places cookies for the Session (JSESSION), the guest
  language (GUEST_LANGUAGE_ID) and the ability to store cookies
  (COOKIE_SUPPORT) on every visit on the page. To argue that the latter
  two are 'necessary' is at least.... critical.&lt;/p&gt;
&lt;p&gt;Disabling this via portlet.properties is not really an option as this
  is a per user decision!&lt;/p&gt;
&lt;p&gt;The support of Google Analytics, the standard way Liferay supports 
  it (which is outdated anyway), is also not allowed because of the same
  reason. For me some specific Javascript and a lot of user information
  was needed to be compliant with the law.&lt;/p&gt;
&lt;p&gt;However! If someone is curious how I solved this: &lt;a
    href="https://www.indie-smarthome.com" target="_blank"&gt;https://www.indie-smarthome.com&lt;/a&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</summary>
    <dc:creator>Andre Kreienbring</dc:creator>
    <dc:date>2020-11-29T14:47:39Z</dc:date>
  </entry>
  <entry>
    <title>RE: RE: I fear I've to develop my own theme for language support and cookie</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120469658" />
    <author>
      <name>Fredi B</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120469658</id>
    <updated>2020-11-25T06:43:45Z</updated>
    <published>2020-11-25T06:43:45Z</published>
    <summary type="html">&lt;p&gt;Yes, you are a right and like the new forum - the new Liferay IDE is
  kind of a mess und totally unreliable.&lt;/p&gt;
&lt;p&gt;Regarding your theme - we also still use &amp;quot;old themes&amp;quot; that
  are WARs and deploy them via Gradle deploy-Task.&lt;/p&gt;
&lt;p&gt;In 7.2 it was possible to deploy them via Add/Remove - this is now
  sadly not possible anymore.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;MAybe you try this to create a theme for 7.3:&lt;/p&gt;
&lt;p&gt;https://lifedev-solutions.blogspot.com/2020/02/creating-themes-for-liferay-73.html &lt;/p&gt;
&lt;p&gt;Creating theme with npm &amp;amp; yeoman like described there is - I
  guess - the way Liferay wants us to do this now. (Enable more
  frontend-dev to work in Liferay-Projects)&lt;/p&gt;</summary>
    <dc:creator>Fredi B</dc:creator>
    <dc:date>2020-11-25T06:43:45Z</dc:date>
  </entry>
  <entry>
    <title>RE: I fear I've to develop my own theme for language support and cookie war</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120468592" />
    <author>
      <name>Andre Kreienbring</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120468592</id>
    <updated>2020-11-24T16:16:33Z</updated>
    <published>2020-11-24T16:16:32Z</published>
    <summary type="html">&lt;p&gt;Thanks for answering, Fredi.&lt;/p&gt;
&lt;p&gt;But it looks like I need some more advice...&lt;/p&gt;
&lt;p&gt;I'm using Liferay IDE 3.9 with Eclipse on Windows and created a new
  Liferay Module project like described &lt;a
    href="https://liferay.dev/blogs/-/blogs/liferay-7-theme-development-with-ide"&gt;in
    this old blog post.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The resulting module structure looks like this:&lt;/p&gt;
&lt;p&gt;
  &lt;img src="/documents/14/0/Screenshot+2020-11-24+165011.png/fe6832c0-3512-0418-1d91-a4703ed0a899?t=1606233919111&amp;amp;imagePreview=1" /&gt;&lt;/p&gt;
&lt;p&gt;The structure of the classic theme in the portal sources looks like this:&lt;/p&gt;
&lt;p&gt;
  &lt;img src="/documents/14/0/Screenshot+2020-11-24+170759.png/781f66b1-aef4-faad-630f-08b13dd0aa10?t=1606234091878&amp;amp;imagePreview=1" /&gt;&lt;/p&gt;
&lt;p&gt;Looks quite different...&lt;br /&gt;I tried two ways to copy the images,
  css, templates and WEB-INF folder to my new theme.&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;Remove everything under webapp and copy the 4 folders there&lt;/li&gt;
  &lt;li&gt;Remove the main folder and copy the 4 folders to the src folder&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;However, both ways do not work. Because building (Gradle Task) and
  deploying (copy WAR to deploy) works, but results in a look thats
  clearly missing some css styling.&lt;/p&gt;
&lt;p&gt;There must be some trick I don't know of...&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</summary>
    <dc:creator>Andre Kreienbring</dc:creator>
    <dc:date>2020-11-24T16:16:32Z</dc:date>
  </entry>
  <entry>
    <title>RE: I fear I've to develop my own theme for language support and cookie war</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120468108" />
    <author>
      <name>Fredi B</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120468108</id>
    <updated>2020-11-24T09:48:15Z</updated>
    <published>2020-11-24T09:48:15Z</published>
    <summary type="html">&lt;p&gt;Regarding the Cookie Warning I would create a simple mvc portlet and
  include this in the freemarker template of your theme. &lt;/p&gt;
&lt;p&gt;If you have not created a theme so far I guess the best way to do it
  is - like you already said - to copy a liferay theme and make the
  adjustments you need. &lt;/p&gt;</summary>
    <dc:creator>Fredi B</dc:creator>
    <dc:date>2020-11-24T09:48:15Z</dc:date>
  </entry>
  <entry>
    <title>I fear I've to develop my own theme for language support and cookie warning</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120467182" />
    <author>
      <name>Andre Kreienbring</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120467182</id>
    <updated>2020-11-24T19:12:16Z</updated>
    <published>2020-11-23T17:11:55Z</published>
    <summary type="html">&lt;p&gt;I hope that someone has a better idea to achive what I need with
  version 7.3.5 GA6&lt;/p&gt;
&lt;p&gt;1.&lt;br /&gt;Language support for Guest users: I would like the Language
  Portlet to be in the main upper menu right beside the Login button.
  Currently it seems I need to include this portlet on every page...
  :-(  There's&lt;a
    href="https://soft29.ru/blog/entry/liferay-7-embed-language-portlet"&gt;
    this LR7 article&lt;/a&gt; how to achive that, but it seems outdated. The
  taglibs used there are probably not working anymore.&lt;/p&gt;
&lt;p&gt;2.&lt;br /&gt;I need the users to accept cookies to be compliant with the
  law. 'liferay.dev' itself has this in the footer. Another thing that
  goes to the theme, correct? I've seen some market place addons...&lt;/p&gt;
&lt;p&gt;And if my fear is the way to go: What's the easiest way? Copy the
  'frontend-theme' module from source and then do the necessary adjustments?&lt;/p&gt;
&lt;p&gt;Any hint is welcome...&lt;/p&gt;
&lt;p&gt;
  &lt;br /&gt; &lt;/p&gt;</summary>
    <dc:creator>Andre Kreienbring</dc:creator>
    <dc:date>2020-11-23T17:11:55Z</dc:date>
  </entry>
</feed>
