Peter's Blog

Redefining the Impossible

More on awtags


More awtags notes:

  • I am getting more traffic now I have awtags installed. The tag listings get google matches, maybe because lots of related keywords are on the same pages. Ideally google would only index individual postings but I am not sure how to persuade robots.txt to do this without accidently driving all traffic away. The slow testing cycle is the problem, I may not know I've broken it all for a few weeks.
  • I thought it would be nice to have a sticky article at the top of each tags listing to give some general notes about the tag. The most descriptive article is most likely to be the last in the list as the entries are in reverse chronological order. I have created a test page, not promoted to front page, tagged it with 'awtags' and made it sticky. This posting you are reading is partly for blogging reasons and also to produce a later entry that should still appear below the sticky article. Anyway, test it out here. UPDATE: the test failed sad so I changed the sql in the function awTagsAPI_GetNodesForTag in awTags.inc to make it consider the sticky bit as follows:
      $sql = "SELECT DISTINCT n.nid, n.title, tn.tid FROM {node} n " .
          "INNER JOIN {awtags_node} tn ON n.nid = tn.nid WHERE n.status = 1 AND " .
          "tn.tid = '" .
          $tag . "' ORDER BY sticky DESC, created DESC";
    

Filed under: awtags drupal google tagging

Sorry but comments on this post are now closed.