从 Liferay 开始,对如何开始有点不知所措
你好,我想开始开发一个 lifeRay 主题,但我有点迷失了!
我是一名 Mac 用户,我已经安装了 liferay 和 Xcode,但我不清楚如何开始。
我已经下载了liferay的SDK,但我不明白如何安装它或使用它,所以问题:
Xcode是否是一个合适的开发环境,或者是其他更容易使用的环境?
Xcode 的构建方式与 ANT 的构建方式相同吗?
如何安装SDK?我是否只需将其放入 Tomcat 中然后就可以了?
是的,我对这一切都很陌生!我实际上不确定我是否问了正确的问题
Hello I would like to start developing a lifeRay theme and am a little bit lost!
I am a Mac user and i have installed liferay and also Xcode but i am not clear how to begin.
I have downloaded the SDK for liferay but i do not understand how to install it or use it for that matter, so questions:
Is Xcode an appropriate development environment to work with or is something else a little easier to get on with?
Does Xcode build in the same way ANT does?
How do i install the SDK? Do i just drop it into Tomcat and away i go?
Yes i am very new to all this!! I am not actually sure if i am asking the right questions
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
我刚刚回答了一个类似的问题(主题部分有更多细节)....基本上,您需要使用终端来使用大部分 SDK 功能。
如果您只是开发一个主题,则需要下载 sdk 和服务器包之一。将它们放在同一个文件夹中,这样您最终会得到类似的内容
然后配置 .properties 文件 .... 在插件文件夹中创建一个文件并将其命名为
build.[YOURNAME].properties ....
在终端窗口中运行它...注意后缀不是 pos。
编辑文件并添加以下行...
app.server.dir=${project.dir}/../tomcat
auto.deploy.dir=${project.dir}/../deploy
然后在 tomcat 文件夹中编辑
并编辑/添加以下行
....启动服务器更改到主文件夹并输入
您可以观看服务器的通过输入
检查我的其他帖子以获取所有CSS和主题内容....
需要更改 Liferay 中的模板样式
I just responded to a similar question (more detail on the theme part) .... basically, you need to use the terminal to use most of the SDK functionality.
if you're just developing a theme, you'll need to have the sdk and one of the server bundles downloaded. put them in the same folder so you end up with something like
then configure the .properties file .... create a file in the plugins folder and name it
build.[YOURNAME].properties ....
run this in the terminal window ... note the backtics aren't apos.
edit the file and add these lines ...
app.server.dir=${project.dir}/../tomcat
auto.deploy.dir=${project.dir}/../deploy
then in the tomcat folder edit
and edit / add the following line
.... to start the server change to the main folder and enter
you can watch the server's log by typing
Check my other post for all the CSS and THEME stuff ....
Need to change template styles in Liferay
直到两分钟前,我还从未听说过这个软件。但是从 Liferay 开始似乎很愚蠢快速入门指南?
Until two minutes ago, I had never heard of this software. But does it seem silly to start with the Liferay Quick Start Guide?
您是否阅读过有关创建主题的 Liferay 文档,例如 http://content.liferay.com /document/Liferay%20Themes.pdf
您有在 XCode 中使用 Java Web 应用程序的经验吗?如果没有,我会尝试一些使用更广泛的东西,比如 Eclipse 或 Netbeans。
Have you read the Liferay documentation on creating themes such as http://content.liferay.com/document/Liferay%20Themes.pdf
Do you have experience working with Java web apps in XCode? If not I'd try something like Eclipse or Netbeans that is more widely used.
我知道这是一个老问题(从 2009 年开始),但我想补充一下,以防有人在 Liferay 6 中遇到同样的问题。
实际上,您只需进入部署目录就可以非常轻松地开发主题:
/deploy/
进入其中后,查找默认的
seven-cogs-theme.war
文件夹。我最初所做的是复制和复制将该文件夹粘贴到我的桌面(或任何开发位置)进行编辑。我使用 Notepad++ 修改了 XML 文件以反映我的主题名称(以及重命名目录)。然后,您可以将主题修改为您认为合适的方式(速度模板/CSS/图像/JavaScript 包含/等)。
您可以在 Liferay 6 上开发主题 LIVE(F5 刷新并查看更改),您必须设置门户以启用开发人员模式(禁用 js 最小化器/CSS 缓存/最小化器/图像缓存/等)。
您可以通过搜索找到其中的每一个部分(门户的开发人员模式等;)。
总的来说,您可以使用 Liferay 来根据自己的喜好进行修改。
我目前正在使用 Liferay 和 Coldfusion 9 进行 portlet 开发。希望对某人有帮助。
I know this is an old question (from 2009) but I wanted to add in case someone is struggling with the same thing in Liferay 6.
You can actually develop a theme very easily by just going into the deploy directory:
/deploy/
Once in there, look for the default
seven-cogs-theme.war
folder. What I did was initially copy & paste that folder to my desktop (or any dev location) to edit. I modified the XML files using Notepad++ to reflect my theme name (as well as renaming the directory).You can then modify the theme to how you see fit (velocity templates / css / images / javascript includes / etc).
You can develop the theme LIVE on Liferay 6 (F5 to refresh and view changes), you would have to setup your portal to enable developer mode (disables js minimizer / css caching / minizers / image caching / etc).
Each of those pieces you can find by doing a search (developer mode for portal etc;).
Overall you can work with Liferay to modify things to your liking.
I am currently using Liferay with Coldfusion 9 for portlet development. Hope that helps someone.
对于您的 IDE,请查看 Liferay IDE。
Liferay IDE 是一组 Eclipse 插件,可以更轻松地创建、构建和部署 Liferay 插件,例如 portlet 和主题。
该软件有两个版本:Liferay IDE 和 Liferay Developer Studio。前者是免费的并且由社区支持,而后者是闭源的并且仅提供给 Liferay EE 客户。
For your IDE, take a look at Liferay IDE.
Liferay IDE is a set of Eclipse plugins that make it much easier to create, build and deploy Liferay plugins such as portlets and themes.
There are two versions of this software: Liferay IDE and Liferay Developer Studio. The former is free and community-supported, while the latter is closed-source and only provided to Liferay EE customers.
查看此参考:
http://www.liferay.com/web/satyaranjan/blog/-/blogs/portal-pack-:-write-database-portlet-using-service-builder-plug-in
" Liferay 中的服务构建器框架代表数据库层,所有与数据库的交互都是通过服务构建器基础设施完成的,因此在本博客中,我将解释如何使用 NetBeans 6.5 和 Portal Pack 3.0 在自定义 portlet 中使用服务构建器框架。要使用服务构建器框架,您首先需要创建一个服务 xml,然后生成所需的代码,此处的 Portal Pack 为 service.xml 文件提供了一个很好的 GUI 编辑器,您可以在其中定义实体或数据库结构。您可以使用相同的 GUI 生成可在您的 portlet 中使用的服务代码。”
Check out this reference:
http://www.liferay.com/web/satyaranjan/blog/-/blogs/portal-pack-:-write-database-portlet-using-service-builder-plug-in
"The service builder framework in Liferay represents the database layer and all the interactions with database are done through service builder infrastructure. So in this blog, I will explain how you can use service builder framework inside your custom portlet using NetBeans 6.5 & Portal Pack 3.0. To use service builder framework, you first need to create a service xml and then generate the required code. The Portal Pack here helps you by providing a nice GUI editor for service.xml file where you can define the entities or database structures and from the same GUI you can generate the services code which can be used inside your portlet."