Cookbook
Topics |
Search CloudSummary: Creates a list of search terms used on a PmWiki site.
Version: 2022-12-01
Prerequisites: PHP 8.0
Status: stable
Categories: Searching
Download:
searchcloud-2022-12-01.php Māori Questions answered by this recipeHow can I see a list of the search terms used on my site? DescriptionThis script makes a tag like list of the search terms used on your site. Using the directive InstallationTo install this script, download include_once("$FarmD/cookbook/searchcloud.php");
to your Usage(:searchcloud:)
Without parameters the search cloud is displayed, increasing font size and font-weight based on the search term frequency. (:searchcloud list=name:)
Lists search terms in ascending alphabetical order, with no additional formatting (:searchcloud list=count:)
Lists search terms in ascending frequency order, with no additional formatting Config file optionsDefault values are shown. $SearchCloudFileName = '.searchcloud'; # the filename used for storage, placed in the folder set by which defaults to wiki.d
$EnableSearchCloudClean = true; # "true" removes the file used for storage, using action ?action=clearcloud
$SearchCloudMinCount = 5; # minimum percentage count displayed
$SearchCloudMaxSize = 100; # maximum count for size and font weight
$SearchCloudBaseFont = 9; # base starting font size in pixels
$SearchCloudBaseWeight = 400; # base starting font weight
NotesThe 2022 version has been largely rewritten, see the release notes. Search terms are saved after being converted to a canonical form, which amongst other things:
A number of terms are saved, but not displayed, e.g.
This recipe does not (yet) handle Unicode correctly.
Release Notes
Replace Markup_e with MarkupDirectiveFunctions, search terms case insensitive, add list parameter, add mouseover, fix initialisation bugs
CommentsWhere can I see an example? See AlsoContributorsskiwi 2022
|
tahi Page last modified on 2022 Dec 09 18:37
Edit - History - Recent Changes - WikiHelp - Search - email page as link -> mailto:?Subject="KiwiWiki: Search Cloud"&Body=