Liferay How-to

Asset-Tag: work in progress

Experimental How-to #

Create a Liferay portal with minimal data using Hypersonic #

When you just start to play with Liferay, likely you want minimal data at some point. Any database would do. Or you don't want to look into MySQL or any database yet.

Solution: delete lportal. under D:\projects\liferay5.0.1\tomcat\bin If you setup your extension environment already, delete the lportal.properties & lportal.script under D:\projects\liferay5.0.1\ext\sql then deploy.

Configuration How-to #

Create an admin page that guests cannot see? #

Solution:

  • Clicks on the "Welcome Test Test!" button on the upper-right portion of your screen.
  • Click on "Manage Page"
  • Select the "Admin" page you created.
  • Click on the "Page" tab (not the "Pages" tab)
  • Click on the "Permissions" button
  • Click on the "Guest" tab
  • Move the "View" permission from "Current" to "Available"
  • Click "Save"

To test it, sign out and you won't be able to see the "Admin" page as a guest.

Development How-to #

Troubleshooting #

Cannot set page names (using a locale other than en_US) #

I used en_AU only in D:\projects\liferay5.0.1\ext\ext-impl\src\portal-ext.properties, and I could not give page a name. It always showed up as blank.

Solution: Use "locales=en_US,en_AU" instead.

How to get rid off the "unable to create a new writer" error #

Delete C:\Documents and Settings\{user name}\liferay\lucene\0\write.lock

0 Anhänge
19992 Angesehen
Durchschnitt (0 Stimmen)
Die durchschnittliche Bewertung ist 0.0 von max. 5 Sternen.
Kommentare
Antworten im Thread Autor Datum
maybe next time how to... for every portlet delang j 14. November 2008 18:49
This content is deprecated for the current... Lisa Simpson 11. September 2009 08:05
I should also probably mention that unless you... Lisa Simpson 11. September 2009 08:06
Create an admin page that guests cannot see? ... Ronaldo Felipe 24. August 2010 08:28

maybe next time how to... for every portlet
Gepostet am 14.11.08 18:49.
This content is deprecated for the current version. It just starts with Hipersonic by default.
Gepostet am 11.09.09 08:05 als Antwort auf delang j.
I should also probably mention that unless you export everything to a LAR file for each community, you will loose all of your data if you change databases.
Gepostet am 11.09.09 08:06 als Antwort auf Lisa Simpson.
Create an admin page that guests cannot see?

Explain by clicking is easy, I'd like to find how to do it programmatically.
Gepostet am 24.08.10 08:28.