Hi Jeff,
You should be able to do this with a simple plugin. You would need to utilize the viewer action "viewer_output_rows" seen below in the first line.
addAction('viewer_output_rows', 'pluginName_convertToSmartQuotes', null, 1);
function pluginName_convertToSmartQuotes($rows, $listDetails, $schema) {
$fieldsToConvert = array('content', 'title', 'field_1', 'field_2'); // List your fields that you want to convert in this array
//Check against $schema if the column exists
$columnsExist = function_to_check_if_keys_exist($fieldsToConvert, $schema);
if (!$columnsExist ) { return $rows; } // Just return rows if nothing exists
foreach (array_keys($rows) as $index) {
$row = &$rows[$index];
foreach ($columnsExist as $field) {
if ( isset($row[$field]) && $row[$field] != '' ) {
$row[$field] = preg_replace(array('/\b"/','/"/',"/'/"), array('”','“',"’"), $row[$field]);
}
}
unset($row);
}
return $rows;
}
I did use some pseudo code to indicate what functionality you'd be looking to create [ function_to_check_if_keys_exist() ] so you can get the idea of what would need to be done. This pseudo function would need to be written to return an empty array if no columns/keys match or the columns that match.
If you're looking for us to write a quick plugin to help you accomplish this, send us an email at support@interactivetools.com and we would be happy to help you further and it shouldn't take much time at all.
Let me know if that helps or if you have further questions!
Jenna Cooke - PHP Programmer
interactivetools.com