TomRed.net

  • Increase font size
  • Default font size
  • Decrease font size
Subscribe Bookmark and Share
Home Tutorials FatWire CMS FatWire Assign Asset Attribute to a Variable and Output to Screen

FatWire Assign Asset Attribute to a Variable and Output to Screen

User Rating: / 0
PoorBest 

The first part of this is the same as FatWire Output Asset Attributes to Screen, the difference begins at the end of the ics:listget tag. I have added output="" and added a name. This is the variable to which the attribute will be assigned. This can them be referenced and printed to the screen using the ics:getvar tag and placing the name you used earlier in the name field.

<assetset:setasset name="objAddress" type="Address_Asset" id='<%=ics.GetVar("cid") %>' />
<assetset:getattributevalues name="objAddress" 
 attribute="AddressLine1" 
 listvarname="AddressLine1list" 
 typename="My_Asset" />

<ics:listget listname="AddressLine1list" fieldname="value" output="AddressLine1" />
<ics:getvar name="AddressLine1" />