Oracle Fusion Middleware JSP Tag Java API Reference for Oracle WebLogic Portal
10g Release 3 (10.3.2)
E14256-03

Content Presenter Display Template Support Functions
Function getImageNameForNodeWithSize

String getImageNameForNodeWithSize(com.bea.content.Node node, java.lang.String sizeConstant)
Description

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.

Examples

Here is an example of the function call within a HTML img tag:

<img src='<render:resolveImagePath uri="${templates:getImageNameForNodeWithSize(node, size)}"/>'
  alt=""/>


Function Information
Function Classcom.bea.content.ui.jsp.templates.utils.TemplateSupport
Function Signature String getImageNameForNodeWithSize(com.bea.content.Node node, java.lang.String sizeConstant)
Display NameNone


Oracle Fusion Middleware JSP Tag Java API Reference for Oracle WebLogic Portal
10g Release 3 (10.3.2)
E14256-03

Copyright © 2010, Oracle. All rights reserved.