Content Presenter Display Template Support Functions
Function getImageNameForNode
String getImageNameForNode(com.bea.content.Node node)
This is a utility method that will set get the name of the image icon file that best represents the kind of binary file that belongs to the node, if any. There are icons for Word, Excel, PDF, XML, etc. The image names that are returned are just the image names WITHOUT any path information. This method returns the 16 pixel sized image icon. The images can be found in the commonui library module and are best referenced with the "resolveImagePath" tag from the "render" taglib.
Here is an example of the function call within a HTML img tag:
<img src='<render:resolveImagePath uri="${templates:getImageNameForNode(node)}"/>'
alt=""/>
Function Information |
Function Class | com.bea.content.ui.jsp.templates.utils.TemplateSupport |
Function Signature |
String getImageNameForNode(com.bea.content.Node node)
|
Display Name | None |
Output Generated by
Tag Library Documentation Generator.
Copyright © 2008, ${product.vendor} and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.