Skip to content

Commit

Permalink
Item1545: twiki.org doc sync
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk@3775 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
WillNorris authored and WillNorris committed Apr 30, 2009
1 parent f22bc27 commit 8bdf9da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion core/data/System/QuerySearch.txt
Expand Up @@ -147,9 +147,11 @@ Find all topics that have form =ColourForm= where the form field 'Shades' is 'gr
</verbatim>
Find all topics that have PNG attachments that have been added since 26th March 2007
<verbatim>
%SEARCH{"attachments[name ~ '*.png' AND date >= d2n('2007-03-26')"}%
%SEARCH{"attachments[name ~ '*.png' AND date >= d2n('2007-03-26')]"}%
</verbatim>
Find all topics that have a field 'Threat' set to 'Amber' and 'cold virus' somewhere in the topic text.
<verbatim>
%SEARCH{"Threat='Amber' AND text ~ '*cold virus*'"}%
</verbatim>

__Related Topics:__ SearchHelp, VarSEARCH, FormattedSearch, Foswiki:System/QuerySearchPatternCookbook
1 change: 0 additions & 1 deletion core/data/System/VarTOC.txt
Expand Up @@ -14,6 +14,5 @@
* Example: =%<nop>TOC{"CompleteDocumentation" web="%SYSTEMWEB%" title="Contents:"}%=
* Example: see Foswiki:Sandbox.TestTopicInclude
*
* %T% TOC will generate links to the headings, so when a reader clicks on a heading it will jump straight where that heading is anchored in the text. If you have two headings with exactly the same text, then their anchors will also be identical and they won't be able to jump to them. To make the anchors unique, you can add an invisible HTML comment to the text of the heading. This will be hidden in normal view, but will force the anchors to be different. For example, <tt>---+ Heading &lt;!--5--&gt;</tt>.
* %T% TOC will add an HTML anchor called =foswikiTOC= just before the table of contents. This enables adding a link from within a topic back to the table of contents to ease navigation. Example =[<nop>[#foswikiTOC][Back to TOC]]= creates [[#foswikiTOC][Back to TOC]].
* %T% If multiple headers have the exact same text, the anchors for the 2nd, 3rd etc will be suffixed by _AN1, _AN2 etc so the anchors become unique.

0 comments on commit 8bdf9da

Please sign in to comment.