2

我正在使用 Liferay 6.1.1 CE。

我正在尝试在我的页面中使用 1-2-1 布局。

但我无法将 n Drop portlet 拖放到我的页面中的 2 列。1-2-1 也无法正常工作。

是什么原因?

这是 1_2_1.column.tpl

<div class="columns-1-2-1" id="main-content" role="main">
#if ($browserSniffer.isIe($request) && $browserSniffer.getMajorVersion($request) < 8)
    <table class="portlet-layout">
    <tr>
        <td class="portlet-column portlet-column-only" id="column-1">
            $processor.processColumn("column-1", "portlet-column-content portlet-column-content-only")
        </td>
    </tr>
    </table>

    <table class="portlet-layout">
    <tr>
        <td class="aui-w50 portlet-column portlet-column-first" id="column-2">
            $processor.processColumn("column-2", "portlet-column-content portlet-column-content-first")
        </td>
        <td class="aui-w50 portlet-column portlet-column-last" id="column-3">
            $processor.processColumn("column-3", "portlet-column-content portlet-column-content-last")
        </td>
    </tr>
    </table>

    <table class="portlet-layout">
    <tr>
        <td class="portlet-column portlet-column-only" id="column-4">
            $processor.processColumn("column-4", "portlet-column-content portlet-column-content-only")
        </td>
    </tr>
    </table>
#else
    <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="aui-w50 portlet-column portlet-column-first" id="column-2">
            $processor.processColumn("column-2", "portlet-column-content portlet-column-content-first")
        </div>

        <div class="aui-w50 portlet-column portlet-column-last" id="column-3">
            $processor.processColumn("column-3", "portlet-column-content portlet-column-content-last")
        </div>
    </div>

    <div class="portlet-layout">
        <div class="portlet-column portlet-column-only" id="column-4">
            $processor.processColumn("column-4", "portlet-column-content portlet-column-content-only")
        </div>
    </div>
#end

4

1 回答 1

0

Dragging portlets to the "2" portion of the 1-2-1 template wasn't working for me either. It may be an issue with the Social Office theme. I switched the page back to the classic theme, added the portlets, and then switched back to the SO theme. I now have the 1-2-1 layout with the Social Office theme applied.

hth

于 2013-01-15T16:58:16.650 回答