Tag-me Plugin AJAX helper

This topic contains INCLUDE sections. See TagMePlugin for instructions.

%STARTSECTION{"tagquery"}%<noautolink>%FORMATLIST{
   "%TAGME{tpaction="showalltags" separator=","}%"
   format="$1$n"
   split="\s*,\s*"
   header="["
   format="\"$1\""
   footer="]"
   separator=",$n"
   include="%URLPARAM{"term"}%.*"
}%</noautolink>%ENDSECTION{"tagquery"}%

%STARTSECTION{"jqui"}%%JQREQUIRE{"textboxlist"}%%JQREQUIRE{"simplemodal"}%%JQREQUIRE{"hoverintent"}%%JQREQUIRE{"queryobject"}%%ADDTOZONE{"head" 
   tag="TAGMEPLUGIN::JQUI:META" 
   text="<meta name='foswiki.TagMePlugin.jquitags' content='%TAGME{tpaction="%URLPARAM{"tpaction" default="showalltags"}%" tag="%URLPARAM{"tptag"}%" web="%BASEWEB%" topic="%BASETOPIC%" separator=","}%' />
<meta name='foswiki.TagMePlugin.remove' content='%IF{"($TAGMEPLUGIN_JQUIREMOVEALL='everybody') OR ($TAGMEPLUGIN_JQUIREMOVEALL='topicchange' AND '%BASEWEB%.%BASETOPIC%' allows 'CHANGE') OR ('%USERNAME%' ingroup 'AdminGroup')" then="all"}%' />" 
   requires=""
}%%ADDTOZONE{"head" 
   tag="TAGMEPLUGIN::JQUI:CSS" 
   text="<link rel='stylesheet' href='%PUBURLPATH%/%SYSTEMWEB%/TagMeAjaxHelper/jquery.tagmeui.css' type='text/css' media='all'/>"
}%%ADDTOZONE{"script"
   tag="TAGMEPLUGIN::JQUI::JS" 
   text="<script type='text/javascript' src='%PUBURLPATH%/%SYSTEMWEB%/%TOPIC%/jquery.tagmeui.js'></script>" 
   requires="JQUERYPLUGIN::TEXTBOXLIST, JQUERYPLUGIN::SIMPLEMODAL, JQUERYPLUGIN::QUERYOBJECT, JQUERYPLUGIN"
}%<div id='tagmejqcontainer'><noautolink>
<div id='tagmejqcloud' style='display:none'></div>
<form id='tagmejqtaglistform' name='tagmeshow' method='post' action='%SCRIPTURLPATH{"viewauth"}%/%WEB%/%TOPIC%'>
<span id='tagmejqtagbutton' class='foswikiEmulatedLink' title="%MAKETEXT{"View tag cloud"}%">%MAKETEXT{"Tags"}%</span>
<span id='tagmejqtagstatus'></span>
   <input type='%IF{
   "'%BASETOPIC%' allows 'change'"
   then="text"
   else="hidden" 
}%' name='add' class='foswikiInputField' placeholder='%MAKETEXT{"Add..."}%' id='tagmejqinputfield' title='%MAKETEXT{"Enter a tag name to apply to this topic"}%' size='6' value='%TAGME{ tpaction="showalltags" web="%BASEWEB%" topic="%BASETOPIC%"}%'/> 
</form>
</noautolink></div>%ENDSECTION{"jqui"}%

%STARTSECTION{"ajax"}%%TAGME{
  tpaction="%URLPARAM{"tpaction"}%"
  tag="%URLPARAM{"tptag"}%"
  web="%URLPARAM{"qWeb"}%"
  topic="%URLPARAM{"qTopic"}%"
  nostatus="on"
  style="nojavascript"
}%%ENDSECTION{"ajax"}%

