how to correctly upload a WAR file to the file system in Liferay 7.3.5 - liferay

Using Liferay 7.3.5, i am consistently running into issues regarding theme deploy.
I am trying to upload a theme to my server using the instructions given in the following guide:
https://learn.liferay.com/dxp/latest/en/system-administration/installing-and-managing-apps/installing-apps.html
When i try uploading apps via the file system and into the deploy folder, the file appears to vanish and nothing happens. I have since been uploading it directly to the WAR folder, but i am now running into some issues when a theme is deployed that way.
I expect the theme to be uploaded and working properly, the CSS to be applied to the page(s) and the liferay menu to be intact.
Uploading the theme appears to go well and the theme shows inside the list you can choose from. Inside the list however, the theme doesn’t display a thumbnail.
Problems started once i uploaded multiple themes to the same liferay server.
On the site pages, the CSS is not properly applied and looks broken as if there isn’t any theme applied. The edit page button on the top right is invisible, as are the rest of the menu items.
Publishing the site or reselecting the theme do not resolve the issues, nor did a redeploy of the theme.
Does anybody know how to correctly upload a WAR file to the file system in Liferay 7.3.5, or am i overlooking something else?
UPDATE 22/09/2022
so i have narrowed down the issue a bit. When i first upload a theme to my war folder is works fine. However when deploying a another theme, the first one breaks.
I doesn't really matter which of the theme's i use as it seems to do it for all of them, I created a github with two simple theme war files. If you want to reproduce the issue.
https://github.com/Lincolnmyth/theme
All you have to do is follow the normal steps and upload the theme. Turn the server on, and check if it works. Then turn it back off again to add another one. You'll then start seeing issues in the first theme.
Such as liferay buttons changing the same colour as the background and the css from the theme not working. So for example, the januari theme should change the navbar and add a picture about it. If you upload the other theme however this doesn't work anymore.
I hope this works as a reproducible example

Related

Liferay theme reset to default

I don't know if I'm the only one to have this problem, I'm developing a liferay theme using the plugin sdk and eclipse. I have a theme based on classic, when I turn off eclipse and turn on again I found that all changes on custom.css are gone and reset to default classic theme.
this was my fault I was making changes on docroot/custom.css directly, I should put the on _diff/.
You have to done your custom css in _diff/css/custom.css ok
when you create the theme your _diff folder is empty so you just take all css folder, template folder, js folder and images folder form classic theme and place in _diff folder then modify in _diff/css/custom.css file
Have look into following site for more info about liferay Liferay Savvy

Adding pages and templates to a portlet

I am using eclipse ide and I have created a liferay project Test-portlet. I haven't written any code for this project
When I ran this project I got the usual welcome screen and I added the Test-portlet to the page and removed other stuff from the page.
I actually want to create a website using liferay. The website already exists which should be rewritten in liferay.
So when I load the project I get this welcome screen and the Test-portlet. At the top of this page I get the the menu-Admin,Sites,.... and LIferay logo on LHS.
I wish to remove all of these and displa only the web page data of the website. I know I can use themes and layouts for such purpose.
If I should use portlet to create this website , how should I keep adding pages and designs?
Also how should I add pages,themes,templates to this portlet?
Before creating this Test-portlet project, I had created pages using control panel.
How should I create this website? Using portlet by creating project?
EDIT:
Also this Test-portlet is displayed as a small portlet on the entire page. WHen click on the gear symbol and click on maximise, it only maximises during that time and when project is run again, it comes back to its original size.
Should I create this websiste using portlets?
Data for website comes from database. Few pages have static data.
Subsequent pages may be added in future.
HOw should the pages be added if I use portlet to create the website?
Please go through liferay themes and liferay layouts

SharePoint 2007 custom theme. where did this CSS file come from?

We set up the SharePoint 12 hive folder for a custom theme with a new xml entry and folder.
Is everything required for a custom theme living in the theme folder? I'm asking because we are seeing CSS files that appear to be dynamically named rendered on SharePoint pages in the folder that are not actually in the folder.
Will we have to use SPD and custom site changes to get a custom theme to work?
I've got a designer working only in the theme folder, but he is seeing rendered css that he can't get to. He is not using SPD
That 1011-65001 squence file is found nowhere? what is that an where can I find it. Any way to have my custom theme all hard fixed name css files in that folder without using SPD?
/_themes/MYNEWFOLDER/MYNEWTHEME1011-65001.css?rev=12%2E0%2E0%2E6421
===
Update: I just realzed that css is creatd when I apply the theme and so it's in my _themes site folder. But now, when I attempt to re-apply the theme, that was working before, now i get a write error on _themes.
I can answer your first query why its dyanamic name this is because themes which you installed are ghosted version and when you apply them an unghosted version is created for the specific site where it is applied. so a dyanamic naming is required and it cannot be hard coded in MOSS even if you try using SPD you can do it but you have to remove the theming then.
the same you have also have notified in update that the css name is changed only when you apply it.
regarding your second issue of reapplying it did you try applying another them and then back to first one and is giving error then please check the 12 hive logs it will give you cause of failure and if still you are not able to figure out the same plz share the relavent log here we will try to help you

