code: def folderitem(self, obj, item, index):
          
          title = obj.Title()
          url = obj.absolute_url()
  
          item["replace"]["Title"] = get_link(url, value=title)
  
          sampletype = obj.getSampleType()
          if sampletype:
              title = sampletype.Title()
              url = sampletype.absolute_url()
              item["replace"]["SampleType"] = get_link(url, value=title)
  
          return item
docs: Service triggered each time an item is iterated in folderitems.
          The use of this service prevents the extra-loops in child objects.
          :obj: the instance of the class to be foldered
          :item: dict containing the properties of the object to be used by
              the template
          :index: current index of the item