%STARTSECTION{"cloud"}%
---+++ %IF{"'%URLPARAM{"tpweb"}%'=''" 
  then="%MAKETEXT{"Tags in all webs"}%"
  else="%MAKETEXT{"Tags in [_1] web" args="<nop>%URLPARAM{"tpweb"}%"}%"
}%
<form id='tagmejqWebSelect' method='post' action='%SCRIPTURLPATH{"view"}%/%WEB%/%TOPIC%'>
  <input type='checkbox' id='tagmejqCheckboxJustThisWeb' name='tpweb'\
    value='%URLPARAM{"tpweb"}%' %IF{
    "'%URLPARAM{"tpweb"}%'=''"
    then="checked='checked'"
}% title='%MAKETEXT{"Show tags from all webs"}%'\
  />
  <label for='tpweb'>%MAKETEXT{"all webs"}%</label> |
  <input type='checkbox' id='tagmejqCheckboxJustMe' name='tpuser' value='me' \
%IF{
   "'%URLPARAM{"tpuser"}%'='me'"
   then="checked='checked'"
}% title='%MAKETEXT{"Show tags used by me"}%'\
  />
  <label for='tpuser'>%MAKETEXT{"set by me"}%</label> |
  <a href='%SCRIPTURLPATH{"view"}%/%SYSTEMWEB%/TagMeRenameTag'\
    title='%MAKETEXT{"Rename tags"}%'>%MAKETEXT{"rename..."}%</a> |
  <a href='%SCRIPTURLPATH{"view"}%/%SYSTEMWEB%/TagMeDeleteTag'\
    title='%MAKETEXT{"Delete tags"}%'>%MAKETEXT{"delete..."}%</a>
</form>
<div id='tagmejqTagCloud'>
%TAGME{tpaction="showalltags"
  web="%URLPARAM{"tpweb"}%"
  by="%URLPARAM{"tpuser"}%"
  format="<a href='%SCRIPTURLPATH{"view"}%/%SYSTEMWEB%/TagMeSearch?tag=$tag;by=%URLPARAM{ "tpuser" }%;qcallingweb=%URLPARAM{"qcallingweb"}%;qweb=%URLPARAM{"tpweb"}%' style='font-size:$size%' title='%MAKETEXT{"Other topics with this tag"}%'>$tag</a>"
  separator=" "
  minsize="94"
  maxsize="220"
}%
</div>%ENDSECTION{"cloud"}%

I Attachment Action Size Date WhoSorted ascending Comment
MakefileEXT Makefile manage 154 bytes 11 Jan 2017 - 03:16 EmileDenTex  
cloudspinner.gifgif cloudspinner.gif manage 1 K 11 Jan 2017 - 03:16 EmileDenTex  
jquery.tagmeui.csscss jquery.tagmeui.css manage 824 bytes 11 Jan 2017 - 03:16 EmileDenTex  
jquery.tagmeui.css.gzgz jquery.tagmeui.css.gz manage 388 bytes 11 Jan 2017 - 03:16 EmileDenTex  
jquery.tagmeui.jsjs jquery.tagmeui.js manage 5 K 11 Jan 2017 - 03:16 EmileDenTex  
jquery.tagmeui.js.gzgz jquery.tagmeui.js.gz manage 1 K 11 Jan 2017 - 03:16 EmileDenTex  
jquery.tagmeui.uncompressed.csscss jquery.tagmeui.uncompressed.css manage 984 bytes 11 Jan 2017 - 03:16 EmileDenTex  
jquery.tagmeui.uncompressed.jsjs jquery.tagmeui.uncompressed.js manage 14 K 11 Jan 2017 - 03:16 EmileDenTex  
spinner.gifgif spinner.gif manage 529 bytes 11 Jan 2017 - 03:16 EmileDenTex  
tag.pngpng tag.png manage 586 bytes 11 Jan 2017 - 03:16 EmileDenTex  
This topic: System > TagMePlugin > TagMeAjaxHelper
Topic revision: 23 Jan 2017, EmileDenTex
This site is powered by FoswikiCopyright © by the contributing authors. All material on this site is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback