« Volver a PHP Portlets

Creating a Simple PHP Portlet

Alternative Languages: 日本語

Overview #

Instructions for creating a simple php portlet in Liferay 4.4+

Create Files #

Index.php #

Create an "index.php" file with notepad.

Edit index.php.

Zip Files #

Zip the files that will be in your php portlet. Be sure to not have any folders or subfolders in the .zip file.

Install Portlet #

Deploy the .zip file either through the Hot Deploy folder or the Plugin Installer.

Hot Deploy #

Throw the .zip file into the Hot Deploy folder.

Plugin Installer #

In the "Plugin Installer" portlet navigate to "Upload File" tab and browse for your .zip file. After clicking the Install button there will be text to confirm that the installation was complete.

Add Application #

By default the portlet will appear in Undefined.

Add the portlet to your page and you're finished.

Edit Portlet #

You can edit the portlet by either repeating the steps above or directly editing it inside the tomcat folder.

 \tomcat-5.5.25\webapps\mysnowboard-portlet\index.php

Just remember to save your work by zipping the files and saving them to another folder.

Subpáginas

0 archivos adjuntos
76702 Accesos
Promedio (1 Votar)
La valoración media es de 4.0 estrellas de 5.
Comentarios
Respuestas anidadas Autor Fecha
It seems this only works in tomcat. Arcko Duan 6 de agosto de 2008 0:41
For installation in Liferay 5 and WebSphere... Marcel Friedmann 16 de octubre de 2008 1:46
it does not work for me. I am getting this... domingo l hilario 27 de abril de 2009 9:44
Domingo, Sounds like... Amos Fong 8 de junio de 2009 19:08
I'm getting "An unexpected error occurred while... Igor Kanshyn 4 de abril de 2012 8:24
One major problem that you can't POST UTF-8... Dimitris Papadopoulos 14 de agosto de 2012 0:20

It seems this only works in tomcat.
Publicado el día 6/08/08 0:41.
Publicado el día 16/10/08 1:46.
it does not work for me. I am getting this message "Portlet is temporarily unavailable. " . I need some help
Publicado el día 27/04/09 9:44 en respuesta a Marcel Friedmann.
Domingo,

Sounds like http://issues.liferay.com/browse/LPS-47
Publicado el día 8/06/09 19:08 en respuesta a domingo l hilario.
I'm getting "An unexpected error occurred while uploading your file."

Do I need to have any PHP engine or something?
Publicado el día 4/04/12 8:24.
One major problem that you can't POST UTF-8 text to your forms! They work only for English text!

Have anyone the same problem?
Publicado el día 14/08/12 0:20.