How to get to the admin page in Drupal

I've downloaded Drupal 6 and installed it on my local server, and ported a basic web site as a custom theme. I've set this as the default theme and everything works okay; the page appears nice with all the images and layout.
The problem is that now, no matter what I type as the URL I always get to my page. So how can I go to the admin page? /q=user does not work. I can change the theme from the database but that is not what I want. I just want to keep this theme and be able to access all the Drupal functionality.
For the custom page i've created the page.tpl.php and .info file. Along with the CSS file I've put them all in a new folder in the themes directory.
#abhaga's answer is spot on - you've turned the entire site's theme into a single page's HTML, so they're all going to be the same.
If you'd like to avoid glitching the admin side of things with a bad template file, you can set one of the core themes as your "administration theme" (in Site Configuration) - that way, the admin backend will always use that theme regardless of the other templates.
Ah! Basically page.tpl.php specifies the over all structure of site. Look at the original page.tpl.php file - it will be printing a variable called $content somewhere. That is the variable holding all the content of your specific page. You will need to print it at appropriate place in your pge.tpl.php
You should check out the right way of creating a theme here: http://drupal.org/theme-guide/6

Setting up a new website with Liferay Portal - basic steps?

I know this is not specifically a programming question, but programmers will often have to do this work.
How do I create a website with Liferay portal - the docs are pretty light on this fundamental issue and are all for version 4.4. I am using version 5.2 and the docs don't seem to be relevant.
Do you know what the basic steps are. So far I have logged in as the bruno user and can see the 7cogs website and edit it. But I now need to create my own website (for my company) and be able to develop portlets to add to the parts of the page.
Further I notice that the docs talk about doing work in Eclipse. If our website is all static HTML, (the reason we want liferay is mainly so that we can edit content items using its content management tools), then will there be any need for Java dev, or will it all be drag n drop and clicking to get setup. Any guidance will be much appreciated.
Liferay can be used as a simple CMS, without much Java knowledge : creating, editing and positioning of web content fragments are drag'n'drop and use of the included rich text editor.
But to start using Liferay for your company, there are two main steps : a technical configuration (database, etc.), and a look'n'feel customization.
The technical part
First of all, you should get rid of the 7cogs website : this is called a hook in the Liferay wording. To do that, if you are using Tomcat for the application server, just delete the 7cogs directory as stated here.
You can now create the configuration file for your installation : it's a simple text properties file, named portal-ext.properties and placed in the webapps/ROOT/WEB-INF/classes folder of your tomcat installation.
This file handles most of the configuration of the Liferay portal, for example :
the name of your company
if you want to display a terms of use page on first login
if you want anybody to be able to create an account on your portal
the database where the data will be stored
To do this, the properties in the portal-ext.properties override default properties found in a embedded portal.properties file located in the jar file portal-impl.jar, in the webapps/ROOT/WEB-INF/lib directory. Just unzip the jar file in a temporary folder to access the portal.properties file.
A sample portal-ext.properties file :
company.default.web.id=yourcompany.com
terms.of.use.required=false
company.security.strangers=false
jdbc.default.driverClassName=com.mysql.jdbc.Driver
jdbc.default.url=jdbc:mysql://localhost/lportal?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
jdbc.default.username=root
jdbc.default.password=root
Once done, you can startup your application server. As the default admin (named test, something you can change in the portal-ext.properties file), you can access to the centralized web "control center", located in the "dock" (the strange menu labelled "welcome Test" in the upper right part of any page once logged in).
I would advise you to read the administration guide, useful for most administrative tasks.
The "branding" part
Liferay uses "Themes" to automatically decorate the portal pages (logo, navigation, portlet borders...) using images, CSS, Javascript (JQuery) and the templating language Velocity. The themes are bundled in a .war file, like a standard web application, and deployed on the fly either via the control center or by dropping the file in the deploy directory of the server.
Liferay can use several themes at the same time, one for each community (a group of pages, users and content) for example.
Creating your own theme can be done afterwards, using the "Plugins SDK".
The Wiki, forums and blogs can be very useful.

Resources