Yeah, I had tried that but no go, at least not how I’m using it. I’m sure I’m making some basic mistake -- would you mind looking at the Ditto call below and letting me know why this wouldn’t return only results that have a keyword that matches the pagetitle of the Ditto call page? Thanks, much appreciated, as I’m at a deadend.
keywords works with &tagData=`keywords` &tagDelimiter=`,` &keywords=`1`
[!Ditto? &tpl=`SomeTemplate` &startID=`xx` &idType=`parents` &depth=`1` &summarize=`20` &paginate=`1` &keywords=`1` &tagData=`keywords` &tagDelimiter=`,` &tags=`[*pagetitle*]` &tagMode=`onlyTags` &emptyText=`SomeText.` !]
<label for="tags">Tags:<input name="tags" id="tags" type="text" size="40" value="[*categoryOptions*]" /></label><br>
//add tag data
if($tags_tvcontent){
$rs = $modx->dbQuery("SELECT id FROM ".$modx->getFullTableName('site_tmplvars')." WHERE name='".substr($tvtags, 2)."' LIMIT 1;");
if($row = $modx->fetchRow($rs, 'assoc')){
$tmplflds = array(
'tmplvarid' => $row['id'],
'contentid' => $lastInsertId,
'value' => mysql_escape_string($tags_tvcontent)
);
$modx->db->insert($tmplflds,$modx->getFullTableName('site_tmplvar_contentvalues'));
}
}
//add tag data
if($tags_tvcontent){
$rs = $modx->dbQuery("SELECT id FROM ".$modx->getFullTableName('site_tmplvars')." WHERE name='".substr($tvtags, 2)."' LIMIT 1;");
if($row = $modx->fetchRow($rs, 'assoc')){
$tmplflds = array(
'tmplvarid' => $row['id'],
'contentid' => $lastInsertId,
'value' => mysql_escape_string($modx->stripTags($_POST['tags']))
);
$modx->db->insert($tmplflds,$modx->getFullTableName('site_tmplvar_contentvalues'));
}
}
$post_category_url = $ditto->functions->buildURL("year=".$dateArray['year'],$archiveDocumentID,$id);
$post_subcategory = $dateArray['month'];
$post_subcategory_url = $ditto->functions->buildURL("month=".$dateArray['month']."&year=".$dateArray['year'],$archiveDocumentID,$id);
$post_category_url = $ditto->buildURL("year=".$dateArray['year'],$archiveDocumentID,$id);
$post_subcategory = $dateArray['month'];
$post_subcategory_url = $ditto->buildURL("month=".$dateArray['month']."&year=".$dateArray['year'],$archiveDocumentID,$id);