Tag-me Plugin AJAX helper

This topic contains INCLUDE sections. See Tag Me Plugin 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"}%

Topic attachments
I Attachment Action Size Date Who Comment
MakefileEXT Makefile manage 0.2 K 06 Jul 2013 - 18:28 Admin User  
cloudspinner.gifgif cloudspinner.gif manage 1.4 K 06 Jul 2013 - 18:28 Admin User  
jquery.tagmeui.csscss jquery.tagmeui.css manage 0.8 K 06 Jul 2013 - 18:28 Admin User  
jquery.tagmeui.css.gzgz jquery.tagmeui.css.gz manage 0.4 K 06 Jul 2013 - 18:28 Admin User  
jquery.tagmeui.jsjs jquery.tagmeui.js manage 6.7 K 06 Jul 2013 - 18:28 Admin User  
jquery.tagmeui.js.gzgz jquery.tagmeui.js.gz manage 2.3 K 06 Jul 2013 - 18:28 Admin User  
jquery.tagmeui.uncompressed.csscss jquery.tagmeui.uncompressed.css manage 1.0 K 06 Jul 2013 - 18:28 Admin User  
jquery.tagmeui.uncompressed.jsjs jquery.tagmeui.uncompressed.js manage 14.3 K 06 Jul 2013 - 18:28 Admin User  
spinner.gifgif spinner.gif manage 0.5 K 06 Jul 2013 - 18:28 Admin User  
tag.pngpng tag.png manage 0.6 K 06 Jul 2013 - 18:28 Admin User  
Topic revision: r5 - 06 Jul 2013, AdminUser
 
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 Telem? Send feedback