can I please get help in finding the following line: _______________________________________________ Users mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/users |
The best way to understand that is to break it down. 1. The following should be obvious. All I did was to take out src url. <img src='……' align="left" height="50" class='imageborder' border='0'> Here’s the src url <@ofbizContentUrl>${requestAttributes.contentPathPrefix?if_exists}${managerSpecial.smallImageUrl?default("/images/defaultImage.jpg")}</@ofbizContentUrl> 2. Src url has the following form <@ofbizContentUrl>…..</@ofbizContentUrl> This is specifying that it is a content url and the prefix is defined in a file (I don’t remember the name but you can search on this mailing list, it was stated recently). 3. The remaining part is this ${requestAttributes.contentPathPrefix?if_exists}${managerSpecial.smallImageUrl?default("/images/defaultImage.jpg")} It is made up of two freemarker expressions each enclosed in ${…} 4. ${requestAttributes.contentPathPrefix?if_exists} is evaluated to the requestAttributes.contentPathPrefix if it exists, “” String otherwise. 5. ${managerSpecial.smallImageUrl?default("/images/defaultImage.jpg")} is evaluated to managerSpecial.smallImageUrl if it exists, "/images/defaultImage.jpg" otherwise.
Vinay
-----Original Message-----
can I please get help in finding the following line: _______________________________________________ Users mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/users |
In reply to this post by puranisank
Vinay, thanks for clearing the doubt. _______________________________________________ Users mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/users |
Free forum by Nabble | Edit this page |