【问题标题】:how to list the children of selected node in oracle webcenter portal如何在 oracle webcenter 门户中列出选定节点的子节点
【发布时间】:2025-12-08 12:30:02
【问题描述】:

我需要为我的 oracle webcenter 门户项目添加额外的导航。此附加导航应在导航栏中显示所选节点的子节点。此外,这个额外的导航应该在左侧边栏中。我该怎么做?

【问题讨论】:

    标签: oracle uinavigationcontroller navigation webcenter webcenter-sites


    【解决方案1】:
         <af:panelGroupLayout layout="vertical">
    
     <c:forEach var="node" varStatus="vs" items="#{navigationContext.currentModel.listModel['startNode=/, includeStartNode=false']}">
            <c:if test="${node.selected}">
                <c:set value="${node.children}" var="childNodes" scope="session"/>
            </c:if>               
    </c:forEach>
    
    <c:if test="${childNodes ne null}">
        <c:set var="childNodes" value="${navigationContext.currentModel.currentSelection.parent.children}"/>
    </c:if>
    <c:forEach items="#{childNodes}" var="node2">
                    <af:commandImageLink id="cil3" text="#{node2.title}"
                                         actionListener="#{navigationContext.processAction}"
                                         action="pprnav"
                                         icon="#{node2.attributes[pageFlowScope.tnBean.iconKey]}"
                                         disabled="#{not node2.navigable}"
                                         inlineStyle="#{node2.onSelectedPath ? 'font-weight:bold;' : ''}">
                      <f:attribute name="node" value="#{node2}"/>
                    </af:commandImageLink>
    </c:forEach>
    
    </af:panelGroupLayout>
    

    【讨论】: