This translation is older than the original page and might be outdated. See what has changed.
Translations of this page?:

Namespace

Un namespace è simile a una directory o una cartella, mentre pagenames sono simili ai file.

In DokuWiki è possibile usare i namespaces per raggruppare le tue pagine. Per i nomi dei namespace valgono le stesse restrizioni delle pagenames.

Per default d 'installazione DokuWiki crea due nomi built-in: playground e wiki.

Creazione Namespaces

Non c'è bisogno di creare dei nomi separatamente; semplicemente creare le pagine con i due punti nel pagename. Il token dopo gli ultimi due punti sarà il nome della pagina stessa, mentre tutti gli altri nomi saranno namespaces. Tutti i nomi utilizzati nella vostra pagina che non esistono già verranno creati automaticamente da DokuWiki.

(In DokuWiki pagine vengono create come in ogni altra wiki. È sufficiente creare un link a una pagina non esistente, segui questo link e fare clic su Crea questa pagina.) Aggiunta di pagine.

Examples:
example
.example
.:example
si riferisce alla pagina “example” nella current namespace.
:examplesi riferisce alla pagina “example” nella root namespace.
..example
..:example
.:..:example
si riferisce alla pagina “example” nella parent namespace
wiki:examplesi riferisce alla pagina “example” nella namespace “wiki”. The namespace “wiki” is located beneath the root namespace.
ns1:ns2:example
:ns1:ns2:example
si riferisce alla pagina “example” in the namespace ns2. The namespace ns2 is located beneath the namespace ns1; the namespace ns1 is located beneath the root namespace.
.ns1:ns2:example
.:ns1:ns2:example
si riferisce alla pagina “example” in the namespace ns2. The namespace ns2 is located beneath the namespace ns1; the namespace ns1 is located beneath the current namespace.
..ns1:ns2:example
..:ns1:ns2:example
si riferisce alla pagina “example” in the namespace ns2. The namespace ns2 is located beneath the namespace ns1; the namespace ns1 is located beside the current namespace (i.e. both ns1 and the current namespace are beneath the same parent namespace, wherever according to the root namespace this parent may be located itself).
.ns1:ns2:si riferisce alla pagina “start” in the namespace ns2. The namespace ns2 is located beneath the namespace ns1; the namespace ns1 is located beneath the current namespace.

(The default page can be named something other than “start” by adjusting the startpage configuration setting.)

Eliminare Namespaces

Quando tutte le pagine all'interno di un namespace vengono rimossi il namespace logicamente non esisterà più.

Come rinominare namespaces?

Via manuale

Per rinominare un namespace manualmente si dovrà:

  • Rinominare le cartelle che rappresentano i nomi di:
    • data/pages
    • data/media (se questa esiste)
  • Rimuovere metadata per namespace sotto data/meta

continua

 
it/namespaces.txt · Last modified: 2009/10/25 09:09 by 94.162.130.28
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Imprint Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki
WikiForumIRCBugsGitXRefTranslate