source: trunk/core/data/System/ManagingWebs.txt @ 8755

Revision 8755, 11.6 KB checked in by MichaelDaum, 3 years ago (diff)

Item9553: removing yet another %INCLUDE{"SiteMap"}% ... ManagingWebs with its Create new Web tool now loads in
about a second on my server ... was 18 seconds before.

  • Property svn:keywords set to Revision Date
Line 
1%META:TOPICINFO{author="ProjectContributor" date="1252719920" format="1.1" version="$Rev$"}%
2%META:TOPICPARENT{name="ReferenceManual"}%
3%STARTINCLUDE%
4---+ Managing Webs
5%TOC%
6
7%ADDTOZONE{"head" text="<style type='text/css'>
8    #createWeb .foswikiFormStep {padding:15px 40px;}
9    #createWeb .col1 {float:left; width:30%; margin:0 3% 0 0;}
10    #createWeb .col2 {float:left; width:66%;}
11    #createWeb .col1 .foswikiInputField,
12    #createWeb .col1 .foswikiSelect {width:90%;}
13    #createWeb .required {font-size:80%; color:#aaa; text-transform:uppercase;}
14    #createWeb .foswikiHelp {margin:.5em 0;}
15    #createWeb .additionalSettings {margin:1em -20px 0 -20px;}
16    #createWeb .additionalSettings .foswikiActionFormStepSign {display:none;}
17    #createWeb .additionalSettings .foswikiFormSteps {background:#fff;}
18    #createWeb .additionalSettings .foswikiFormStep {padding:5px 20px;}
19    .twistyTrigger {font-weight:bold;}
20</style>"}%
21
22---++ What are Webs?
23A Foswiki site is divided into "Webs", or groups or topics - each one represents one subject, one area of collaboration. Administrators can add, rename or delete webs.%BR%
24At file level, a Web is a directory located inside the =data= directory, with text files as topics. %BR%
25A number of Webs are fixed: =%SYSTEMWEB%= for documentation, =%USERSWEB%= to store user pages and site-wide preferences, =%TRASHWEB%= for the topic recycle bin. %BR%
26Other webs can be created as needed.
27
28#CreateNewWeb
29---++ Create a new web
30To use this form you must be administrator.
31
32Before you begin: consider that less webs are better than more webs. Cross-linking topics is easier, and searches are faster, if there are only a few larger webs.
33
34<noautolink>
35<div id="createWeb" class="foswikiFormSteps">
36        <form name="admin" action="%SCRIPTURLPATH{manage}%/%WEB%/%TOPIC%" method="post">
37                <input name="newtopic" type="hidden" value="%URLPARAM{"newtopic"}%" /> <input name="action" type="hidden" value="createweb" />
38                <div class="foswikiFormStep">
39                        <h3>Name of the new Web <span class="required">Required</span></h3>
40                        <div class="col1">
41                                <p>
42                                        <input name="newweb" class="foswikiInputField" type="text" value="%URLPARAM{"newweb"}%" size="40" />
43                                </p>
44                        </div><!--//col1-->
45                        <div class="col2">
46                                <p>
47                                        Naming rule: the name must start with an upper case letter, followed by upper or lower case letters or numbers. Examples: =Learn=, =<nop>SupDocs=, =KNow3=
48                                </p>
49                                <p>
50                                        If you are creating a nested web (a web inside a web), use the notation =Existingweb.Newweb=. %BR% %TWISTYBUTTON{id="infoOnNestedWebs" mode="span" showlink="&#43; More info about nested webs ..." hidelink="&#8722; Close info" remember="on"}%
51                                </p>
52                                %TWISTYTOGGLE{id="infoOnNestedWebs"}%<div class="foswikiHelp">
53                                        <h4>About hierarchical webs</h4>
54                                        <p>
55                                                You can only create hierarchical webs if the ={EnableHierarchicalWebs}= setting in [[%SCRIPTURLPATH{"configure"}%#Store][configure]] is enabled.  %IF{"{EnableHierarchicalWebs}" then='%GREEN% Hierarchical webs are currently enabled %ENDCOLOR%.' else='%RED Hierarchical webs are currently disabled %ENDCOLOR%. Without this setting, Foswiki will only allow a single level of hierarchy. With it, you can use multiple levels, like a directory tree, i.e. webs within webs.'}%
56                                        </p>
57                                        <p>
58                                                You might not need hierarchical webs. Foswiki topics already have a parent/child relationship within a web, which is shown in the breadcrumb. Try to keep the number of webs to a minimum in order to keep search and cross-referencing simple.
59                                        </p>
60                                </div><!--//foswikiHelp-->%ENDTWISTYTOGGLE%
61                        </div><!--//col2-->
62                        <br class="foswikiClear" />
63                </div><!--//foswikiFormStep-->
64                <div class="foswikiFormStep">
65                        <h3>Summary</h3>
66                        <div class="col1">
67                                <p>
68                                        <input type="text" class="foswikiInputField" name="WEBSUMMARY" value="" size="40" />
69                                </p>
70                        </div><!--//col1-->
71                        <div class="col2">
72                                <p>
73                                        Enter a short description of the web. This description will be used in the [[%SYSTEMWEB%.SiteMap][SiteMap]]. If you are using links: write =Web.TopicName= instead of just =TopicName= for correct linking.
74                                </p>
75                        </div><!--//col2-->
76                        <br class="foswikiClear" />
77                </div><!--//foswikiFormStep-->
78                <div class="foswikiFormStep">
79                        %TWISTYBUTTON{ id="additionalSettings" showlink="&#43; Show additional settings..." hidelink="&#8722; Hide additional settings" remember="on"}%
80                        %TWISTYTOGGLE{ id="additionalSettings" }%
81                        <div class="additionalSettings">
82                                <div class="foswikiFormSteps">
83                                        <div class="foswikiFormStep">
84                                                <h3>Template web</h3>
85                                                <div class="col1">
86                                                        <p>
87                                                                <select name="baseweb" class="foswikiSelect"> %WEBLIST{ "
88                                                                <option $marker>
89                                                                        $name
90                                                                </option>
91                                                                " webs="webtemplate,public" selection="_default" separator=" "}% </select>
92                                                        </p>
93                                                </div><!--//col1-->
94                                                <div class="col2">
95                                                        <p>
96                                                                Base the new web on an existing web. %BR%
97                                                                %TWISTYBUTTON{id="infoOnTemplates" mode="span" showlink="&#43; More info about template webs ..." hidelink="&#8722; Close info" remember="on"}%
98                                                        </p>
99                                                        %TWISTYTOGGLE{id="infoOnTemplates"}%<div class="foswikiHelp">
100                                                        <h4>About template webs</h4>
101                                                        <p>
102                                                                There are two methods used to create a new web. %BR% First you can use a specially designed TemplateWeb. This is an invisible web that begins with an underscore &quot;_&quot; character (for example =_default=). All topics in the template web will be copied into your new web. %BR%
103                                                                The second method is to use an existing web as a template web. This may be useful *if you already have a web that you would like to use as a starting point.* Only topics that have names beginning with "Web..." (like "WebHome" or "WebNotify") are copied. In either case you will want to be sure to verify that your new web has all the custom modifications that you desire. <!-- Any [[macros]] defined in the form below will automatically be set in the !WebPreferences of the new web. -->
104                                                        </p>
105                                                        <p>
106*Notes:*
107   * You must have =ROOTCHANGE= access to create a top-level web (one with no parent)
108   * A new web created using the =_default= or =_empty= template webs must have their access controls set before public use
109   * =_empty= is really empty (only has a !WebPreferences topic); normally you want to choose =_default=.
110   * Only the person who created it has permission to change the <nop>%WEBPREFSTOPIC% in the new web
111                                                        </p>
112                                                </div><!--//foswikiHelp-->%ENDTWISTYTOGGLE%
113                                        </div><!--//col2-->
114                                        <br class="foswikiClear" />
115                                        </div><!--//foswikiFormStep-->
116                                        <div class="foswikiFormStep">
117                                                <h3>List on !SiteMap page</h3>
118                                                <div class="col1">
119                                                        <p>
120                                                                <label><input type="radio" name="SITEMAPLIST" value="on" checked="checked" />show</label> <label><input type="radio" name="SITEMAPLIST" value="" />hide</label>
121                                                        </p>
122                                                </div><!--//col1-->
123                                                <div class="col2">
124                                                        <p>
125                                                                Should the new web be listed on !SiteMap? Even if hidden, the web will be linkable and accessible to users.
126                                                        </p>
127                                                </div><!--//col2-->
128                                                <br class="foswikiClear" />
129                                        </div><!--//foswikiFormStep-->
130                                        <div class="foswikiFormStep">
131                                                <h3>Include in global search</h3>
132                                                <div class="col1">
133                                                        <p class="formOptions">
134                                                                <label><input type="radio" name="NOSEARCHALL" value="" checked="checked" />include</label> <label><input type="radio" name="NOSEARCHALL" value="on" />exclude</label>
135                                                        </p>
136                                                </div><!--//col1-->
137                                                <div class="col2">
138                                                        <p>
139                                                                Specify if you want to exclude the web from a global search.
140                                                        </p>
141                                                </div><!--//col2-->
142                                                <br class="foswikiClear" />                                     
143                                        </div><!--//foswikiFormStep-->
144                                        <div class="foswikiFormStep">
145                                                <h3>Web color</h3>
146                                                <div class="col1">
147                                                        <p>
148                                                                <input name="WEBBGCOLOR" class="foswikiInputField" type="text" value="#efefef" size="20" />
149                                                        </p>
150                                                </div><!--//col1-->
151                                                <div class="col2">
152                                                        <p>
153                                                                Displayed on !SiteMap and in the left bar (Pattern Skin).
154                                                        </p>
155                                                </div><!--//col2-->
156                                                <br class="foswikiClear" />
157                                        </div><!--//foswikiFormStep-->
158                                </div><!--//foswikiFormSteps-->
159                        </div><!--//additionalSettings-->%ENDTWISTYTOGGLE%
160                </div><!--//foswikiFormStep-->
161                <div class="foswikiFormStep">
162                        <input type="submit" class="foswikiSubmit" value="Create Web" />
163                </div><!--//foswikiFormStep-->
164        </div><!--//foswikiFormSteps-->
165</form>
166</noautolink>
167
168---++ In-depth info on Webs
169---+++ Subweb preferences are inherited
170The [[preference settings]] of a subweb are inherited from the parent web and overridden locally. Preferences are ultimately inherited from the [[%SYSTEMWEB%.DefaultPreferences]] topic.
171
172*Example Preference Inheritance for =Sandbox/TestWeb/SubWeb.SubWebTopic= topic:*   
173   1 =%SYSTEMWEB%.DefaultPreferences= default settings
174   1 =%USERSWEB%.SitePreferences= site-wide settings inherits from and overrides settings in =%SYSTEMWEB%.DefaultPreferences=
175   1 =Sandbox.%WEBPREFSTOPIC%= inherits from and overrides settings in =%USERSWEB%.SitePreferences=
176   1 =Sandbox/TestWeb.%WEBPREFSTOPIC%= inherits from and overrides settings in =Sandbox.%WEBPREFSTOPIC%=
177   1 =Sandbox/TestWeb/SubWeb.%WEBPREFSTOPIC%= inherits from and overrides settings in =Sandbox/TestWeb.%WEBPREFSTOPIC%=
178   1 =Sandbox/TestWeb/SubWeb.SubWebTopic= inherits from and overrides settings in =Sandbox/TestWeb/SubWeb.%WEBPREFSTOPIC%=
179
180---+++ Subweb navigation
181The Pattern skin (default) indicates Subwebs by indenting them in the sidebar relative to their level in the hierarchy.
182
183#RenameWeb
184---++ Renaming or Deleting a Web
185Rename a web via the Tools section in each %WEBPREFSTOPIC% topic. You may delete a web by moving it into a Trash web.
186
187---+++ Permissions
188You may only rename a web if you have the following permissions
189   * You must be allowed to rename and changes topics in the web you want to rename
190   * You must be allowed to rename topics in the parent web of the web you want to rename
191   * If the web is a root web (i.e. it has no parent web) then you must have permission to both create and rename root webs. These permissions are controlled by the ALLOWROOTCHANGE preference, which can be set in [[%USERSWEB%.SitePreferences]].
192   * If you move the web to another parent web you must be allowed to create and change topics in the new parent web. When you rename a web Foswiki will try and update all links that refer to the old web. You should note that links only get updated in topics that you are allowed to edit. If you use access rights in the Foswiki installation it is generally best to let an administrator rename webs to avoid too many broken links.
193
194---+++ Renaming the webs in the distribution
195It is possible, though not recommended, to change the names of the webs in the distribution. If you plan to rename the %USERSWEB% web, remember that Foswiki stores user topics in this web. That means that every WikiName signature - =%USERSWEB%.<nop>SomeUserName= - points to it and would need updating (unless the macro style =%<nop>USERSWEB%.<nop>SomeUserName=, is used throughout). This potentially large change can be performed automatically if you rename the web from the Tools section of %WEBPREFSTOPIC%, as described above.
196
197<blockquote class="foswikiHelp">%X% If you want to rename the %SYSTEMWEB% or %USERSWEB% webs, remember they are referred to in the Foswiki configuration. You will need to change the ={SystemWebName}=, ={UsersWebName}= and/or ={LocalSitePreferences}= settings in the configuration using the [[%SCRIPTURL{configure}%][configure]] interface.
198
199%X% Renaming the webs in the distribution is not recommended because it makes upgrades much more complicated.
200</blockquote>
201
202---
203*Related Topics:* AdminDocumentationCategory, AdminToolsCategory
Note: See TracBrowser for help on using the repository browser.