Sometimes content.getTable() doesn't work in the post_input.asp file the reason being is that content.getTable() pulls its data from the input.asp file where as
asset.getContent() pulls data from the database. So here's the method for deleting old data that could be stuck in the database...
asset.getContent() pulls data from the database. So here's the method for deleting old data that could be stuck in the database...
set content_fields = asset.getContent(content.item("_cmsId")).getTable()
for each itm in content_fields
if itm = "somestring or you can do a Regex match here" then
asset.deleteContentField(content.item("_cmsId"), itm)
end if
next
Comments