@lexor
i don't know wether this post will help you or just confuse you more. if i read your post correctly, then this should help you. what i did was just make some amendments to detail.php & detail.html. This displays description and keywords for search. As far as i recall, there were no changes to any class files. these pieces of code are just additions to the code and should be slotted in to your existing code. hope it helps.
PHP Code:
DETAIL.PHP
// get description
$query = "select description, category_id from idx_link where link_id = '$id'";
$result = $dbConn->Execute($query);
$description = $result->Fields("description");
$category_id = $result->Fields("category_id");
// get keywords
$query = "select keywords, category_id from idx_link where link_id = '$id'";
$result = $dbConn->Execute($query);
$keywords = $result->Fields("keywords");
$category_id = $result->Fields("category_id");
DisplayTemplate($theme_path . "detail.html",
"\$page_title,\$description,\$keywords,\$avg_review,\$num_review,\$avg_review_image,\$link_detail,".
"\$pagination,\$review_rows,\$ofc_review,\$link_id,".
"\$category_id,\$category_name,\$category_path,\$category_path_with_link");
}
PHP Code:
DETAIL.HTML
<%include file="header.html"
title="$page_title"
meta_keywords="$keywords"
meta_description="$description"
%>
remember to make a backup of files before making any changes. if this is not what you are looking for, please excuse me for posting. good luck.