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-----
From:
[hidden email] [mailto:[hidden email]] On Behalf Of Purani S
Sent: Thursday, March
16, 2006 9:16 PM
To: [hidden email]
Subject: [OFBiz] Users - what does
this line say
can I please get help in finding the following line:
<img
src='<@ofbizContentUrl>${requestAttributes.contentPathPrefix?if_exists}${managerSpecial.smallImageUrl?default("/images/defaultImage.jpg")}</@ofbizContentUrl>'
align="left" height="50" class='imageborder' border='0'>
"
Purani
Free forum by Nabble | Edit this page |