e491c170deeabc8a2652a36fcad4e3745ab39caa
[openafs-wiki.git] / TWiki / ManagingWebs.mdwn
1 <div>
2   <ul>
3     <li><a href="#Managing Webs"> Managing Webs</a><ul>
4         <li><a href="#Overview"> Overview</a></li>
5         <li><a href="#Adding a New Web"> Adding a New Web</a></li>
6         <li><a href="#Renaming or Deleting a Web"> Renaming or Deleting a Web</a></li>
7       </ul>
8     </li>
9   </ul>
10 </div>
11
12 # <a name="Managing Webs"></a> Managing Webs
13
14 _Adding webs is a web based operation; renaming and deleting webs are manual operations done directly on the server_
15
16 ## <a name="Overview"></a> Overview
17
18 A [[TWikiSite]] is divided into webs; each one represents one subject, one area of collaboration. Administrators can add/rename/delete webs.
19
20 <a name="CreateNewWeb"></a>
21
22 ## <a name="Adding a New Web"></a> Adding a New Web
23
24 <form action="http://www.dementia.org/twiki//manage/%WEBURLENDODED%/%TOPICURLENDODED%" method="post" name="admin"> Create a new web by filling out this form. <strong><em>Note:</em></strong> It is not recommended to create a new web for each little project. You can organize content within a web using [[Main/TWikiForms]] and [[Main/FormattedSearch]]. Cross-linking topics and search is easier if there are only a few larger webs. <table border="1" cellpadding="0" cellspacing="0">
25     <tr>
26       <th align="right" bgcolor="#99CCCC"><strong> Name of new web: </strong></th>
27       <td><input name="newweb" size="16" type="text" value="" /></td>
28       <td> Enter a short name of up to 10 characters. The name must start with one or more upper case letters, followed by optional lower case letters or numbers; it cannot be a [[TWiki/WikiWord]]</td>
29     </tr>
30     <tr>
31       <th align="right" bgcolor="#99CCCC"><strong> Based on web: </strong></th>
32       <td><select name="baseweb"> </select></td>
33       <td> Select a template web (starting with an underscore) or an existing web as a template for the new web. All topics are copied over from a template web; only topics that start with <strong>Web...</strong> (like "WebHome", "WebNotify") are copied from other webs </td>
34     </tr>
35     <tr>
36       <th align="right" bgcolor="#99CCCC"><strong> Web color: </strong></th>
37       <td><input name="webbgcolor" size="16" type="text" value="#D0D0D0" /></td>
38       <td> Enter a [[Main/StandardColors]] code for the web </td>
39     </tr>
40     <tr>
41       <th align="right" bgcolor="#99CCCC"><strong> Description:<br />  <br />   </strong></th>
42       <td colspan="2"><input name="sitemapwhat" size="60" type="text" value="" /><br /> Enter a short description of the web. Write <code>Web.TopicName</code> instead of just <code>TopicName</code> if you include links. This will list the web in the [[TWiki/SiteMap]] (leave field empty if you prefer not to update the directory.) </td>
43     </tr>
44     <tr>
45       <th align="right" bgcolor="#99CCCC"><strong> Use to...<br />   </strong></th>
46       <td colspan="2"><input name="sitemapuseto" size="60" type="text" value="...collaborate on" /><br /> Continue the sentence describing the intended use. This is also for the [[TWiki/SiteMap]]</td>
47     </tr>
48     <tr>
49       <th align="right" bgcolor="#99CCCC"><strong> Exclude web from "search all": </strong></th>
50       <td><input checked name="nosearchall" type="radio" value="" /> No   <input name="nosearchall" type="radio" value="on" /> Yes </td>
51       <td> Specify if you want to exclude the web from a "search all webs" search. Note that the [[TWiki/SiteMap]] will not list the web if you select Yes. </td>
52     </tr>
53     <tr>
54       <td>   </td>
55       <td colspan="2"><input type="submit" value="Create new web" /></td>
56     </tr>
57   </table><input name="newtopic" type="hidden" value="" /> <input name="action" type="hidden" value="createweb" /></form>
58
59 ## <a name="Renaming or Deleting a Web"></a> Renaming or Deleting a Web
60
61 Renaming or deleting a web requires direct access to the installation files on the host server. There are currently no browser-based equivalents of the Rename/move/delete topic tools for working with webs.
62
63 **NOTE:** If you plan to rename the %WIKITOOLNAME%.Main web, remember that TWiki stores user and group topics in <code>%MAINWEB%</code>, default named `Main`. That means, every [[WikiName]] signature - `Main.SomeUserName` - points to it and would need updating (unless the variable, `%MAINWEB%.SomeUserName`, is used throughout).
64
65 1. Prepare your site: Search each web for links to the target web, searching topic text for `Oldwebname.`, including the dot so you'll find references like `Oldwebname.SomeTopic`.
66   - Make changes as required, to `Newwebname.SomeTopic` or better yet, to `%MAINWEB%.SomeTopic`.
67 2. Edit the [[TWikiPreferences]] topic: Rename or delete the web from the `WIKIWEBLIST` variable.
68 3. Login to the %WIKITOOLNAME% server, via Telnet or FTP.
69 4. Go to `twiki/data` and rename or remove the web directory.
70 5. Go to `twiki/templates` and rename or remove the web directory if present.
71 6. Go to `twiki/pub` and rename or remove the web directory if present.
72
73 -- [[MikeMannix]] - 14 Sep 2001 <br /> -- [[PeterThoeny]] - 07 Apr 2002 <br />