View Single Post
  #1 (permalink)  
Old 05-15-2007, 08:38 PM
code0 code0 is offline
Active Member
 
Posts: 29
Default src.objectContent not populating

Can't quite figure this one out... Any idea why {$src.objectContent} populates under the tooltip correctly, but passes a literal "{$src.objectContent}" on the context menu items?

Code:
<zimlet name="com_zimbra_mcis_property" version="1.8" description="MCIS Property Card">
  <resource>mcisproperty.xsl</resource>
  <contentObject>
    <matchOn>
      <regex attrs="igm">(?:\d{2}-\d{2}-\d{3}-\d{3})</regex>
    </matchOn>
    <toolTip>
      <actionUrl target="http://server/zimlets/pin2xml.php" xslt="mcisproperty.xsl">
        <param name="pin">${src.objectContent}</param>
      </actionUrl>
    </toolTip>
    <contextMenu>
      <menuItem id="MCIS.PROPERTY.PROPCARD" label="View Property Card">
        <canvas type="window" width="800" height="600"/>
          <actionUrl target="http://server/cgi/card.cgi">
            <param name="FindParcel">1</param>
            <param name="parcel">${src.objectContent}</param>
          </actionUrl>
      </menuItem>
      <menuItem id="MCIS.PROPERTY.MAP" label="GIS Maps">
        <canvas type="window" width="800" height="600"/>
        <actionUrl target="http://maps/viewer.htm">
          <param name="ActiveLayer">0</param>
          <param name="QueryZoom">Yes</param>
          <param name="hostname">ntims</param>
          <param name="Query">PIN%20LIKE%20%27${src.objectContent}%27</param>
        </actionUrl>
      </menuItem>
    </contextMenu>
  </contentObject>
</zimlet>
Reply With Quote