This shows how to output a blob. The first section under the comment "build the asset" is explained in FatWire Output Asset Attributes to Screen. The id tag contains the id of the blob to be displayed this is the first edit to the code below that is required to render the blob. This id can be located under the images tab of the advanced view in CS7.
You must ensure the type in assetset:setasset is the correct asset type for your project. In the second part of the code below the <%-- Display the image --%> JSP comment we set up our render:satelliteblob. Pass into blobwhere attribute the value of ics:listget output attribute.
We also specify two arguments for our <img> tag, these include the alt attribute and the border attribute and their resulting values. This code should be adequate for displaying an image in a FatWire JSP.
<%-- build the asset that contains the image --%> <assetset:setasset name="imageAsset" type="Image_Asset" id="some_id"/> <assetset:getattributevalues name="imageAsset" typename="Att" attribute="UploadImage" listvarname="UploadImageList"/> <ics:listget listname="UploadImageList" fieldname="value" output="UploadImageOut" /> <%-- Display the image --%> <render:satelliteblob blobtable="MungoBlobs" blobkey="id" blobcol="urldata" blobwhere="<%=ics.GetVar("UploadImageOut")%>" blobnocache="false" service="img src"> <render:argument name="alt" value="Attachment"/> <render:argument name="border" value="0"/> </render:satelliteblob>
Other possible render:argument types possible to add to render:satelliteblob include:
<render:argument name="width" value="32"/> <render:argument name="height" value="30"/>
I hope you found this useful or if you have any questions don't hesitate to leave a comment or contact support[@]tomred[.]net
This what I have spent most of my time working in over the years and these are the little bits of logic or snippets I have come across. Some of these are things I have needed to search for or I have found I needed to feedback on code reviews.
During my time working in consulting I was tasked many times with delivering FatWire sites. I took notes due to the lack of useful documentation at the time. These are the results of those notes made and shared.
I believe the majority of time on a project is spent with the UI. Web is no exception. I have compiled a set of articles covering HTML, CSS and JS with the intention of taking the sting out of this work.
A space dedicated to all those things you need to know beyond writing code. This covers Linux, Windows, Git and SVN among other hopefully useful nuggets.
I picked up some pointers over the years consulting for government and banking sectors before entering a PCI DSS development environment. This section covers aspects like coding, testing, code review and best practice.
Apps is a section which offers access to bits and pieces I have put together over the last few years. This includes Random Password Generator and Base64 Encoder.