![]() |
|
|
|
|
Change By:
|
Tobias Mattsson
(29/May/13 1:26 PM)
|
|
Description:
|
Should support also showing sub types. Either always or it should be configurable.
This check in HierarchicalJcrContainer needs to be changed:
{code} ArrayList<Node> nodesWithMatchingTypes = new ArrayList<Node>(); NodeIterator iterator = node.getNodes(); final List<NodeTypeDefinition> nodeTypes = getWorkbenchDefinition().getNodeTypes(); String currentNodeTypeName; while (iterator.hasNext()) { Node next = iterator.nextNode(); currentNodeTypeName = next.getPrimaryNodeType().getName(); for (NodeTypeDefinition current : nodeTypes) { if (current.getName().equals(currentNodeTypeName)) { nodesWithMatchingTypes.add(next); break; } } }
{code}
In 4.5 it was possible to set a type as strict:
{code} /** * Adds an itemType to the list of existing types and associates an icon with it. * The type can be specified as a strict, in which case only the items of given type will be displayed, but sub types will be ignored, * or non-strict in which case the items of sub types of given type will also be rendered. * @param type The item type * @param icon The icon used to display items of given type * @param strict Flag specifying whether or not to show also items of sub type of given type */ public void addItemType(String type, String icon, boolean strict) { this.itemTypes.add(type); if (icon != null) { setIcon(type, icon); } if (strict) { strictTypes.add(type); } else { strictTypes.remove(type); } } {code}
|
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
----------------------------------------------------------------
For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <
[email protected]>
----------------------------------------------------------------