From: Geoffrey T. D. <da...@us...> - 2003-03-07 20:52:33
|
Update of /cvsroot/phpwiki/phpwiki In directory sc8-pr-cvs1:/tmp/cvs-serv9919 Modified Files: configurator.php index.php Log Message: New feature: Automatic extraction of keywords (for the meta keywords tag) from Category* and Topic* links on each page. Index: configurator.php =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/configurator.php,v retrieving revision 1.14 retrieving revision 1.15 diff -u -2 -b -p -d -r1.14 -r1.15 --- configurator.php 7 Mar 2003 06:31:16 -0000 1.14 +++ configurator.php 7 Mar 2003 20:51:49 -0000 1.15 @@ -1014,4 +1014,16 @@ Display a warning if the internal lib/in not the public InterWikiMap page. This map is not readable from outside."); +$properties["Keyword Link Regexp"] = +new _variable('KeywordLinkRegexp', + '(?<=^Category|^Topic)[[:upper:]].*$', + " +Regexp used for automatic keyword extraction. + +Any links on a page to pages whose names match this regexp will +be used keywords in the keywords meta tag. (This is an aid to +classification by search engines.) The value of the match is +used as the keyword. + +The default behavior is to match Category* and Topic* links."); $properties["Part Six"] = Index: index.php =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/index.php,v retrieving revision 1.106 retrieving revision 1.107 diff -u -2 -b -p -d -r1.106 -r1.107 --- index.php 7 Mar 2003 02:48:23 -0000 1.106 +++ index.php 7 Mar 2003 20:51:54 -0000 1.107 @@ -616,4 +616,14 @@ define('INTERWIKI_MAP_FILE', "lib/interw //define('WARN_NONPUBLIC_INTERWIKIMAP', false); +// Regexp used for automatic keyword extraction. +// +// Any links on a page to pages whose names match this regexp will +// be used keywords in the keywords meta tag. (This is an aid to +// classification by search engines.) The value of the match is +// used as the keyword. +// +// The default behavior is to match Category* and Topic* links. +$KeywordLinkRegexp = '(?<=^Category|^Topic)[[:upper:]].*$'; + ///////////////////////////////////////////////////////////////////// // @@ -774,4 +784,8 @@ if (defined('VIRTUAL_PATH') and defined( // $Log$ +// Revision 1.107 2003/03/07 20:51:54 dairiki +// New feature: Automatic extraction of keywords (for the meta keywords tag) +// from Category* and Topic* links on each page. +// // Revision 1.106 2003/03/07 02:48:23 dairiki // Add option to prevent HTTP redirect. |