Tags:
create new tag
, view all tags
ALERT! NOTE: This is a DistributionDocument. Please help maintain high quality documentation: This is a wiki, please fix the documentation if you find errors or incomplete content. Put questions and suggestions concerning the documentation of this topic in the comments section below. Use the Support web for problems you are having using TWiki.

Bookmarks Application Page

This page contains several parts that are used by user bookmark pages. Bookmark pages reside in the Main web and are named <wikiname>Bookmarks, such as JimmyNeutronBookmarks.

Bookmarks Preview in Account Pulldown Menu

  Preview:  

Edit Table Definition

%EDITTABLE{ format="| label, 1, <!--BOOKMARK--> | text, 40 | text, 20 |" changerows="add" buttonrow="bottom" editbutton="Edit bookmarks" }%

Comment Plugin Input Form Definition

%TMPL:DEF{PROMPT:bookmark_page_comment_template}%</div><!--Hide table when adding link-->
<div class="commentPlugin commentPluginPromptBox" style="display: %IF{ "defined 'ettablenr'" then="none" else="block" }%">
#AddBookmark
---++ Add Bookmark

<div style="display: %IF{ "defined 'link'" then="none" else="block" }%">
%T% Visit any topic and select "Bookmark this page" in the "%MAKETEXT{"Account"}%" pulldown menu. Alternatively, add a bookmark here.
</div>
<div style="display: %IF{ "defined 'link'" then="block" else="none" }%">
<span style="background-color: #fcf995; margin-top: 30px; padding: 5px;">
%T% Modify the Link Label if desired, and press "Add Bookmark" to create a bookmark for [[%URLPARAM{ "link" encode="html" }%]].
</span>
</div>

<table border="0" style="background-color: #f4f4f8; padding: 10px; margin-top: -6px">
<tr><th>
</th><th colspan="2">
*Link:*
&nbsp; &nbsp;
%GRAY% =Web.TopicName= or =URL= %ENDCOLOR%
</th><th colspan="3">
*Link Label:*
&nbsp; &nbsp;
%GRAY% keep it short %ENDCOLOR%
</th>
</tr>
<tr><td align="right">
<tt>[<nop>[</tt>
</td><td>
<input type="text" name="link" id="linkTarget" value="%URLPARAM{ "link" encode="html" }%" size="35" class="twikiInputField" style="font-size: 95%" onKeyUp="disableSubmitIfEmpty()" />
</td><td>
<tt>][</tt>
</td><td>
<input type="text" name="label" id="linkLabel" value="%URLPARAM{ "label" encode="html" }%" size="20" class="twikiInputField" style="font-size: 95%" onKeyUp="disableSubmitIfEmpty()" />
</td><td>
<tt>]<nop>]</tt>
</td><td>
<input %DISABLED% type="submit" id="bookmarkSubmit" value="%button|Add Bookmark%" class="twikiButton" />
&nbsp;
[[%TOPIC%][Cancel]]
</td></tr>
<tr><td>
Example:&nbsp;
</td><td colspan="2" style="padding: 0 5px;">
=Engineering.StatusReport=
</td><td colspan="3" style="padding: 0 5px;">
=Status report=
</td></tr>
</table>
<script language="javascript">
function disableSubmitIfEmpty() {
  var linkTargetValue = document.getElementById( "linkTarget" ).value;
  var linkLabelValue = document.getElementById( "linkLabel" ).value;
  document.getElementById( "bookmarkSubmit" ).disabled = !(linkTargetValue && linkLabelValue);
}
disableSubmitIfEmpty();
</script>
</div><!--/commentPlugin-->
%BR%%TMPL:END%

Comment Plugin Output Form Definition

%TMPL:DEF{OUTPUT:bookmark_page_comment_template}%%POS:BEFORE%| <!--BOOKMARK--> | %URLPARAM{ "link" encode="moderate" }% | %URLPARAM{ "label" encode="moderate" }% |
%TMPL:END%

Related: UserBookmarksTemplate, UserList, PatternSkin



Comments & Questions about this Distribution Document Topic

Please use the Support forum if you have questions about TWiki features. This comment section is about the documentation of this topic.
Topic revision: r1 - 2014-12-16 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2016 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.