English 中文(简体)
在生命线上设定缺省方案
原标题:Programmatically set the default layout in Liferay
  • 时间:2012-05-12 06:24:21
  •  标签:
  • liferay-6

I m 从事活线工作6.1 b ,与Tomcat 7.0。 我是用活ray的花板制造的。 它希望:

<div class="MyLayout" id="main-content" role="main">
<div class="portlet-layout">
    <div class="portlet-column portlet-column-only" id="column-1">
        $processor.processColumn("column-1", "portlet-column-content portlet-column-content-only")
    </div>
</div>
<div class="portlet-layout">
    <div class="portlet-column portlet-column-only" id="column-2">
        $processor.processColumn("column-2", "portlet-column-content portlet-column-content-only")
    </div>
</div>
<div class="portlet-layout">
    <div class="aui-w25 portlet-column portlet-column-first" id="column-3">
        $processor.processColumn("column-3", "portlet-column-content portlet-column-content-first")
    </div>
    <div class="aui-w75 portlet-column portlet-column-last" id="column-4">
        $processor.processColumn("column-4", "portlet-column-content portlet-column-content-last")
    </div>
</div>

我希望从方案上确定这一布局,作为所有页的缺省布局。 我如何能够做到这一点? 任何宝贵建议都将受到赞赏。

最佳回答

你们可以通过生活线的配置确定缺省。 在<条码>bundles上建立<条码>-ext.properties,并将这两条财产放在违约处:

layout.default.template.id = MyLayout
default.layout.template.id = MyLayout

You must set both properties, else the portal throws exception by startup.

PS: Ask 我,如果这一解决办法对你来说是没有的,你想要现实地以方案方式确定布局。

问题回答

你们可以检查七分之七的镜头,这些镜子与活线捆绑在一起。





相关问题
How to use the Liferay "comments framework"?

I m trying to use the built-in comments functionality within a JSF 2.0/ICEfaces portlet application (the application is running fine already). Unfortunately there seems to be no detailed documentation ...

log4j with liferay and tomcat

I have a Liferay setup on the Tomcat6. I used Log4j initially for portlets/webapps by adding log4j.properties file in the classes folder and log4j.jar file in the web-inf/lib. Now we have few quartz ...

add users to liferay from .net using liferay webservices

I have some users in csv files to be imported into liferay. I don t have any idea about Hypersonic sql. So thought of inserting the users from .net. I tried calling getUserById() to test. It gives me ...

communication between GWT application and LifeRay portal

I m developing a GWT application which will be linked with LifeRay portal just as a link. What I want to get from LifeRay is a user and roles management (from LifeRay) so user logged in LifeRay and ...

How do I use http-authentification with Liferay?

How do I get users to authenticate by http-auth before they can access Liferay? More specific: How do I use http-auth instead of Liferay s sign-in page or portlets. Access to Liferay should be ...

JQuery UI Autocomplete in Liferay

I have implemented Jquery UI Autocomplete functionlaity in Liferay 6 ... its running well but when I m dng this into Liferay 5.2.3 .....its having various probelms with Jquery .....Can I use js 1.4 ...

热门标签