Tag-me Plugin<-- Contributions to this plugin are appreciated. Please update the plugin page at http://twiki.org/cgi-bin/view/Plugins/TagMePlugin IntroductionThe larger a TWiki installation gets, the harder it becomes to find content. Even in a single web, if it has many topics, it may be difficult to keep the webcontent well organized and easy to navigate. Meanwhile, intranet search does not work well due to inadequate ranking of search engines on intranets. This is because there are typically not many cross-links between pages. Given the challenge, this plugin provides a tagging capability to TWiki. There are clear benefits in tagging content in a large TWiki (10K or more topics):
Single v.s. multiple tag namespacesBy default, there is only one tag namespace - all webs share a single tag set. If$TWiki::cfg{TagMePlugin}{SplitSpace} is set to 1, each top level web has its own tag namespace, which is shared by its subwebs.
This is not the case on this TWiki installation.
Switching between single tag namespace and multiple namespaces takes some effort, you should understand the consequences and set the appropriate value for your installation.
If UserSubwebs are in effect (this is not the case on this installation), each user subweb has its own tag name space, which is shared by its subwebs, provided that multiple tag namespaces are in effect.
User conscious v.s. user agnostic taggingThere are two modes of tagging - user conscious tagging and user agnostic tagging. Under user conscious tagging:
$TWiki::cfg{TagMePlugin}{UserAgnostic} 1, user agnostic tagging is used.
If there is only one tag namespace (the default setting), user conscious or user agnostic is a global setting. You cannot set one web user conscious tagging while another web user agnostic.
This is because under single tag namespace, tag search is global - all webs are subject to tag search.
User conscious tagging and user agnostic tagging are semantically different.
Different things should not be mixed together.
If multiple tag namespaces are there, each top level web can choose user conscious or user agnostic tagging by setting TAGMEPLUGIN_USER_AGNOSTIC_TAGGING preferences variable on or off on the WebPreferences topic.
The default tagging mode is specified by $TWiki::cfg{TagMePlugin}{UserAgnostic} .
Please note that setting TAGMEPLUGIN_USER_AGNOSTIC_TAGGING on the TWikiPreferences topic doesn't have the effect.
PermissionWho can add/delete/rename tags in the tag setThe plug-in maintains a set of tags. Only tags in the tag set can be added to a topic. By default, any authenticated user can add/delete/rename tags in the tag set. But you may want to restrict who can modify the tag set.DENY_TAG_CHANGE and ALLOW_TAG_CHANGE , which are supposed to be set and finalized in TWikiPreferences, restrict users who can modify the tag set.
The way they work is similar to other access control variables DENY* and ALLOW*. You can find out the details of TWiki's access control at TWiki.TWikiAccessControl.
Under multiple tag namespaces, DENY_TAG_CHANGE and ALLOW_TAG_CHANGE need to be set at the web level. Those variables set at the TWiki installation level don't take effect.
Just like TWikiAdminGroup members can view/update/delete any topic regardless of access restriction, they can add/delete/rename tags regardless of DENY_TAG_CHANGE and ALLOW_TAG_CHANGE .
Who can tagYou may want to restrict who can put/remove tags to/from topics. Please note that whether you can add/delete/rename tags in the tag set (tag change permission) and whether you can put/remove tags to/from a topic (tagging permmision) are two different things. Tagging permission is set by the following preference variables.
Behavior on a read-only webIf ReadOnlyAndMirrorWebs is in use, some webs are read-only. This plug-in supports read-only webs. On a read-only web, tags are displayed but cannot be manipulated.User InterfaceTag list on topicEvery topic has a list showing all tags associated with the topic. Additional tags can be added to the topic, and new tags can be created.Default "twiki" styleScreenshot of tags shown on a topic:![]()
"blog" styleBut the same control can have a different look and feel if we specifystyle="blog" . In view mode it has a terse apperance:
![]() ![]()
TAGMEPLUGIN_BUNDLES is a preferences variable and you can set its value at the installation level, the web level, or the topic level.
Create, rename, delete, list, search tagsThere are topics for various tag operations as shown below. Links to those topics are provided from various places off the shelf. Things are supposed to just work without doing anything special. So this part of this topic is to inform you what topics are there for tag manipulation rather than how to set things up.
_default template web has all of those topics now, but not in the past.
Lack of those topics in each web is not an issue under single tag namespace since only those topics in the TWiki web are referred to.
All tag operations are done on those topics in the TWiki web.
If you employ multiple tag namespaces, each top level web needs those topics to manipulate tags in the web, hence you may need to copy those topics from the _default web.
Create, rename, delete tags programmaticallyYou may want to do tag creation, rename, deletion programatically. Maybe needless to say, you can do that by mimicking form submission from those pages.
List tagsTagMeViewAllTags shows all tags either in the TWiki installation (if there is only one tag namespace) or in the current top level web (if each top level web has its tag namespace). The font size indicates the overall tag count of a tag. Screenshot of tag cloud in the list all tags view:![]() ![]() <div class="tagmeTagCloud" style="line-height:2em;"> %TAGME{ tpaction="showalltags" format="<a href=\"%SCRIPTURL{view}%/%SYSTEMWEB%/TagMeSearch?tag=$tag\" style=\"font-size:$size%\">$tag</a>" separator=" " minsize="94" maxsize="220"}% </div>If user conscious tagging is in effect, TagMeViewMyTags shows all tags used by the logged-in user. The font size indicates the overall tag count of a tag. Under user agnostic tagging, TagMeViewMyTags shows the same result as TagMeViewAllTags. Tag searchTagMeSearch shows a list of topics that are tagged with all of the selected tags, sorted by relevance. Topics with a high tag count are shown first.Plugin variablesTAGMEVarious tag operations are provided through the%TAGME{}% variable. The tpaction="" parameter is required.
TAGMEPLUGIN_USER_AGNOSTIC%TAGMEPLUGIN_USER_AGNOSTIC% (without _TAGGING )is expanded to off if the current web employs user conscious tagging. It's expanded to on if the current web employs user agnostic tagging.
This variable is for reading, not for setting whereas TAGMEPLUGIN_USER_AGNOSTIC_TAGGING (with _TAGGING ) is for setting.
TAGMEPLUGIN_USER_AGNOSTIC_TAGGING%TAGMEPLUGIN_USER_AGNOSTIC_TAGGING% is referred to by the plugin code only if multiple tag namespaces are there.
This is to override the installation-wide default of user conscious tagging or user agnostic tagging.
The installation-wide default is specified by $TWiki::cfg{TagMePlugin}{UserAgnostic} .
How to put tags on every pageTo show the tag interface at the top of the page directly below the breadcrumb (like on twiki.org), use the default templateview.tagme.tmpl in the templates directory.
This template is in fact a 'skin' template. To enable it, write in Main.TWikiPreferences:
* Set SKIN = tagme,patternThe list of skins can be appended, for instance: tagme,corporate,pattern .
For the "blog" style, use for a simple "Tags: list-of-tags (edit)" at the top
of the page:
* Set SKIN = tagme_styleblog,patternAnd for an alternate style, with no tags line shown if no tags exists, and the button to open the tag edit frame placed at the right of the Edit and Attach ones, in the same style, on the upper right: * Set SKIN = tagme_styleblogbutton,pattern
For TWiki 4.1, use:
* Set SKIN = tagme04x01,pattern Customizing the appearanceIf you customize your site you probably want to change overall appearance. You can find instructions how to do that - at least for default pattern skin - in TWiki.PatternSkinCssCookbook.The short summary is:
Other places for the tag interfaceTo show the tags in the top bar, edit TWiki.WebTopBar and copy:<div class="tagmetags"> Tags: %TAGME{ tpaction="%URLPARAM{tpaction}%" web="%WEB%" tag="%URLPARAM{tag}%" }%, [[%SYSTEMWEB%.TagMeViewAllTags][view all tags]] </div>To show the tags at the bottom of every page, write in Main.TWikiPreferences assuming the skin's view template has %WEBCOPYRIGHT% at the bottom:
* Set WEBCOPYRIGHT = Tags: %TAGME{ tpaction="%URLPARAM{tpaction}%" web="%WEB%" tag="%URLPARAM{tag}%" }%, [[%SYSTEMWEB%.TagMeViewAllTags][view all tags]] %BR% Copyright © 1999-%GMTIME{"$year"}% by... etc Show tags without vote buttonsTo just show the tags for a topic, without buttons or "Create new tag" link, use ashowalltags search:
Tags: %TAGME{ tpaction="showalltags" web="%WEB%" topic="%TOPIC%" format="<a href=\"%SCRIPTURL{view}%/%SYSTEMWEB%/TagMeSearch?tag=$tag\">$tag</a> " }% Tag stylesCSS StylesTagMePlugin writes the following CSS styles:
Search results CSS Styles
Preventing link wrapIf users are allowed to use spaces in their tag names (when{TagMePlugin}{NormalizeTagInput} is set to 0), tag links may break halfway to the next line. To prevent wrapping, add a wrapper div around the tags:
<div class="tagmeTagCloud"> %TAGME{ ... }% </div>This CSS style is included in tagme.css :
.tagmeTagCloud a { white-space:nowrap; } Example styles used on twiki.orgTo show the 'tags shown on a topic':<div class="tagmetags"> Tags: %TAGME{ tpaction="%URLPARAM{tpaction}%" web="%WEB%" tag="%URLPARAM{tag}%" }%, [[%SYSTEMWEB%.TagMeViewAllTags][view all tags]] </div>CSS styles: .tagmetags select { font-size:.8em; margin:0 .25em; } .tagmetags a { text-decoration:none; white-space:nowrap; } .tagmetags a:link, .tagmetags a:visited { color:#8E9195; /* all links are gray; for blue links use: #06c */ text-decoration:none; } .tagmetags a:hover { color:#FBF7E8; } .tagMeControl { color:#8E9195; /* gray for non-links */ } Plugin Settings<--/twistyPlugin twikiMakeVisibleInline--> <-- provided for compatibility only
Configuration parametersThe TagMePlugin has the following settings inLocalSite.cfg .
Switching SplitNamespace and/or UserAgnosticYou may change{TagMePlugin}{SplitSpace} or {TagMePlugin}{UserAgnostic} after using TagMePlugin for a while.
This is not recommended, but you may need to do that.
So here's how you can deal with it.
Switching SplitNamespaceIf{TagMePlugin}{SplitSpace} is 0, all tag data, namely the tag set and which topic has which tags put by whom, is stored in the following directory:$TWiki::cfg{WorkingDir}/work_areas/TagMePlugin
If the directory there are two kinds of files:
{TagMePlugin}{SplitSpace} is 1, tag data is stored in the pub directories of top level webs under the .tags subdirectory. For example, WebA's tag data is stored in pub/WebA/.tags , WebB's tag data is stored in pub/WebB/.tags , etc. Tag data file names and content are the same as they are under single tag namespace configuration.
As you see, under the multiple tag namespace configuration, tag data is not stored under $TWiki::cfg{WorkingDir} . Instead, it's stored under pub/WEB_NAME . This is to mirror a web simply by mirroring data/WEB_NAME and pub/WEB_NAME .
If you change {TagMePlugin}{SplitSpace} from 0 to 1, all webs become unable to see existing tag data since they refer to their own tag data, which is empty immediately after the switch.
There is no ready-made tool, but it's easy to move/copy tag data files from $TWiki::cfg{WorkingDir}/work_areas/TagMePlugin to pub/WEB_NAME/.tags .
The amount of information-wise, single tag namespace and mutliple tag namespaces are not different.
Though cumbersome, you can go back and force without losing information.
Switching UserAgnosticIf{TagMePlugin}{UserAgnostic} is 0, tagging data in _tags_WEB.TOPIC.txt consists of lines for tags put to the topic. For example, if the user john (login name) put the tag foo , the file gets the following line.
001, foo, johnThen if the user jane put the tag foo , the line becomes as follows.
002, foo, john, janeEven if {TagMePlugin}{UserAgnostic} is 1, the tagging data file format remains the same.
The difference is, when the tagging data file is read, each line is recognized as:
001, TAG, YOUR_LOGIN_IDThis means, if you switch {TagMePlugin}{UserAgnostic} from 0 to 1, all tags put by anybody are recognized as yours. Due to the way showing tags in user agnostic tagging, those tags are displayed as expected.
A tagging data file remains as it is unless a tag is added or removed. Then, the file is filled with lines of the following format.
001, TAG, YOUR_LOGIN_IDAnd the information of who put which tag is lost. Obviously, user conscious tagging houses more information than user agnostic tagging. So switching from user conscious to user agnostic has no problem. But the other way around causes a weird situation - all tags put to the topic A is by the user U while the topic B has tags tags put only by the user V. <--/twistyPlugin--> Plugin Installation InstructionsThis plugin is pre-installed. TWiki administrators can upgrade the plugin as needed on the TWiki server.<--/twistyPlugin twikiMakeVisibleInline-->
<--/twistyPlugin--> Limitations
Plugin Info
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
<--/twistyPlugin twikiMakeVisibleInline--> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Added: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
<--/twistyPlugin-->
<--
TWiki 6.0.0 has introduced
|
Tag-me Plugin<-- Contributions to this plugin are appreciated. Please update the plugin page at http://twiki.org/cgi-bin/view/Plugins/TagMePlugin | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Added: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Added: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Plugin to tag wiki content collectively or authoritatively in order to make it easier to find content and to get a meaningful page ranking.
IntroductionThe larger a TWiki installation gets, the harder it becomes to find content. Even in a single web, if it has many topics, it may be difficult to keep the webcontent well organized and easy to navigate. Meanwhile, intranet search does not work well due to inadequate ranking of search engines on intranets. This is because there are typically not many cross-links between pages. Given the challenge, this plugin provides a tagging capability to TWiki. There are clear benefits in tagging content in a large TWiki (10K or more topics):
Single v.s. multiple tag namespacesBy default, there is only one tag namespace - all webs share a single tag set. If$TWiki::cfg{TagMePlugin}{SplitSpace} is set to 1, each top level web has its own tag namespace, which is shared by its subwebs.
This is not the case on this TWiki installation.
Switching between single tag namespace and multiple namespaces takes some effort, you should understand the consequences and set the appropriate value for your installation.
If UserSubwebs are in effect (this is not the case on this installation), each user subweb has its own tag name space, which is shared by its subwebs, provided that multiple tag namespaces are in effect.
User conscious v.s. user agnostic taggingThere are two modes of tagging - user conscious tagging and user agnostic tagging. Under user conscious tagging:
$TWiki::cfg{TagMePlugin}{UserAgnostic} 1, user agnostic tagging is used.
If there is only one tag namespace (the default setting), user conscious or user agnostic is a global setting. You cannot set one web user conscious tagging while another web user agnostic.
This is because under single tag namespace, tag search is global - all webs are subject to tag search.
User conscious tagging and user agnostic tagging are semantically different.
Different things should not be mixed together.
If multiple tag namespaces are there, each top level web can choose user conscious or user agnostic tagging by setting TAGMEPLUGIN_USER_AGNOSTIC_TAGGING preferences variable on or off on the WebPreferences topic.
The default tagging mode is specified by $TWiki::cfg{TagMePlugin}{UserAgnostic} .
Please note that setting TAGMEPLUGIN_USER_AGNOSTIC_TAGGING on the TWikiPreferences topic doesn't have the effect.
PermissionWho can add/delete/rename tags in the tag setThe plug-in maintains a set of tags. Only tags in the tag set can be added to a topic. By default, any authenticated user can add/delete/rename tags in the tag set. But you may want to restrict who can modify the tag set.DENY_TAG_CHANGE and ALLOW_TAG_CHANGE , which are supposed to be set and finalized in TWikiPreferences, restrict users who can modify the tag set.
The way they work is similar to other access control variables DENY* and ALLOW*. You can find out the details of TWiki's access control at TWiki.TWikiAccessControl.
Under multiple tag namespaces, DENY_TAG_CHANGE and ALLOW_TAG_CHANGE need to be set at the web level. Those variables set at the TWiki installation level don't take effect.
Just like TWikiAdminGroup members can view/update/delete any topic regardless of access restriction, they can add/delete/rename tags regardless of DENY_TAG_CHANGE and ALLOW_TAG_CHANGE .
Who can tagYou may want to restrict who can put/remove tags to/from topics. Please note that whether you can add/delete/rename tags in the tag set (tag change permission) and whether you can put/remove tags to/from a topic (tagging permmision) are two different things. Tagging permission is set by the following preference variables.
Behavior on a read-only webIf ReadOnlyAndMirrorWebs is in use, some webs are read-only. This plug-in supports read-only webs. On a read-only web, tags are displayed but cannot be manipulated.User InterfaceTag list on topicEvery topic has a list showing all tags associated with the topic. Additional tags can be added to the topic, and new tags can be created.Default "twiki" styleScreenshot of tags shown on a topic:![]()
"blog" styleBut the same control can have a different look and feel if we specifystyle="blog" . In view mode it has a terse apperance:
![]() ![]()
TAGMEPLUGIN_BUNDLES is a preferences variable and you can set its value at the installation level, the web level, or the topic level.
Create, rename, delete, list, search tagsThere are topics for various tag operations as shown below. Links to those topics are provided from various places off the shelf. Things are supposed to just work without doing anything special. So this part of this topic is to inform you what topics are there for tag manipulation rather than how to set things up.
_default template web has all of those topics now, but not in the past.
Lack of those topics in each web is not an issue under single tag namespace since only those topics in the TWiki web are referred to.
All tag operations are done on those topics in the TWiki web.
If you employ multiple tag namespaces, each top level web needs those topics to manipulate tags in the web, hence you may need to copy those topics from the _default web.
Create, rename, delete tags programmaticallyYou may want to do tag creation, rename, deletion programatically. Maybe needless to say, you can do that by mimicking form submission from those pages.
List tagsTagMeViewAllTags shows all tags either in the TWiki installation (if there is only one tag namespace) or in the current top level web (if each top level web has its tag namespace). The font size indicates the overall tag count of a tag. Screenshot of tag cloud in the list all tags view:![]() ![]() <div class="tagmeTagCloud" style="line-height:2em;"> %TAGME{ tpaction="showalltags" format="<a href=\"%SCRIPTURL{view}%/%SYSTEMWEB%/TagMeSearch?tag=$tag\" style=\"font-size:$size%\">$tag</a>" separator=" " minsize="94" maxsize="220"}% </div>If user conscious tagging is in effect, TagMeViewMyTags shows all tags used by the logged-in user. The font size indicates the overall tag count of a tag. Under user agnostic tagging, TagMeViewMyTags shows the same result as TagMeViewAllTags. Tag searchTagMeSearch shows a list of topics that are tagged with all of the selected tags, sorted by relevance. Topics with a high tag count are shown first.Plugin variablesTAGMEVarious tag operations are provided through the%TAGME{}% variable. The tpaction="" parameter is required.
TAGMEPLUGIN_USER_AGNOSTIC%TAGMEPLUGIN_USER_AGNOSTIC% (without _TAGGING )is expanded to off if the current web employs user conscious tagging. It's expanded to on if the current web employs user agnostic tagging.
This variable is for reading, not for setting whereas TAGMEPLUGIN_USER_AGNOSTIC_TAGGING (with _TAGGING ) is for setting.
TAGMEPLUGIN_USER_AGNOSTIC_TAGGING%TAGMEPLUGIN_USER_AGNOSTIC_TAGGING% is referred to by the plugin code only if multiple tag namespaces are there.
This is to override the installation-wide default of user conscious tagging or user agnostic tagging.
The installation-wide default is specified by $TWiki::cfg{TagMePlugin}{UserAgnostic} .
How to put tags on every pageTo show the tag interface at the top of the page directly below the breadcrumb (like on twiki.org), use the default templateview.tagme.tmpl in the templates directory.
This template is in fact a 'skin' template. To enable it, write in Main.TWikiPreferences:
* Set SKIN = tagme,patternThe list of skins can be appended, for instance: tagme,corporate,pattern .
For the "blog" style, use for a simple "Tags: list-of-tags (edit)" at the top
of the page:
* Set SKIN = tagme_styleblog,patternAnd for an alternate style, with no tags line shown if no tags exists, and the button to open the tag edit frame placed at the right of the Edit and Attach ones, in the same style, on the upper right: * Set SKIN = tagme_styleblogbutton,pattern
For TWiki 4.1, use:
* Set SKIN = tagme04x01,pattern Customizing the appearanceIf you customize your site you probably want to change overall appearance. You can find instructions how to do that - at least for default pattern skin - in TWiki.PatternSkinCssCookbook.The short summary is:
Other places for the tag interfaceTo show the tags in the top bar, edit TWiki.WebTopBar and copy:<div class="tagmetags"> Tags: %TAGME{ tpaction="%URLPARAM{tpaction}%" web="%WEB%" tag="%URLPARAM{tag}%" }%, [[%SYSTEMWEB%.TagMeViewAllTags][view all tags]] </div>To show the tags at the bottom of every page, write in Main.TWikiPreferences assuming the skin's view template has %WEBCOPYRIGHT% at the bottom:
* Set WEBCOPYRIGHT = Tags: %TAGME{ tpaction="%URLPARAM{tpaction}%" web="%WEB%" tag="%URLPARAM{tag}%" }%, [[%SYSTEMWEB%.TagMeViewAllTags][view all tags]] %BR% Copyright © 1999-%GMTIME{"$year"}% by... etc Show tags without vote buttonsTo just show the tags for a topic, without buttons or "Create new tag" link, use ashowalltags search:
Tags: %TAGME{ tpaction="showalltags" web="%WEB%" topic="%TOPIC%" format="<a href=\"%SCRIPTURL{view}%/%SYSTEMWEB%/TagMeSearch?tag=$tag\">$tag</a> " }% Tag stylesCSS StylesTagMePlugin writes the following CSS styles:
Search results CSS Styles
Preventing link wrapIf users are allowed to use spaces in their tag names (when{TagMePlugin}{NormalizeTagInput} is set to 0), tag links may break halfway to the next line. To prevent wrapping, add a wrapper div around the tags:
<div class="tagmeTagCloud"> %TAGME{ ... }% </div>This CSS style is included in tagme.css :
.tagmeTagCloud a { white-space:nowrap; } Example styles used on twiki.orgTo show the 'tags shown on a topic':<div class="tagmetags"> Tags: %TAGME{ tpaction="%URLPARAM{tpaction}%" web="%WEB%" tag="%URLPARAM{tag}%" }%, [[%SYSTEMWEB%.TagMeViewAllTags][view all tags]] </div>CSS styles: .tagmetags select { font-size:.8em; margin:0 .25em; } .tagmetags a { text-decoration:none; white-space:nowrap; } .tagmetags a:link, .tagmetags a:visited { color:#8E9195; /* all links are gray; for blue links use: #06c */ text-decoration:none; } .tagmetags a:hover { color:#FBF7E8; } .tagMeControl { color:#8E9195; /* gray for non-links */ } Plugin Settings<--/twistyPlugin twikiMakeVisibleInline--> <-- provided for compatibility only
Configuration parametersThe TagMePlugin has the following settings inLocalSite.cfg .
Switching SplitNamespace and/or UserAgnosticYou may change{TagMePlugin}{SplitSpace} or {TagMePlugin}{UserAgnostic} after using TagMePlugin for a while.
This is not recommended, but you may need to do that.
So here's how you can deal with it.
Switching SplitNamespaceIf{TagMePlugin}{SplitSpace} is 0, all tag data, namely the tag set and which topic has which tags put by whom, is stored in the following directory:$TWiki::cfg{WorkingDir}/work_areas/TagMePlugin
If the directory there are two kinds of files:
{TagMePlugin}{SplitSpace} is 1, tag data is stored in the pub directories of top level webs under the .tags subdirectory. For example, WebA's tag data is stored in pub/WebA/.tags , WebB's tag data is stored in pub/WebB/.tags , etc. Tag data file names and content are the same as they are under single tag namespace configuration.
As you see, under the multiple tag namespace configuration, tag data is not stored under $TWiki::cfg{WorkingDir} . Instead, it's stored under pub/WEB_NAME . This is to mirror a web simply by mirroring data/WEB_NAME and pub/WEB_NAME .
If you change {TagMePlugin}{SplitSpace} from 0 to 1, all webs become unable to see existing tag data since they refer to their own tag data, which is empty immediately after the switch.
There is no ready-made tool, but it's easy to move/copy tag data files from $TWiki::cfg{WorkingDir}/work_areas/TagMePlugin to pub/WEB_NAME/.tags .
The amount of information-wise, single tag namespace and mutliple tag namespaces are not different.
Though cumbersome, you can go back and force without losing information.
Switching UserAgnosticIf{TagMePlugin}{UserAgnostic} is 0, tagging data in _tags_WEB.TOPIC.txt consists of lines for tags put to the topic. For example, if the user john (login name) put the tag foo , the file gets the following line.
001, foo, johnThen if the user jane put the tag foo , the line becomes as follows.
002, foo, john, janeEven if {TagMePlugin}{UserAgnostic} is 1, the tagging data file format remains the same.
The difference is, when the tagging data file is read, each line is recognized as:
001, TAG, YOUR_LOGIN_IDThis means, if you switch {TagMePlugin}{UserAgnostic} from 0 to 1, all tags put by anybody are recognized as yours. Due to the way showing tags in user agnostic tagging, those tags are displayed as expected.
A tagging data file remains as it is unless a tag is added or removed. Then, the file is filled with lines of the following format.
001, TAG, YOUR_LOGIN_IDAnd the information of who put which tag is lost. Obviously, user conscious tagging houses more information than user agnostic tagging. So switching from user conscious to user agnostic has no problem. But the other way around causes a weird situation - all tags put to the topic A is by the user U while the topic B has tags tags put only by the user V. <--/twistyPlugin--> Plugin Installation InstructionsThis plugin is pre-installed. TWiki administrators can upgrade the plugin as needed on the TWiki server.<--/twistyPlugin twikiMakeVisibleInline-->
<--/twistyPlugin--> Limitations
Plugin Info
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
<--/twistyPlugin twikiMakeVisibleInline--> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Added: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
<--/twistyPlugin-->
<--
TWiki 6.0.0 has introduced
|
Tag-me Plugin<-- Contributions to this plugin are appreciated. Please update the plugin page at http://twiki.org/cgi-bin/view/Plugins/TagMePlugin | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | Plugin to tag wiki content collectively in order to find content by tags and to get a meaningful page ranking. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | Plugin to tag wiki content collectively or authoritatively in order to make it easier to find content and to get a meaningful page ranking. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Introduction | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | Overview | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | The larger a TWiki installation gets, the harder it becomes to find content. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Added: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | Even in a single web, if it has many topics, it may be difficult to keep the webcontent well organized and easy to navigate. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | The larger a wiki gets, the harder it is to find content. This wiki tagging plugin attempts to solve the issue based on these assumptions: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | Meanwhile, intranet search does not work well due to inadequate ranking of search engines on intranets. This is because there are typically not many cross-links between pages. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | Given the challenge, this plugin provides a tagging capability to TWiki. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Deleted: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
There are clear benefits in tagging content in a large TWiki (10K or more topics):
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Deleted: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | The design goals of the TagMePlugin were as follows: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | Single v.s. multiple tag namespaces | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | By default, there is only one tag namespace - all webs share a single tag set.
If $TWiki::cfg{TagMePlugin}{SplitSpace} is set to 1, each top level web has its own tag namespace, which is shared by its subwebs.
This is not the case on this TWiki installation. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Added: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | Switching between single tag namespace and multiple namespaces takes some effort, you should understand the consequences and set the appropriate value for your installation.
If UserSubwebs are in effect (this is not the case on this installation), each user subweb has its own tag name space, which is shared by its subwebs, provided that multiple tag namespaces are in effect.
User conscious v.s. user agnostic taggingThere are two modes of tagging - user conscious tagging and user agnostic tagging. Under user conscious tagging:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | Behavior on different site mode | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | Under user agnostic tagging: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | A TWiki page can have a number of tags, but tagging only works on a master site. In another word, tagging is disabled when current site mode is readonly or salve. If you are not familiar with site modes, please refer TWiki:Codev/ReadOnlyAndMirrorWebs![]() | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Added: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | Multiple tag namespaces support | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | You may not like the "democratic" nature of user conscious tagging. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Added: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | As the owner of a web, you may want total control over what tags topics in the web have. That is achieved by user agnostic tagging if you restrict tagging. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | By default, TagMePlugin has only one tag namespace. You can set "$TWiki::cfg{TagMePlugin}{SplitSpace} = 1" to support multiple namespaces. With multiple namespaces, each top level web has its own tag namespace. Tag data files are stored at "pub/TOP_LEVEL_WEB/.tags/". When a page is copied or moved, its tag data is also copied or moved along with it. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | By default, the plugin works in the user conscious tagging mode. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Added: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | If you set $TWiki::cfg{TagMePlugin}{UserAgnostic} 1, user agnostic tagging is used. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | When multiple name spaces are enabled, if UserSubwebs is in effect, each user subweb has its own tag name space. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | If there is only one tag namespace (the default setting), user conscious or user agnostic is a global setting. You cannot set one web user conscious tagging while another web user agnostic. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Added: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | This is because under single tag namespace, tag search is global - all webs are subject to tag search. User conscious tagging and user agnostic tagging are semantically different. Different things should not be mixed together. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | Tag name space example | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | If multiple tag namespaces are there, each top level web can choose user conscious or user agnostic tagging by setting TAGMEPLUGIN_USER_AGNOSTIC_TAGGING preferences variable on or off on the WebPreferences topic. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Added: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | The default tagging mode is specified by $TWiki::cfg{TagMePlugin}{UserAgnostic} . | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | Each top level TWiki site has its own tag name space. Let's say Site1 has the | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | Please note that setting TAGMEPLUGIN_USER_AGNOSTIC_TAGGING on the TWikiPreferences topic doesn't have the effect. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Deleted: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | following tags:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | Permission for user agnostic tags | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | Permission | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | TagMePlugin makes tags user-related. User can not remove a tag when it is tagged by someone else. A TWiki site can have user agnostic tags by setting "$TWiki::cfg{TagMePlugin}{UserAgnostic} = 1". The tag T put to the page P1 by the user U1 and the tag T put to the page P2 by U2 are equally the tag T for everybody. This allows user to remove a tag added by someone else. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | Who can add/delete/rename tags in the tag set | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | Tag change permission and tagging permission | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | The plug-in maintains a set of tags. Only tags in the tag set can be added to a topic. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Added: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | By default, any authenticated user can add/delete/rename tags in the tag set. But you may want to restrict who can modify the tag set. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | There are two sorts of permissions
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | DENY_TAG_CHANGE and ALLOW_TAG_CHANGE , which are supposed to be set and finalized in TWikiPreferences, restrict users who can modify the tag set.
The way they work is similar to other access control variables DENY* and ALLOW*. You can find out the details of TWiki's access control at TWiki.TWikiAccessControl. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Deleted: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | A user having tagging permission to a page (2) but not having tag change permission (1) can add an existing tag to the page and can remove a tag. A user having tag change permission is guaranteed to have tagging permission to all the pages of the site. This may sound unnecessary. The logic behind this is as follows. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | Under multiple tag namespaces, DENY_TAG_CHANGE and ALLOW_TAG_CHANGE need to be set at the web level. Those variables set at the TWiki installation level don't take effect. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Deleted: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | Tag change permission is a site-wide permission whereas tagging permission is either site-wide or page by page. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | Just like TWikiAdminGroup members can view/update/delete any topic regardless of access restriction, they can add/delete/rename tags regardless of DENY_TAG_CHANGE and ALLOW_TAG_CHANGE . | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | How tag change permission and tagging permission are determined | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | Who can tag | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | By default, users who can edit WebPreferences has tag change permission. Also by default, users who can edit a page can add and remove tags to/from the page. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | You may want to restrict who can put/remove tags to/from topics. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Added: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | Please note that whether you can add/delete/rename tags in the tag set (tag change permission) and whether you can put/remove tags to/from a topic (tagging permmision) are two different things. Tagging permission is set by the following preference variables.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | You can explicitly specify tag change permission by setting ALLOW_TAG_CHANGE and/or DENY_TAG_CHANGE variables on WebPreferences. The way they work is similar to other access control variables ALLOW* and DENY*. You can find out the details of TWiki's access control at TWiki.TWikiAccessControl. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | Even if a user is denied tagging by the logic above, if the user has tag change permission, the user is allowed to put/remove tags to/from a topic. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Added: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | This may sound odd. The reason behind this is as follows.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | Tagging permission can be explicitly set by the DENYTOPICTAG , ALLOWTOPICTAG , DENYWEBTAG , and ALLOWWEBTAG variables. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | As you can imagine, TWikiAdminGroup members can tag any topic regardless of access restriction. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | Because of the way tag change permission and tagging permission behave, if you want to restrict who can tag pages by setting ALLOWWEBTAG , ALLOWTOPICTAG , DENYWEBTAG , and DENYTOPICTAG , while allowing people to edit pages, you need to restrict who can change tags by setting ALLOW_TAG_CHANGE and/or DENY_TAG_CHANGE . | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Added: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | Behavior on a read-only web | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | Regardless of these settings, the members of the contact mail group of a site have tag change permission. Hence they can add and remove tags on any page of the site. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | If ReadOnlyAndMirrorWebs is in use, some webs are read-only. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Added: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | This plug-in supports read-only webs. On a read-only web, tags are displayed but cannot be manipulated. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Deleted: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
User Interface | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | Tag List on Topic | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | Tag list on topic | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Every topic has a list showing all tags associated with the topic. Additional tags can be added to the topic, and new tags can be created.
Default "twiki" styleScreenshot of tags shown on a topic:![]()
"blog" styleBut the same control can have a different look and feel if we specifystyle="blog" . In view mode it has a terse apperance:
![]() ![]() | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Added: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | In this style, you can define tag bundles - bundles are groups of tags that are presented as menus for convenience.
It is a list of space-separated (or comma-separated if your tags may contain spaces) prefixed by bundle labels terminated by colon (":"). e.g:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | Create, Rename, Delete tags | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | TAGMEPLUGIN_BUNDLES is a preferences variable and you can set its value at the installation level, the web level, or the topic level. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | Create New Tags | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | Create, rename, delete, list, search tags | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | Go to TWiki.TagMeCreateNewTag to create new tags. Anyone is allowed to create new tags. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | There are topics for various tag operations as shown below. Links to those topics are provided from various places off the shelf. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Added: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | Things are supposed to just work without doing anything special. So this part of this topic is to inform you what topics are there for tag manipulation rather than how to set things up. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | For developers: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Added: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | Add Tag to Topic | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | The TWiki web has all of those topics. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Added: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | And the _default template web has all of those topics now, but not in the past.
Lack of those topics in each web is not an issue under single tag namespace since only those topics in the TWiki web are referred to.
All tag operations are done on those topics in the TWiki web. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | Once a new tag is created, it can be added in the tag list of the topic. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | If you employ multiple tag namespaces, each top level web needs those topics to manipulate tags in the web, hence you may need to copy those topics from the _default web. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | Rename Tags | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | Create, rename, delete tags programmatically | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | Go to TWiki.TagMeRenameTag to rename existing tags. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | You may want to do tag creation, rename, deletion programatically. Maybe needless to say, you can do that by mimicking form submission from those pages. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Deleted: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | Rename permissions are controlled with ALLOW_TAG_CHANGE (see Plugin Settings below). | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | For developers: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | Delete Tags | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | List tags | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | Go to TWiki.TagMeDeleteTag to delete existing tags. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | TagMeViewAllTags shows all tags either in the TWiki installation (if there is only one tag namespace) or in the current top level web (if each top level web has its tag namespace). The font size indicates the overall tag count of a tag. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Deleted: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | Delete permissions are controlled with ALLOW_TAG_CHANGE (see Plugin Settings below). | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Deleted: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | For developers: List All TagsTWiki.TagMeViewAllTags shows all tags used in the system. The font size indicates the overall tag count of a tag. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Screenshot of tag cloud in the list all tags view:
![]() ![]() <div class="tagmeTagCloud" style="line-height:2em;"> %TAGME{ tpaction="showalltags" format="<a href=\"%SCRIPTURL{view}%/%SYSTEMWEB%/TagMeSearch?tag=$tag\" style=\"font-size:$size%\">$tag</a>" separator=" " minsize="94" maxsize="220"}% </div> | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | List My Tags | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | If user conscious tagging is in effect, TagMeViewMyTags shows all tags used by the logged-in user. The font size indicates the overall tag count of a tag. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Added: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | Under user agnostic tagging, TagMeViewMyTags shows the same result as TagMeViewAllTags. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | TWiki.TagMeViewMyTags shows all tags used by logged-in user. The font size indicates the overall tag count of a tag. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | Tag search | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | Tag Search | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | TagMeSearch shows a list of topics that are tagged with all of the selected tags, sorted by relevance. Topics with a high tag count are shown first. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | TWiki.TagMeSearch shows a list of topics that are tagged with all of the selected tags, sorted by relevance. Topics with a high tag count are shown first. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | Plugin variables | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | Plugin Variable | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | TAGME | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | The Plugin handles a %TAGME{}% variable that performs different actions. The tpaction="" is a required parameter. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | Various tag operations are provided through the %TAGME{}% variable. The tpaction="" parameter is required. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Deleted: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Deleted: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Deleted: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Deleted: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Deleted: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Deleted: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Added: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | TAGMEPLUGIN_USER_AGNOSTIC%TAGMEPLUGIN_USER_AGNOSTIC% (without _TAGGING )is expanded to off if the current web employs user conscious tagging. It's expanded to on if the current web employs user agnostic tagging.
This variable is for reading, not for setting whereas TAGMEPLUGIN_USER_AGNOSTIC_TAGGING (with _TAGGING ) is for setting.
TAGMEPLUGIN_USER_AGNOSTIC_TAGGING%TAGMEPLUGIN_USER_AGNOSTIC_TAGGING% is referred to by the plugin code only if multiple tag namespaces are there.
This is to override the installation-wide default of user conscious tagging or user agnostic tagging.
The installation-wide default is specified by $TWiki::cfg{TagMePlugin}{UserAgnostic} . | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
How to put tags on every pageTo show the tag interface at the top of the page directly below the breadcrumb (like on twiki.org), use the default templateview.tagme.tmpl in the templates directory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | This template is in fact a 'skin' template. To enable it, write in Main.TWikiPreferences: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | This template is in fact a 'skin' template. To enable it, write in Main.TWikiPreferences: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
The list of skins can be appended, for instance: tagme,corporate,pattern .
For the "blog" style, use for a simple "Tags: list-of-tags (edit)" at the top
of the page:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
And for an alternate style, with no tags line shown if no tags exists, and
the button to open the tag edit frame placed at the right of the Edit and
Attach ones, in the same style, on the upper right:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
For TWiki 4.1, use:
* Set SKIN = tagme04x01,pattern Customizing the appearanceIf you customize your site you probably want to change overall appearance. You can find instructions how to do that - at least for default pattern skin - in TWiki.PatternSkinCssCookbook.The short summary is:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
* Set USERSTYLEURL = %PUBURL%/%USERSWEB%/TWikiPreferences/sitestyle.css Other places for the tag interfaceTo show the tags in the top bar, edit TWiki.WebTopBar and copy:<div class="tagmetags"> Tags: %TAGME{ tpaction="%URLPARAM{tpaction}%" web="%WEB%" tag="%URLPARAM{tag}%" }%, [[%SYSTEMWEB%.TagMeViewAllTags][view all tags]] </div> | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | To show the tags at the bottom of every page, write in Main.TWikiPreferences: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | To show the tags at the bottom of every page, write in Main.TWikiPreferences assuming the skin's view template has %WEBCOPYRIGHT% at the bottom: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
* Set WEBCOPYRIGHT = Tags: %TAGME{ tpaction="%URLPARAM{tpaction}%" web="%WEB%" tag="%URLPARAM{tag}%" }%, [[%SYSTEMWEB%.TagMeViewAllTags][view all tags]] %BR% Copyright © 1999-%GMTIME{"$year"}% by... etc Show tags without vote buttonsTo just show the tags for a topic, without buttons or "Create new tag" link, use ashowalltags search:
Tags: %TAGME{ tpaction="showalltags" web="%WEB%" topic="%TOPIC%" format="<a href=\"%SCRIPTURL{view}%/%SYSTEMWEB%/TagMeSearch?tag=$tag\">$tag</a> " }% Tag stylesCSS StylesTagMePlugin writes the following CSS styles:
Search results CSS Styles
Preventing link wrap | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | If users are allowed to use spaces in their tag names (when NORMALIZE_TAG_INPUT is set to 0), tag links may break halfway to the next line. To prevent wrapping, add a wrapper div around the tags: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | If users are allowed to use spaces in their tag names (when {TagMePlugin}{NormalizeTagInput} is set to 0), tag links may break halfway to the next line. To prevent wrapping, add a wrapper div around the tags: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
<div class="tagmeTagCloud"> %TAGME{ ... }% </div>This CSS style is included in tagme.css :
.tagmeTagCloud a { white-space:nowrap; } Example styles used on twiki.orgTo show the 'tags shown on a topic':<div class="tagmetags"> Tags: %TAGME{ tpaction="%URLPARAM{tpaction}%" web="%WEB%" tag="%URLPARAM{tag}%" }%, [[%SYSTEMWEB%.TagMeViewAllTags][view all tags]] </div>CSS styles: .tagmetags select { font-size:.8em; margin:0 .25em; } .tagmetags a { text-decoration:none; white-space:nowrap; } .tagmetags a:link, .tagmetags a:visited { color:#8E9195; /* all links are gray; for blue links use: #06c */ text-decoration:none; } .tagmetags a:hover { color:#FBF7E8; } .tagMeControl { color:#8E9195; /* gray for non-links */ } Plugin Settings<--/twistyPlugin twikiMakeVisibleInline--> | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | Plugin settings are stored as preferences variables. To reference a plugin setting write %<plugin>_<setting>% , e.g., %TAGMEPLUGIN_SHORTDESCRIPTION% . | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > |
Configuration parametersThe TagMePlugin has the following settings inLocalSite.cfg .
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | NOTE: Do not change the settings here, overload them in the Main.TWikiPreferences. Prefix a setting with TAGMEPLUGIN_ , e.g. to overload NORMALIZE_TAG_INPUT define a TAGMEPLUGIN_NORMALIZE_TAG_INPUT setting in the Main.TWikiPreferences. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | Switching SplitNamespace and/or UserAgnostic | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | You may change {TagMePlugin}{SplitSpace} or {TagMePlugin}{UserAgnostic} after using TagMePlugin for a while.
This is not recommended, but you may need to do that. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Added: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | So here's how you can deal with it. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | Switching SplitNamespace | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Deleted: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | If {TagMePlugin}{SplitSpace} is 0, all tag data, namely the tag set and which topic has which tags put by whom, is stored in the following directory:$TWiki::cfg{WorkingDir}/work_areas/TagMePlugin | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Deleted: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | Setting to 0 also sorts tags case insensitive: 'U' comes after 't'.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | If the directory there are two kinds of files:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Added: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | If {TagMePlugin}{SplitSpace} is 1, tag data is stored in the pub directories of top level webs under the .tags subdirectory. For example, WebA's tag data is stored in pub/WebA/.tags , WebB's tag data is stored in pub/WebB/.tags , etc. Tag data file names and content are the same as they are under single tag namespace configuration. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Deleted: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | Users that are not allowed to change post their change requests to TagMeChangeRequests. If not set anyone can change tags.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | As you see, under the multiple tag namespace configuration, tag data is not stored under $TWiki::cfg{WorkingDir} . Instead, it's stored under pub/WEB_NAME . This is to mirror a web simply by mirroring data/WEB_NAME and pub/WEB_NAME .
If you change {TagMePlugin}{SplitSpace} from 0 to 1, all webs become unable to see existing tag data since they refer to their own tag data, which is empty immediately after the switch.
There is no ready-made tool, but it's easy to move/copy tag data files from $TWiki::cfg{WorkingDir}/work_areas/TagMePlugin to pub/WEB_NAME/.tags .
The amount of information-wise, single tag namespace and mutliple tag namespaces are not different.
Though cumbersome, you can go back and force without losing information.
Switching UserAgnostic | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Added: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | If {TagMePlugin}{UserAgnostic} is 0, tagging data in _tags_WEB.TOPIC.txt consists of lines for tags put to the topic. For example, if the user john (login name) put the tag foo , the file gets the following line.
001, foo, johnThen if the user jane put the tag foo , the line becomes as follows.
002, foo, john, janeEven if {TagMePlugin}{UserAgnostic} is 1, the tagging data file format remains the same.
The difference is, when the tagging data file is read, each line is recognized as:
001, TAG, YOUR_LOGIN_IDThis means, if you switch {TagMePlugin}{UserAgnostic} from 0 to 1, all tags put by anybody are recognized as yours. Due to the way showing tags in user agnostic tagging, those tags are displayed as expected.
A tagging data file remains as it is unless a tag is added or removed. Then, the file is filled with lines of the following format.
001, TAG, YOUR_LOGIN_IDAnd the information of who put which tag is lost. Obviously, user conscious tagging houses more information than user agnostic tagging. So switching from user conscious to user agnostic has no problem. But the other way around causes a weird situation - all tags put to the topic A is by the user U while the topic B has tags tags put only by the user V. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
<--/twistyPlugin--> Plugin Installation InstructionsThis plugin is pre-installed. TWiki administrators can upgrade the plugin as needed on the TWiki server.<--/twistyPlugin twikiMakeVisibleInline-->
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
<--/twistyPlugin--> Limitations
Plugin Info
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
<--/twistyPlugin twikiMakeVisibleInline--> | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Added: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
<--/twistyPlugin-->
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Tag-me Plugin<-- Contributions to this plugin are appreciated. Please update the plugin page at http://twiki.org/cgi-bin/view/Plugins/TagMePlugin Introduction | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Added: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | Overview | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
The larger a wiki gets, the harder it is to find content. This wiki tagging plugin attempts to solve the issue based on these assumptions:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Added: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | Behavior on different site modeA TWiki page can have a number of tags, but tagging only works on a master site. In another word, tagging is disabled when current site mode is readonly or salve. If you are not familiar with site modes, please refer TWiki:Codev/ReadOnlyAndMirrorWebs![]() Multiple tag namespaces supportBy default, TagMePlugin has only one tag namespace. You can set "$TWiki::cfg{TagMePlugin}{SplitSpace} = 1" to support multiple namespaces. With multiple namespaces, each top level web has its own tag namespace. Tag data files are stored at "pub/TOP_LEVEL_WEB/.tags/". When a page is copied or moved, its tag data is also copied or moved along with it. When multiple name spaces are enabled, if UserSubwebs is in effect, each user subweb has its own tag name space. Tag name space example Each top level TWiki site has its own tag name space. Let's say Site1 has the following tags:
Permission for user agnostic tagsTagMePlugin makes tags user-related. User can not remove a tag when it is tagged by someone else. A TWiki site can have user agnostic tags by setting "$TWiki::cfg{TagMePlugin}{UserAgnostic} = 1". The tag T put to the page P1 by the user U1 and the tag T put to the page P2 by U2 are equally the tag T for everybody. This allows user to remove a tag added by someone else. Tag change permission and tagging permission There are two sorts of permissions
DENYTOPICTAG , ALLOWTOPICTAG , DENYWEBTAG , and ALLOWWEBTAG variables.
Because of the way tag change permission and tagging permission behave, if you want to restrict who can tag pages by setting ALLOWWEBTAG , ALLOWTOPICTAG , DENYWEBTAG , and DENYTOPICTAG , while allowing people to edit pages, you need to restrict who can change tags by setting ALLOW_TAG_CHANGE and/or DENY_TAG_CHANGE .
Regardless of these settings, the members of the contact mail group of a site have tag change permission. Hence they can add and remove tags on any page of the site. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
User InterfaceTag List on TopicEvery topic has a list showing all tags associated with the topic. Additional tags can be added to the topic, and new tags can be created.Default "twiki" styleScreenshot of tags shown on a topic:![]()
"blog" styleBut the same control can have a different look and feel if we specifystyle="blog" . In view mode it has a terse apperance:
![]() ![]() Create, Rename, Delete tagsCreate New TagsGo to TWiki.TagMeCreateNewTag to create new tags.Anyone is allowed to create new tags. For developers: Add Tag to TopicOnce a new tag is created, it can be added in the tag list of the topic.Rename TagsGo to TWiki.TagMeRenameTag to rename existing tags.Rename permissions are controlled with ALLOW_TAG_CHANGE (see Plugin Settings below).
For developers: Delete TagsGo to TWiki.TagMeDeleteTag to delete existing tags.Delete permissions are controlled with ALLOW_TAG_CHANGE (see Plugin Settings below).
For developers: List All TagsTWiki.TagMeViewAllTags shows all tags used in the system. The font size indicates the overall tag count of a tag. Screenshot of tag cloud in the list all tags view:![]() ![]() <div class="tagmeTagCloud" style="line-height:2em;"> %TAGME{ tpaction="showalltags" format="<a href=\"%SCRIPTURL{view}%/%SYSTEMWEB%/TagMeSearch?tag=$tag\" style=\"font-size:$size%\">$tag</a>" separator=" " minsize="94" maxsize="220"}% </div> List My TagsTWiki.TagMeViewMyTags shows all tags used by logged-in user. The font size indicates the overall tag count of a tag.Tag SearchTWiki.TagMeSearch shows a list of topics that are tagged with all of the selected tags, sorted by relevance. Topics with a high tag count are shown first.Plugin VariableThe Plugin handles a%TAGME{}% variable that performs different actions. The tpaction="" is a required parameter.
How to put tags on every pageTo show the tag interface at the top of the page directly below the breadcrumb (like on twiki.org), use the default templateview.tagme.tmpl in the templates directory.
This template is in fact a 'skin' template. To enable it, write in Main.TWikiPreferences:
* Set SKIN = tagme,patternThe list of skins can be appended, for instance: tagme,corporate,pattern .
For the "blog" style, use for a simple "Tags: list-of-tags (edit)" at the top
of the page:
* Set SKIN = tagme_styleblog,patternAnd for an alternate style, with no tags line shown if no tags exists, and the button to open the tag edit frame placed at the right of the Edit and Attach ones, in the same style, on the upper right: * Set SKIN = tagme_styleblogbutton,pattern
For TWiki 4.1, use:
* Set SKIN = tagme04x01,pattern Customizing the appearanceIf you customize your site you probably want to change overall appearance. You can find instructions how to do that - at least for default pattern skin - in TWiki.PatternSkinCssCookbook.The short summary is:
Other places for the tag interfaceTo show the tags in the top bar, edit TWiki.WebTopBar and copy:<div class="tagmetags"> Tags: %TAGME{ tpaction="%URLPARAM{tpaction}%" web="%WEB%" tag="%URLPARAM{tag}%" }%, [[%SYSTEMWEB%.TagMeViewAllTags][view all tags]] </div>To show the tags at the bottom of every page, write in Main.TWikiPreferences: * Set WEBCOPYRIGHT = Tags: %TAGME{ tpaction="%URLPARAM{tpaction}%" web="%WEB%" tag="%URLPARAM{tag}%" }%, [[%SYSTEMWEB%.TagMeViewAllTags][view all tags]] %BR% Copyright © 1999-%GMTIME{"$year"}% by... etc Show tags without vote buttonsTo just show the tags for a topic, without buttons or "Create new tag" link, use ashowalltags search:
Tags: %TAGME{ tpaction="showalltags" web="%WEB%" topic="%TOPIC%" format="<a href=\"%SCRIPTURL{view}%/%SYSTEMWEB%/TagMeSearch?tag=$tag\">$tag</a> " }% Tag stylesCSS StylesTagMePlugin writes the following CSS styles:
Search results CSS Styles
Preventing link wrapIf users are allowed to use spaces in their tag names (whenNORMALIZE_TAG_INPUT is set to 0), tag links may break halfway to the next line. To prevent wrapping, add a wrapper div around the tags:
<div class="tagmeTagCloud"> %TAGME{ ... }% </div>This CSS style is included in tagme.css :
.tagmeTagCloud a { white-space:nowrap; } Example styles used on twiki.orgTo show the 'tags shown on a topic':<div class="tagmetags"> Tags: %TAGME{ tpaction="%URLPARAM{tpaction}%" web="%WEB%" tag="%URLPARAM{tag}%" }%, [[%SYSTEMWEB%.TagMeViewAllTags][view all tags]] </div>CSS styles: .tagmetags select { font-size:.8em; margin:0 .25em; } .tagmetags a { text-decoration:none; white-space:nowrap; } .tagmetags a:link, .tagmetags a:visited { color:#8E9195; /* all links are gray; for blue links use: #06c */ text-decoration:none; } .tagmetags a:hover { color:#FBF7E8; } .tagMeControl { color:#8E9195; /* gray for non-links */ } Plugin Settings<--/twistyPlugin twikiMakeVisibleInline-->
Plugin settings are stored as preferences variables. To reference a plugin setting write %<plugin>_<setting>% , e.g., %TAGMEPLUGIN_SHORTDESCRIPTION% .
NOTE: Do not change the settings here, overload them in the Main.TWikiPreferences. Prefix a setting with TAGMEPLUGIN_ , e.g. to overload NORMALIZE_TAG_INPUT define a TAGMEPLUGIN_NORMALIZE_TAG_INPUT setting in the Main.TWikiPreferences.
<--/twistyPlugin--> Plugin Installation InstructionsThis plugin is pre-installed. TWiki administrators can upgrade the plugin as needed on the TWiki server.<--/twistyPlugin twikiMakeVisibleInline-->
<--/twistyPlugin--> Limitations
Plugin Info
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
<--/twistyPlugin twikiMakeVisibleInline--> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Added: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Added: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
<--/twistyPlugin-->
|
Tag-me Plugin<-- Contributions to this plugin are appreciated. Please update the plugin page at http://twiki.org/cgi-bin/view/Plugins/TagMePlugin IntroductionThe larger a wiki gets, the harder it is to find content. This wiki tagging plugin attempts to solve the issue based on these assumptions:
User InterfaceTag List on TopicEvery topic has a list showing all tags associated with the topic. Additional tags can be added to the topic, and new tags can be created.Default "twiki" styleScreenshot of tags shown on a topic:![]()
"blog" styleBut the same control can have a different look and feel if we specifystyle="blog" . In view mode it has a terse apperance:
![]() ![]() Create, Rename, Delete tagsCreate New TagsGo to TWiki.TagMeCreateNewTag to create new tags.Anyone is allowed to create new tags. For developers: Add Tag to TopicOnce a new tag is created, it can be added in the tag list of the topic.Rename TagsGo to TWiki.TagMeRenameTag to rename existing tags.Rename permissions are controlled with ALLOW_TAG_CHANGE (see Plugin Settings below).
For developers: Delete TagsGo to TWiki.TagMeDeleteTag to delete existing tags.Delete permissions are controlled with ALLOW_TAG_CHANGE (see Plugin Settings below).
For developers: List All TagsTWiki.TagMeViewAllTags shows all tags used in the system. The font size indicates the overall tag count of a tag. Screenshot of tag cloud in the list all tags view:![]() ![]() <div class="tagmeTagCloud" style="line-height:2em;"> %TAGME{ tpaction="showalltags" format="<a href=\"%SCRIPTURL{view}%/%SYSTEMWEB%/TagMeSearch?tag=$tag\" style=\"font-size:$size%\">$tag</a>" separator=" " minsize="94" maxsize="220"}% </div> List My TagsTWiki.TagMeViewMyTags shows all tags used by logged-in user. The font size indicates the overall tag count of a tag.Tag SearchTWiki.TagMeSearch shows a list of topics that are tagged with all of the selected tags, sorted by relevance. Topics with a high tag count are shown first.Plugin VariableThe Plugin handles a%TAGME{}% variable that performs different actions. The tpaction="" is a required parameter.
How to put tags on every pageTo show the tag interface at the top of the page directly below the breadcrumb (like on twiki.org), use the default templateview.tagme.tmpl in the templates directory.
This template is in fact a 'skin' template. To enable it, write in Main.TWikiPreferences:
* Set SKIN = tagme,patternThe list of skins can be appended, for instance: tagme,corporate,pattern .
For the "blog" style, use for a simple "Tags: list-of-tags (edit)" at the top
of the page:
* Set SKIN = tagme_styleblog,patternAnd for an alternate style, with no tags line shown if no tags exists, and the button to open the tag edit frame placed at the right of the Edit and Attach ones, in the same style, on the upper right: * Set SKIN = tagme_styleblogbutton,pattern
For TWiki 4.1, use:
* Set SKIN = tagme04x01,pattern Customizing the appearanceIf you customize your site you probably want to change overall appearance. You can find instructions how to do that - at least for default pattern skin - in TWiki.PatternSkinCssCookbook.The short summary is:
Other places for the tag interfaceTo show the tags in the top bar, edit TWiki.WebTopBar and copy:<div class="tagmetags"> Tags: %TAGME{ tpaction="%URLPARAM{tpaction}%" web="%WEB%" tag="%URLPARAM{tag}%" }%, [[%SYSTEMWEB%.TagMeViewAllTags][view all tags]] </div>To show the tags at the bottom of every page, write in Main.TWikiPreferences: * Set WEBCOPYRIGHT = Tags: %TAGME{ tpaction="%URLPARAM{tpaction}%" web="%WEB%" tag="%URLPARAM{tag}%" }%, [[%SYSTEMWEB%.TagMeViewAllTags][view all tags]] %BR% Copyright © 1999-%GMTIME{"$year"}% by... etc Show tags without vote buttonsTo just show the tags for a topic, without buttons or "Create new tag" link, use ashowalltags search:
Tags: %TAGME{ tpaction="showalltags" web="%WEB%" topic="%TOPIC%" format="<a href=\"%SCRIPTURL{view}%/%SYSTEMWEB%/TagMeSearch?tag=$tag\">$tag</a> " }% Tag stylesCSS StylesTagMePlugin writes the following CSS styles:
Search results CSS Styles
Preventing link wrapIf users are allowed to use spaces in their tag names (whenNORMALIZE_TAG_INPUT is set to 0), tag links may break halfway to the next line. To prevent wrapping, add a wrapper div around the tags:
<div class="tagmeTagCloud"> %TAGME{ ... }% </div>This CSS style is included in tagme.css :
.tagmeTagCloud a { white-space:nowrap; } Example styles used on twiki.orgTo show the 'tags shown on a topic':<div class="tagmetags"> Tags: %TAGME{ tpaction="%URLPARAM{tpaction}%" web="%WEB%" tag="%URLPARAM{tag}%" }%, [[%SYSTEMWEB%.TagMeViewAllTags][view all tags]] </div>CSS styles: .tagmetags select { font-size:.8em; margin:0 .25em; } .tagmetags a { text-decoration:none; white-space:nowrap; } .tagmetags a:link, .tagmetags a:visited { color:#8E9195; /* all links are gray; for blue links use: #06c */ text-decoration:none; } .tagmetags a:hover { color:#FBF7E8; } .tagMeControl { color:#8E9195; /* gray for non-links */ } Plugin Settings | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Added: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | <--/twistyPlugin twikiMakeVisibleInline--> | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Plugin settings are stored as preferences variables. To reference a plugin setting write %<plugin>_<setting>% , e.g., %TAGMEPLUGIN_SHORTDESCRIPTION% .
NOTE: Do not change the settings here, overload them in the Main.TWikiPreferences. Prefix a setting with TAGMEPLUGIN_ , e.g. to overload NORMALIZE_TAG_INPUT define a TAGMEPLUGIN_NORMALIZE_TAG_INPUT setting in the Main.TWikiPreferences.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Added: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | <--/twistyPlugin--> | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Plugin Installation Instructions | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | Note: You do not need to install anything on the browser to use this plugin. The following instructions are for the administrator who installs the plugin on the TWiki server. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | This plugin is pre-installed. TWiki administrators can upgrade the plugin as needed on the TWiki server. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Added: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | <--/twistyPlugin twikiMakeVisibleInline--> | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Added: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | <--/twistyPlugin--> | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Limitations
Plugin Info | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Added: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Added: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | mode="div"
showlink="Show Change History http://twiki.oats.inaf.it/twiki/pub/TWiki/TWikiDocGraphics/toggleopen.gif"
hidelink="Hide Change History ![]()
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Added: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | </> <--/twistyPlugin--> | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Tag-me Plugin<-- Contributions to this plugin are appreciated. Please update the plugin page at http://twiki.org/cgi-bin/view/Plugins/TagMePlugin IntroductionThe larger a wiki gets, the harder it is to find content. This wiki tagging plugin attempts to solve the issue based on these assumptions:
User InterfaceTag List on TopicEvery topic has a list showing all tags associated with the topic. Additional tags can be added to the topic, and new tags can be created.Default "twiki" styleScreenshot of tags shown on a topic:![]()
"blog" styleBut the same control can have a different look and feel if we specifystyle="blog" . In view mode it has a terse apperance:
![]() ![]() Create, Rename, Delete tagsCreate New TagsGo to TWiki.TagMeCreateNewTag to create new tags.Anyone is allowed to create new tags. For developers: Add Tag to TopicOnce a new tag is created, it can be added in the tag list of the topic.Rename TagsGo to TWiki.TagMeRenameTag to rename existing tags.Rename permissions are controlled with ALLOW_TAG_CHANGE (see Plugin Settings below).
For developers: Delete TagsGo to TWiki.TagMeDeleteTag to delete existing tags.Delete permissions are controlled with ALLOW_TAG_CHANGE (see Plugin Settings below).
For developers: List All TagsTWiki.TagMeViewAllTags shows all tags used in the system. The font size indicates the overall tag count of a tag. Screenshot of tag cloud in the list all tags view:![]() ![]() <div class="tagmeTagCloud" style="line-height:2em;"> %TAGME{ tpaction="showalltags" format="<a href=\"%SCRIPTURL{view}%/%SYSTEMWEB%/TagMeSearch?tag=$tag\" style=\"font-size:$size%\">$tag</a>" separator=" " minsize="94" maxsize="220"}% </div> List My TagsTWiki.TagMeViewMyTags shows all tags used by logged-in user. The font size indicates the overall tag count of a tag.Tag SearchTWiki.TagMeSearch shows a list of topics that are tagged with all of the selected tags, sorted by relevance. Topics with a high tag count are shown first.Plugin VariableThe Plugin handles a%TAGME{}% variable that performs different actions. The tpaction="" is a required parameter.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Deleted: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
How to put tags on every pageTo show the tag interface at the top of the page directly below the breadcrumb (like on twiki.org), use the default templateview.tagme.tmpl in the templates directory.
This template is in fact a 'skin' template. To enable it, write in Main.TWikiPreferences:
* Set SKIN = tagme,patternThe list of skins can be appended, for instance: tagme,corporate,pattern .
For the "blog" style, use for a simple "Tags: list-of-tags (edit)" at the top
of the page:
* Set SKIN = tagme_styleblog,patternAnd for an alternate style, with no tags line shown if no tags exists, and the button to open the tag edit frame placed at the right of the Edit and Attach ones, in the same style, on the upper right: * Set SKIN = tagme_styleblogbutton,pattern
For TWiki 4.1, use:
* Set SKIN = tagme04x01,pattern Customizing the appearanceIf you customize your site you probably want to change overall appearance. You can find instructions how to do that - at least for default pattern skin - in TWiki.PatternSkinCssCookbook.The short summary is:
Other places for the tag interfaceTo show the tags in the top bar, edit TWiki.WebTopBar and copy:<div class="tagmetags"> Tags: %TAGME{ tpaction="%URLPARAM{tpaction}%" web="%WEB%" tag="%URLPARAM{tag}%" }%, [[%SYSTEMWEB%.TagMeViewAllTags][view all tags]] </div>To show the tags at the bottom of every page, write in Main.TWikiPreferences: * Set WEBCOPYRIGHT = Tags: %TAGME{ tpaction="%URLPARAM{tpaction}%" web="%WEB%" tag="%URLPARAM{tag}%" }%, [[%SYSTEMWEB%.TagMeViewAllTags][view all tags]] %BR% Copyright © 1999-%GMTIME{"$year"}% by... etc Show tags without vote buttonsTo just show the tags for a topic, without buttons or "Create new tag" link, use ashowalltags search:
Tags: %TAGME{ tpaction="showalltags" web="%WEB%" topic="%TOPIC%" format="<a href=\"%SCRIPTURL{view}%/%SYSTEMWEB%/TagMeSearch?tag=$tag\">$tag</a> " }% Tag stylesCSS StylesTagMePlugin writes the following CSS styles:
Search results CSS Styles
Preventing link wrapIf users are allowed to use spaces in their tag names (whenNORMALIZE_TAG_INPUT is set to 0), tag links may break halfway to the next line. To prevent wrapping, add a wrapper div around the tags:
<div class="tagmeTagCloud"> %TAGME{ ... }% </div>This CSS style is included in tagme.css :
.tagmeTagCloud a { white-space:nowrap; } Example styles used on twiki.orgTo show the 'tags shown on a topic':<div class="tagmetags"> Tags: %TAGME{ tpaction="%URLPARAM{tpaction}%" web="%WEB%" tag="%URLPARAM{tag}%" }%, [[%SYSTEMWEB%.TagMeViewAllTags][view all tags]] </div>CSS styles: .tagmetags select { font-size:.8em; margin:0 .25em; } .tagmetags a { text-decoration:none; white-space:nowrap; } .tagmetags a:link, .tagmetags a:visited { color:#8E9195; /* all links are gray; for blue links use: #06c */ text-decoration:none; } .tagmetags a:hover { color:#FBF7E8; } .tagMeControl { color:#8E9195; /* gray for non-links */ } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Deleted: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Plugin SettingsPlugin settings are stored as preferences variables. To reference a plugin setting write%<plugin>_<setting>% , e.g., %TAGMEPLUGIN_SHORTDESCRIPTION% .
NOTE: Do not change the settings here, overload them in the Main.TWikiPreferences. Prefix a setting with TAGMEPLUGIN_ , e.g. to overload NORMALIZE_TAG_INPUT define a TAGMEPLUGIN_NORMALIZE_TAG_INPUT setting in the Main.TWikiPreferences.
Plugin Installation InstructionsNote: You do not need to install anything on the browser to use this plugin. The following instructions are for the administrator who installs the plugin on the TWiki server.
Limitations
Plugin Info
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Added: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Added: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Tag-me Plugin<-- Contributions to this plugin are appreciated. Please update the plugin page at http://twiki.org/cgi-bin/view/Plugins/TagMePlugin IntroductionThe larger a wiki gets, the harder it is to find content. This wiki tagging plugin attempts to solve the issue based on these assumptions:
User InterfaceTag List on TopicEvery topic has a list showing all tags associated with the topic. Additional tags can be added to the topic, and new tags can be created.Default "twiki" styleScreenshot of tags shown on a topic:![]()
"blog" styleBut the same control can have a different look and feel if we specifystyle="blog" . In view mode it has a terse apperance:
![]() ![]() Create, Rename, Delete tagsCreate New TagsGo to TWiki.TagMeCreateNewTag to create new tags.Anyone is allowed to create new tags. For developers: Add Tag to TopicOnce a new tag is created, it can be added in the tag list of the topic.Rename TagsGo to TWiki.TagMeRenameTag to rename existing tags.Rename permissions are controlled with ALLOW_TAG_CHANGE (see Plugin Settings below).
For developers: Delete TagsGo to TWiki.TagMeDeleteTag to delete existing tags.Delete permissions are controlled with ALLOW_TAG_CHANGE (see Plugin Settings below).
For developers: List All TagsTWiki.TagMeViewAllTags shows all tags used in the system. The font size indicates the overall tag count of a tag. Screenshot of tag cloud in the list all tags view:![]() ![]() <div class="tagmeTagCloud" style="line-height:2em;"> %TAGME{ tpaction="showalltags" format="<a href=\"%SCRIPTURL{view}%/%SYSTEMWEB%/TagMeSearch?tag=$tag\" style=\"font-size:$size%\">$tag</a>" separator=" " minsize="94" maxsize="220"}% </div> List My TagsTWiki.TagMeViewMyTags shows all tags used by logged-in user. The font size indicates the overall tag count of a tag.Tag SearchTWiki.TagMeSearch shows a list of topics that are tagged with all of the selected tags, sorted by relevance. Topics with a high tag count are shown first.Plugin VariableThe Plugin handles a%TAGME{}% variable that performs different actions. The tpaction="" is a required parameter.
How to put tags on every pageTo show the tag interface at the top of the page directly below the breadcrumb (like on twiki.org), use the default templateview.tagme.tmpl in the templates directory.
This template is in fact a 'skin' template. To enable it, write in Main.TWikiPreferences:
* Set SKIN = tagme,patternThe list of skins can be appended, for instance: tagme,corporate,pattern .
For the "blog" style, use for a simple "Tags: list-of-tags (edit)" at the top
of the page:
* Set SKIN = tagme_styleblog,patternAnd for an alternate style, with no tags line shown if no tags exists, and the button to open the tag edit frame placed at the right of the Edit and Attach ones, in the same style, on the upper right: * Set SKIN = tagme_styleblogbutton,pattern
For TWiki 4.1, use:
* Set SKIN = tagme04x01,pattern Customizing the appearanceIf you customize your site you probably want to change overall appearance. You can find instructions how to do that - at least for default pattern skin - in TWiki.PatternSkinCssCookbook.The short summary is:
Other places for the tag interfaceTo show the tags in the top bar, edit TWiki.WebTopBar and copy:<div class="tagmetags"> Tags: %TAGME{ tpaction="%URLPARAM{tpaction}%" web="%WEB%" tag="%URLPARAM{tag}%" }%, [[%SYSTEMWEB%.TagMeViewAllTags][view all tags]] </div>To show the tags at the bottom of every page, write in Main.TWikiPreferences: * Set WEBCOPYRIGHT = Tags: %TAGME{ tpaction="%URLPARAM{tpaction}%" web="%WEB%" tag="%URLPARAM{tag}%" }%, [[%SYSTEMWEB%.TagMeViewAllTags][view all tags]] %BR% Copyright © 1999-%GMTIME{"$year"}% by... etc Show tags without vote buttonsTo just show the tags for a topic, without buttons or "Create new tag" link, use ashowalltags search:
Tags: %TAGME{ tpaction="showalltags" web="%WEB%" topic="%TOPIC%" format="<a href=\"%SCRIPTURL{view}%/%SYSTEMWEB%/TagMeSearch?tag=$tag\">$tag</a> " }% Tag stylesCSS StylesTagMePlugin writes the following CSS styles:
Search results CSS Styles
Preventing link wrapIf users are allowed to use spaces in their tag names (whenNORMALIZE_TAG_INPUT is set to 0), tag links may break halfway to the next line. To prevent wrapping, add a wrapper div around the tags:
<div class="tagmeTagCloud"> %TAGME{ ... }% </div>This CSS style is included in tagme.css :
.tagmeTagCloud a { white-space:nowrap; } Example styles used on twiki.orgTo show the 'tags shown on a topic':<div class="tagmetags"> Tags: %TAGME{ tpaction="%URLPARAM{tpaction}%" web="%WEB%" tag="%URLPARAM{tag}%" }%, [[%SYSTEMWEB%.TagMeViewAllTags][view all tags]] </div>CSS styles: .tagmetags select { font-size:.8em; margin:0 .25em; } .tagmetags a { text-decoration:none; white-space:nowrap; } .tagmetags a:link, .tagmetags a:visited { color:#8E9195; /* all links are gray; for blue links use: #06c */ text-decoration:none; } .tagmetags a:hover { color:#FBF7E8; } .tagMeControl { color:#8E9195; /* gray for non-links */ } Plugin SettingsPlugin settings are stored as preferences variables. To reference a plugin setting write%<plugin>_<setting>% , e.g., %TAGMEPLUGIN_SHORTDESCRIPTION% .
NOTE: Do not change the settings here, overload them in the Main.TWikiPreferences. Prefix a setting with TAGMEPLUGIN_ , e.g. to overload NORMALIZE_TAG_INPUT define a TAGMEPLUGIN_NORMALIZE_TAG_INPUT setting in the Main.TWikiPreferences.
Plugin Installation InstructionsNote: You do not need to install anything on the browser to use this plugin. The following instructions are for the administrator who installs the plugin on the TWiki server.
Limitations
Plugin Info | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Added: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Tag-me Plugin<-- Contributions to this plugin are appreciated. Please update the plugin page at http://twiki.org/cgi-bin/view/Plugins/TagMePlugin | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Plugin to tag wiki content collectively in order to find content by tags and to get a meaningful page ranking.
IntroductionThe larger a wiki gets, the harder it is to find content. This wiki tagging plugin attempts to solve the issue based on these assumptions:
User InterfaceTag List on TopicEvery topic has a list showing all tags associated with the topic. Additional tags can be added to the topic, and new tags can be created.Default "twiki" styleScreenshot of tags shown on a topic:![]()
"blog" styleBut the same control can have a different look and feel if we specifystyle="blog" . In view mode it has a terse apperance:
![]() ![]() Create, Rename, Delete tagsCreate New TagsGo to TWiki.TagMeCreateNewTag to create new tags.Anyone is allowed to create new tags. For developers: Add Tag to TopicOnce a new tag is created, it can be added in the tag list of the topic.Rename TagsGo to TWiki.TagMeRenameTag to rename existing tags.Rename permissions are controlled with ALLOW_TAG_CHANGE (see Plugin Settings below).
For developers: Delete TagsGo to TWiki.TagMeDeleteTag to delete existing tags.Delete permissions are controlled with ALLOW_TAG_CHANGE (see Plugin Settings below).
For developers: List All TagsTWiki.TagMeViewAllTags shows all tags used in the system. The font size indicates the overall tag count of a tag. Screenshot of tag cloud in the list all tags view:![]() ![]() <div class="tagmeTagCloud" style="line-height:2em;"> %TAGME{ tpaction="showalltags" format="<a href=\"%SCRIPTURL{view}%/%SYSTEMWEB%/TagMeSearch?tag=$tag\" style=\"font-size:$size%\">$tag</a>" separator=" " minsize="94" maxsize="220"}% </div> List My TagsTWiki.TagMeViewMyTags shows all tags used by logged-in user. The font size indicates the overall tag count of a tag.Tag SearchTWiki.TagMeSearch shows a list of topics that are tagged with all of the selected tags, sorted by relevance. Topics with a high tag count are shown first.Plugin VariableThe Plugin handles a%TAGME{}% variable that performs different actions. The tpaction="" is a required parameter.
How to put tags on every pageTo show the tag interface at the top of the page directly below the breadcrumb (like on twiki.org), use the default templateview.tagme.tmpl in the templates directory.
This template is in fact a 'skin' template. To enable it, write in Main.TWikiPreferences:
* Set SKIN = tagme,patternThe list of skins can be appended, for instance: tagme,corporate,pattern .
For the "blog" style, use for a simple "Tags: list-of-tags (edit)" at the top
of the page:
* Set SKIN = tagme_styleblog,patternAnd for an alternate style, with no tags line shown if no tags exists, and the button to open the tag edit frame placed at the right of the Edit and Attach ones, in the same style, on the upper right: * Set SKIN = tagme_styleblogbutton,pattern
For TWiki 4.1, use:
* Set SKIN = tagme04x01,pattern Customizing the appearanceIf you customize your site you probably want to change overall appearance. You can find instructions how to do that - at least for default pattern skin - in TWiki.PatternSkinCssCookbook.The short summary is:
Other places for the tag interfaceTo show the tags in the top bar, edit TWiki.WebTopBar and copy:<div class="tagmetags"> Tags: %TAGME{ tpaction="%URLPARAM{tpaction}%" web="%WEB%" tag="%URLPARAM{tag}%" }%, [[%SYSTEMWEB%.TagMeViewAllTags][view all tags]] </div>To show the tags at the bottom of every page, write in Main.TWikiPreferences: * Set WEBCOPYRIGHT = Tags: %TAGME{ tpaction="%URLPARAM{tpaction}%" web="%WEB%" tag="%URLPARAM{tag}%" }%, [[%SYSTEMWEB%.TagMeViewAllTags][view all tags]] %BR% Copyright © 1999-%GMTIME{"$year"}% by... etc Show tags without vote buttonsTo just show the tags for a topic, without buttons or "Create new tag" link, use ashowalltags search:
Tags: %TAGME{ tpaction="showalltags" web="%WEB%" topic="%TOPIC%" format="<a href=\"%SCRIPTURL{view}%/%SYSTEMWEB%/TagMeSearch?tag=$tag\">$tag</a> " }% Tag stylesCSS StylesTagMePlugin writes the following CSS styles:
Search results CSS Styles
Preventing link wrapIf users are allowed to use spaces in their tag names (whenNORMALIZE_TAG_INPUT is set to 0), tag links may break halfway to the next line. To prevent wrapping, add a wrapper div around the tags:
<div class="tagmeTagCloud"> %TAGME{ ... }% </div>This CSS style is included in tagme.css :
.tagmeTagCloud a { white-space:nowrap; } Example styles used on twiki.orgTo show the 'tags shown on a topic':<div class="tagmetags"> Tags: %TAGME{ tpaction="%URLPARAM{tpaction}%" web="%WEB%" tag="%URLPARAM{tag}%" }%, [[%SYSTEMWEB%.TagMeViewAllTags][view all tags]] </div>CSS styles: .tagmetags select { font-size:.8em; margin:0 .25em; } .tagmetags a { text-decoration:none; white-space:nowrap; } .tagmetags a:link, .tagmetags a:visited { color:#8E9195; /* all links are gray; for blue links use: #06c */ text-decoration:none; } .tagmetags a:hover { color:#FBF7E8; } .tagMeControl { color:#8E9195; /* gray for non-links */ } Plugin SettingsPlugin settings are stored as preferences variables. To reference a plugin setting write%<plugin>_<setting>% , e.g., %TAGMEPLUGIN_SHORTDESCRIPTION% .
NOTE: Do not change the settings here, overload them in the Main.TWikiPreferences. Prefix a setting with TAGMEPLUGIN_ , e.g. to overload NORMALIZE_TAG_INPUT define a TAGMEPLUGIN_NORMALIZE_TAG_INPUT setting in the Main.TWikiPreferences.
Plugin Installation InstructionsNote: You do not need to install anything on the browser to use this plugin. The following instructions are for the administrator who installs the plugin on the TWiki server.
Limitations
Plugin Info
|
Tag-me Plugin<-- Contributions to this plugin are appreciated. Please update the plugin page at http://twiki.org/cgi-bin/view/Plugins/TagMePlugin IntroductionThe larger a wiki gets, the harder it is to find content. This wiki tagging plugin attempts to solve the issue based on these assumptions:
User InterfaceTag List on TopicEvery topic has a list showing all tags associated with the topic. Additional tags can be added to the topic, and new tags can be created.Default "twiki" styleScreenshot of tags shown on a topic:![]()
"blog" styleBut the same control can have a different look and feel if we specifystyle="blog" . In view mode it has a terse apperance:
![]() ![]() Create, Rename, Delete tagsCreate New TagsGo to TWiki.TagMeCreateNewTag to create new tags.Anyone is allowed to create new tags. For developers: Add Tag to TopicOnce a new tag is created, it can be added in the tag list of the topic.Rename TagsGo to TWiki.TagMeRenameTag to rename existing tags.Rename permissions are controlled with ALLOW_TAG_CHANGE (see Plugin Settings below).
For developers: Delete TagsGo to TWiki.TagMeDeleteTag to delete existing tags.Delete permissions are controlled with ALLOW_TAG_CHANGE (see Plugin Settings below).
For developers: List All TagsTWiki.TagMeViewAllTags shows all tags used in the system. The font size indicates the overall tag count of a tag. Screenshot of tag cloud in the list all tags view:![]() ![]() <div class="tagmeTagCloud" style="line-height:2em;"> %TAGME{ tpaction="showalltags" format="<a href=\"%SCRIPTURL{view}%/%SYSTEMWEB%/TagMeSearch?tag=$tag\" style=\"font-size:$size%\">$tag</a>" separator=" " minsize="94" maxsize="220"}% </div> List My TagsTWiki.TagMeViewMyTags shows all tags used by logged-in user. The font size indicates the overall tag count of a tag.Tag SearchTWiki.TagMeSearch shows a list of topics that are tagged with all of the selected tags, sorted by relevance. Topics with a high tag count are shown first.Plugin VariableThe Plugin handles a%TAGME{}% variable that performs different actions. The tpaction="" is a required parameter.
How to put tags on every pageTo show the tag interface at the top of the page directly below the breadcrumb (like on twiki.org), use the default templateview.tagme.tmpl in the templates directory.
This template is in fact a 'skin' template. To enable it, write in Main.TWikiPreferences:
* Set SKIN = tagme,patternThe list of skins can be appended, for instance: tagme,corporate,pattern .
For the "blog" style, use for a simple "Tags: list-of-tags (edit)" at the top
of the page:
* Set SKIN = tagme_styleblog,patternAnd for an alternate style, with no tags line shown if no tags exists, and the button to open the tag edit frame placed at the right of the Edit and Attach ones, in the same style, on the upper right: * Set SKIN = tagme_styleblogbutton,pattern
For TWiki 4.1, use:
* Set SKIN = tagme04x01,pattern Customizing the appearanceIf you customize your site you probably want to change overall appearance. You can find instructions how to do that - at least for default pattern skin - in TWiki.PatternSkinCssCookbook.The short summary is:
Other places for the tag interfaceTo show the tags in the top bar, edit TWiki.WebTopBar and copy:<div class="tagmetags"> Tags: %TAGME{ tpaction="%URLPARAM{tpaction}%" web="%WEB%" tag="%URLPARAM{tag}%" }%, [[%SYSTEMWEB%.TagMeViewAllTags][view all tags]] </div>To show the tags at the bottom of every page, write in Main.TWikiPreferences: * Set WEBCOPYRIGHT = Tags: %TAGME{ tpaction="%URLPARAM{tpaction}%" web="%WEB%" tag="%URLPARAM{tag}%" }%, [[%SYSTEMWEB%.TagMeViewAllTags][view all tags]] %BR% Copyright © 1999-%GMTIME{"$year"}% by... etc Show tags without vote buttonsTo just show the tags for a topic, without buttons or "Create new tag" link, use ashowalltags search:
Tags: %TAGME{ tpaction="showalltags" web="%WEB%" topic="%TOPIC%" format="<a href=\"%SCRIPTURL{view}%/%SYSTEMWEB%/TagMeSearch?tag=$tag\">$tag</a> " }% Tag stylesCSS StylesTagMePlugin writes the following CSS styles:
Search results CSS Styles
Preventing link wrapIf users are allowed to use spaces in their tag names (whenNORMALIZE_TAG_INPUT is set to 0), tag links may break halfway to the next line. To prevent wrapping, add a wrapper div around the tags:
<div class="tagmeTagCloud"> %TAGME{ ... }% </div>This CSS style is included in tagme.css :
.tagmeTagCloud a { white-space:nowrap; } Example styles used on twiki.orgTo show the 'tags shown on a topic':<div class="tagmetags"> Tags: %TAGME{ tpaction="%URLPARAM{tpaction}%" web="%WEB%" tag="%URLPARAM{tag}%" }%, [[%SYSTEMWEB%.TagMeViewAllTags][view all tags]] </div>CSS styles: .tagmetags select { font-size:.8em; margin:0 .25em; } .tagmetags a { text-decoration:none; white-space:nowrap; } .tagmetags a:link, .tagmetags a:visited { color:#8E9195; /* all links are gray; for blue links use: #06c */ text-decoration:none; } .tagmetags a:hover { color:#FBF7E8; } .tagMeControl { color:#8E9195; /* gray for non-links */ } Plugin SettingsPlugin settings are stored as preferences variables. To reference a plugin setting write%<plugin>_<setting>% , e.g., %TAGMEPLUGIN_SHORTDESCRIPTION% .
NOTE: Do not change the settings here, overload them in the Main.TWikiPreferences. Prefix a setting with TAGMEPLUGIN_ , e.g. to overload NORMALIZE_TAG_INPUT define a TAGMEPLUGIN_NORMALIZE_TAG_INPUT setting in the Main.TWikiPreferences.
Plugin Installation InstructionsNote: You do not need to install anything on the browser to use this plugin. The following instructions are for the administrator who installs the plugin on the TWiki server.
Limitations
Plugin Info
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Added: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Tag-me Plugin<-- Contributions to this plugin are appreciated. Please update the plugin page at http://twiki.org/cgi-bin/view/Plugins/TagMePlugin IntroductionThe larger a wiki gets, the harder it is to find content. This wiki tagging plugin attempts to solve the issue based on these assumptions:
User InterfaceTag List on TopicEvery topic has a list showing all tags associated with the topic. Additional tags can be added to the topic, and new tags can be created.Default "twiki" styleScreenshot of tags shown on a topic:![]()
"blog" styleBut the same control can have a different look and feel if we specifystyle="blog" . In view mode it has a terse apperance:
![]() ![]() Create, Rename, Delete tagsCreate New TagsGo to TWiki.TagMeCreateNewTag to create new tags.Anyone is allowed to create new tags. For developers: Add Tag to TopicOnce a new tag is created, it can be added in the tag list of the topic.Rename TagsGo to TWiki.TagMeRenameTag to rename existing tags.Rename permissions are controlled with ALLOW_TAG_CHANGE (see Plugin Settings below).
For developers: Delete TagsGo to TWiki.TagMeDeleteTag to delete existing tags.Delete permissions are controlled with ALLOW_TAG_CHANGE (see Plugin Settings below).
For developers: List All TagsTWiki.TagMeViewAllTags shows all tags used in the system. The font size indicates the overall tag count of a tag. Screenshot of tag cloud in the list all tags view:![]() ![]() <div class="tagmeTagCloud" style="line-height:2em;"> %TAGME{ tpaction="showalltags" format="<a href=\"%SCRIPTURL{view}%/%SYSTEMWEB%/TagMeSearch?tag=$tag\" style=\"font-size:$size%\">$tag</a>" separator=" " minsize="94" maxsize="220"}% </div> List My TagsTWiki.TagMeViewMyTags shows all tags used by logged-in user. The font size indicates the overall tag count of a tag.Tag SearchTWiki.TagMeSearch shows a list of topics that are tagged with all of the selected tags, sorted by relevance. Topics with a high tag count are shown first.Plugin VariableThe Plugin handles a%TAGME{}% variable that performs different actions. The tpaction="" is a required parameter.
How to put tags on every pageTo show the tag interface at the top of the page directly below the breadcrumb (like on twiki.org), use the default templateview.tagme.tmpl in the templates directory.
This template is in fact a 'skin' template. To enable it, write in Main.TWikiPreferences:
* Set SKIN = tagme,patternThe list of skins can be appended, for instance: tagme,corporate,pattern .
For the "blog" style, use for a simple "Tags: list-of-tags (edit)" at the top
of the page:
* Set SKIN = tagme_styleblog,patternAnd for an alternate style, with no tags line shown if no tags exists, and the button to open the tag edit frame placed at the right of the Edit and Attach ones, in the same style, on the upper right: * Set SKIN = tagme_styleblogbutton,pattern
For TWiki 4.1, use:
* Set SKIN = tagme04x01,pattern Customizing the appearanceIf you customize your site you probably want to change overall appearance. You can find instructions how to do that - at least for default pattern skin - in TWiki.PatternSkinCssCookbook.The short summary is:
Other places for the tag interfaceTo show the tags in the top bar, edit TWiki.WebTopBar and copy:<div class="tagmetags"> Tags: %TAGME{ tpaction="%URLPARAM{tpaction}%" web="%WEB%" tag="%URLPARAM{tag}%" }%, [[%SYSTEMWEB%.TagMeViewAllTags][view all tags]] </div>To show the tags at the bottom of every page, write in Main.TWikiPreferences: * Set WEBCOPYRIGHT = Tags: %TAGME{ tpaction="%URLPARAM{tpaction}%" web="%WEB%" tag="%URLPARAM{tag}%" }%, [[%SYSTEMWEB%.TagMeViewAllTags][view all tags]] %BR% Copyright © 1999-%GMTIME{"$year"}% by... etc Show tags without vote buttonsTo just show the tags for a topic, without buttons or "Create new tag" link, use ashowalltags search:
Tags: %TAGME{ tpaction="showalltags" web="%WEB%" topic="%TOPIC%" format="<a href=\"%SCRIPTURL{view}%/%SYSTEMWEB%/TagMeSearch?tag=$tag\">$tag</a> " }% Tag stylesCSS StylesTagMePlugin writes the following CSS styles:
Search results CSS Styles
Preventing link wrapIf users are allowed to use spaces in their tag names (whenNORMALIZE_TAG_INPUT is set to 0), tag links may break halfway to the next line. To prevent wrapping, add a wrapper div around the tags:
<div class="tagmeTagCloud"> %TAGME{ ... }% </div>This CSS style is included in tagme.css :
.tagmeTagCloud a { white-space:nowrap; } Example styles used on twiki.orgTo show the 'tags shown on a topic':<div class="tagmetags"> Tags: %TAGME{ tpaction="%URLPARAM{tpaction}%" web="%WEB%" tag="%URLPARAM{tag}%" }%, [[%SYSTEMWEB%.TagMeViewAllTags][view all tags]] </div>CSS styles: .tagmetags select { font-size:.8em; margin:0 .25em; } .tagmetags a { text-decoration:none; white-space:nowrap; } .tagmetags a:link, .tagmetags a:visited { color:#8E9195; /* all links are gray; for blue links use: #06c */ text-decoration:none; } .tagmetags a:hover { color:#FBF7E8; } .tagMeControl { color:#8E9195; /* gray for non-links */ } Plugin SettingsPlugin settings are stored as preferences variables. To reference a plugin setting write%<plugin>_<setting>% , e.g., %TAGMEPLUGIN_SHORTDESCRIPTION% .
NOTE: Do not change the settings here, overload them in the Main.TWikiPreferences. Prefix a setting with TAGMEPLUGIN_ , e.g. to overload NORMALIZE_TAG_INPUT define a TAGMEPLUGIN_NORMALIZE_TAG_INPUT setting in the Main.TWikiPreferences.
Plugin Installation InstructionsNote: You do not need to install anything on the browser to use this plugin. The following instructions are for the administrator who installs the plugin on the TWiki server.
Limitations
Plugin Info
|