What are Topics and Webs?
are the basic building block of a Foswiki site. You may be more familiar with the term pages
in other software; however, Foswiki's topics
traditionally serve more purposes than the equivalent in other systems. Topics can only exist inside a web
. The topic you're reading now is Topics And Webs
is a collection of topics (and other webs, known as subwebs
). Webs are containers and by themselves cannot store information; only topics can do that. You may be more familiar with the term Namespaces
in other wiki software, but Foswiki's webs
are more like directories
in your computer's operating system. There is no common "root" web. The Topics And Webs
topic you're reading now is contained in the System
web (its complete, fully qualified
name is System.Topics And Webs
Anatomy of a Topic
Each topic has:
- topics in a given web have unique names to identify them
- topics with a Wiki Word name are automatically linked (as opposed to
[[forced bracketed links]] - see Editing Shorthand to learn more)
- there are restrictions on topic names; see topic naming rules
- a topic's fully qualified name is prefixed with the web it is contained in, for example the topic you're reading now may be referred to as System.Topics And Webs
- fully qualified names are used when a link is being made to a topic in another web
- topics may have one or more file attachments
- changes to attachments are automatically recorded
- access controls
- control who can view, edit, rename, move or delete topics
- set permissions for individual users or user groups
- override default permissions inherited by the web or site
- changes are automically recorded
- change history shows authors, dates, and allows comparison between any two versions
- revert to older versions
- containing web
- every topic must be contained within a web
- list of webs at Site Map
- hidden contextual data stored within each topic
- Example: parent topic
- new topics are automatically made a "child" of the topic it was created from
- parent relationship allows hierarchical, parent-child navigation
- See Figure of System web
Creating and editing topics
Foswiki makes it easy to add and edit topics or link between them.
in the toolbar which should be present at the top and bottom of each page (assuming default Pattern Skin
). An edit screen appears. Use the
button if you need it.
To add a new topic
Preview to see how your edit looks.
Save to save.
there are three ways in the default Pattern Skin
- Create a link to the topic which doesn't exist yet, e.g. by editing a topic and typing a Wiki Name. When the topic is saved, the link will be shown with a ?: click the ? and a new edit window appears.
- Navigate to the topic which doesn't exist yet, e.g. by typing the name of topic in the JumpBox. Foswiki should display a screen which invites you to create the topic.
- Click the
Create New Topic link in the Web Left Bar links down the left side of the page (assuming default Pattern Skin). Foswiki should display a screen which invites you to create the topic.
The best strategy is to use Wiki Words
for your topic names. In this way, linking is automatic. However, if non- Wiki Word
names are required, you can use
to force a link to a non-standard topic name (see Editing Shorthand
). Forced links are subject to some restrictions and the actual topic name may not be identical to what was entered into the forced link.
- The first letter of each "word" will be automatically capitalized
- Spaces are compressed out of the topic name
- The following special characters are removed: (May be different in your installation)
- Any other "whitespace" characters
? (Question mark)
^ (Caret / Circumflex)
`'" Quotes (Open-quote, Close-quote/Apostrophe, and Double-quote)
| (Vertical line)
<> (Less and Greater signs)
 (Open and close square brackets)
- And any ASCII control characters (Hex x00-x1f)
If you enter
[[my special-topic @here]]
, you will see
my special-topic @here
, but the actual topic created will be
Note that if you use the Topic Creator
, Wiki Word
rules are strictly enforced and the resulting topic name would be
For more details on forced links, see EditingShorthand
Topic and attachment versions are identified by positive, non-zero, integer numbers. Versions start with 1 and are sequencial.
Reverting, renaming, moving and deleting topics
See FAQDelete Or Rename A Topic
and Managing Topics
Anatomy of a web
If a user navigates to a Foswiki site without specifying a web, the default Users
will be displayed.
Each web has:
- topic naming rules apply to web names
- there is no ability to refer to subwebs with a relative path, i.e. they must always be fully qualified - referred to in full, with the parent web(s) prefixed
- the '.' and '/' characters serve as path delimiters to a web or topic
- example: Sandbox/My Sub Web/My Sub Sub Web.My Topic
- it is possible in Foswiki to have a subweb which is the same name as a topic. For this reason, if there is a web named
Sandbox/MySubWeb, navigating to it must be done so using a trailing slash, i.e.
[[Sandbox/MySubWeb/]]. Without the trailing slash, Foswiki tries to display the topic named
- Disambiguation of identical web and topic names using the trailing slash is only active within
[[Square bracket links]].
- Web Preferences topic
- Web Home topic
- the home topic for the container web. It is also the default topic Foswiki will display if a user navigates to a web without specifying a topic name.
- Utility topics (from the _default template web):
Renaming, moving and deleting webs
See Managing Webs
Related Topics: User Documentation Category
, Admin Documentation Category
, Managing Topics
, Managing Webs