DokuWiki

It's better when it's simple

User Tools

Site Tools


namespaces

This is an old revision of the document!


Creating Namespaces

You don't need to create namespaces separately; simply create pages with colons in the pagename. The token after the last colon will be the name of the page itself, while all other tokens are namespaces. All namespaces used in your pagename that don't exist already will be created by DokuWiki automatically.

A namespace can be created in the media manager after having selected a file on the local computer and adding a name: (of namespace wanted) just before the media file name and then clicking upload. This will create on the fly the namespace (folder) for the file media, visible after a refresh of the windows.

In DokuWiki, pages are created as in every other wiki. Simply create a link to a non existing page, follow this link, and click on Create this page. See also Adding pages.

Examples:
example
.example
.:example
refers to the page “example” in the current namespace.
:example refers to the page “example” in the root namespace.
..example
..:example
.:..:example
refers to the page “example” in the parent namespace
wiki:example refers to the page “example” in the namespace “wiki”. The namespace “wiki” is located beneath the root namespace.
ns1:ns2:example
:ns1:ns2:example
refers to the page “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
refers to the page “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
refers to the page “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:
.:ns1:ns2:
refers to start page of the namespace ns2. The namespace ns2 is located beneath the namespace ns1; the namespace ns1 is located beneath the current namespace.

Please refer to Namespace Default Linking below how the start page is determined
~example
~:example
refers to the page “example”, using the current page as a namespace. Eg. if used on the page “foo:bar”, the link will refer to “foo:bar:example”. This is an effective way of creating sub-namespaces from existing pages.

:!: Gotcha: The syntax for relative and absolute internal links is non-unique and complex relative to directory and filename conventions.

Links are absolute if and only if they have a “:” prefix or have no prefix but do have intermediate (or suffix) “:”

Links relative to the current namespace may also begin with either “.” or “.:” (“..” or “..:” for parent namespace).

Referring Images

Regarding referring of namespaces, images and other media files are handled like wiki pages. That means, the following refers to an image that belongs to the current namespace:

{{image.jpg}}

Deleting namespaces

When all pages inside a namespace are removed (see delete a page) the namespace logically doesn’t exist anymore. DokuWiki usually deletes the now empty directory as well.

How to rename namespaces?

Manual way

In order to rename a namespace manually you will have to:

  • Rename the folders that represent the namespace in:
    • data/pages
    • data/media (if this exists)
  • Remove metadata for the namespace under data/meta
  • Remove attic data for the namespace under data/attic (or move that over as well, if you want to preserve old versions)

For example, on a Unix host, you could:

  • mv /dokuwiki_base/data/pages/old_namespace /dokuwiki_base/data/pages/new_namespace
  • mv /dokuwiki_base/data/media/old_namespace /dokuwiki_base/data/media/new_namespace
  • rm -Rf /dokuwiki_base/data/meta/old_namespace
  • move: mv /dokuwiki_base/data/attic/old_namespace /dokuwiki_base/data/attic/new_namespace
    or remove: rm -Rf /dokuwiki_base/data/attic/old_namespace

Note that the old_namespace and/or new_namespace words may need to be encoded if they are on a non-Latin character set (i.e. Greek, Russian, etc).

  • Correct (by editing them) all the links to the pages under the moved namespace (you can discover those before moving the namespace by reviewing each page's backlinks).
  • Browse each and every page under the new namespace. This will create the missing indexing information and metadata for the pages under the moved namespace.

However, you will still have lots of junk left around. For example in data/changes.log, various files under cache (including the .idx files etc). If possible you could just start from a blank state as follows (again under Unix) but be warned that this will mean losing all your historical information (i.e. recent changes):

  • cat /dev/null > /dokuwiki_base/data/changes.log
  • rm -Rf /dokuwiki_base/data/attic/*
  • rm -Rf /dokuwiki_base/data/cache/?
  • rm -Rf /dokuwiki_base/data/cache/*.idx
  • rm -Rf /dokuwiki_base/data/cache/purgefile
  • Browse each and every page of your Wiki.

DISCLAIMER: I understand this is convoluted (and maybe I missed/messed a couple of things you should also do). All in all this is a PITA. You may also use a couple of plugins that are available for (re)building the searchindex for the complete wiki, erasing entire cache and/or old wiki revisions thus avoiding having to do this manually.

Namespace Default Linking

It is possible to link to the default page of a namespace by ending the linkid with a colon: [[foo:bar:]]. Which page the link links to is dependent on the existence of certain named files. For [[foo:bar:]] the following pages are checked:

foo:bar:$conf['start']
foo:bar:bar
foo:bar

The pages are checked in that order and whatever page is found first will be linked to. Autoplural linking is not done for those links.

See startpage to learn about configuring the startpage name (defaults to start). <p>&nbsp;</p> <p><img src=“https://philippinesangeles.com/wp-content/uploads/2024/02/daftartogelterbaik-850x510.jpg” alt=“NANA4D Bandar Situs Toto Terpercaya Bonus Terbaik Dan Pelayanan Responsif” /></p> <p>Pelayanan pelanggan yang responsif adalah salah satu kunci paling utama sekali untuk pengalaman berjudi yang menyenangkan dan tanpa masalah. Dan NANA4D, sebagai main toto, dikenal karena pelayanannya yang sangat responsif. Artikel ini akan membahas bagaimana NANA4D mengutamakan pelayanan pelanggan dan memberikan pengalaman berjudi online yang lebih baik. Oleh sebab itu NANA4D memiliki tim pelayanan pelanggan yang terdiri dari profesional berpengalaman. Dan pastinya mereka tidak hanya memahami industri perjudian online, tetapi juga memiliki dedikasi untuk memberikan bantuan dan solusi terbaik kepada setiap pemain. Salah satu keunggulan NANA4D adalah dukungan pelanggan yang tersedia 24 jam. Semua pemain dapat menghubungi tim dukungan kapan saja, baik itu untuk pertanyaan umum, bantuan teknis, atau informasi tentang promosi terbaru. Pastinya NANA4D menyediakan berbagai cara mudah untuk menghubungi tim dukungan, termasuk live chat, whatsapp, email, dan nomor telepon yang dapat dihubungi. Dengan itu ketika pemain mengalami masalah atau memiliki pertanyaan, NANA4D bertujuan untuk memberikan resolusi dengan cepat. Dan tim dukungan berkomitmen untuk menanggapi setiap permintaan atau keluhan dengan efisiensi dan keprofesionalan.</p> <p>Tim pelayanan pelanggan NANA4D memiliki pemahaman yang mendalam tentang kebutuhan dan keinginan pemain. NANA4D senantiasa terbuka terhadap feedback dari pemain. Evaluasi konstan terhadap layanan pelanggan membantu NANA4D untuk terus memperbaiki dan meningkatkan kualitas pelayanannya. Dalam dunia perjudian online yang dinamis, NANA4D selalu siap menghadapi perubahan. Tentunya tim pelayanan pelanggan terus memantau perkembangan industri untuk memberikan layanan yang tetap relevan dan sesuai dengan harapan pemain.&nbsp;Dengan tim yang profesional, dukungan 24 jam, dan kesigapan terhadap perubahan, NANA4D memastikan bahwa pemain merasa didukung dan dihargai setiap saat. Ayo bergabunglah dengan NANA4D dan rasakan perbedaannya dalam pelayanan pelanggan yang paling responsif di dunia perjudian online. Mungkin itu saja pembahasan saya mengenai&nbsp;main toto, penting bagi anda bergabung dengan main toto agar aman dan nyaman dalam bermain. Dan juga kelebihan lainnya seperti menyajikan permainan main toto yang adil dan transparan. Nah, tunggu apa lagi ayo gabung dan bermain di NANA4D yang memberikan pengalaman main togel paling mengesankan dan menarik.</p> <p>Link Terkait :</p> <p><strong><a href=“https://eneriknits.com/”>AGEN TOGEL 4D</a></strong></p> <p><strong><a href=“https://gagdad.com/”>SITUS TOGEL 4D</a></strong></p> <p><strong><a href=“https://carclenx.com/wp-content/togel-4d/”>NANA4D</a></strong></p> <p><strong><a href=“https://tadalafilcialisonline.com/”>NANA4D</a></strong></p> <p><strong><a href=“https://vipgirlsinpakistan.com/”>NANA4D</a></strong></p> <p><strong><a href=“https://bookofraonlinegame.com/”>SITUS TOTO</a></strong></p> <p><strong><a href=“https://langsunggas.com/situs-toto/”>SITUS TOTO</a></strong></p> <p><strong><a href=“https://nana4d-trusted.com/”>NANA4D</a></strong></p> <p><strong><a href=“https://dijitalsafahat.com/”>NANA4D</a></strong></p> <p><strong><a href=“https://nana4d-toto.com/”>NANA4D</a></strong></p> <p><strong><a href=“https://thedutifulcat.com/”>NANA4D</a></strong></p> <p><strong><a href=“https://devopsrun.com/”>BO TOGEL</a></strong></p> <p><strong><a href=“https://revz.io/-/nana4d/”>NANA4D</a></strong></p> <p><strong><a href=“https://buildingmaterialsnepal.com/-/nana4d/”>NANA4D</a></strong></p> <p><strong><a href=“https://langsunggas.com/”>NANA4D</a></strong></p> <p><strong><a href=“https://hanoufq8.com/-/nana4d/”>NANA4D</a></strong></p> <p><strong><a href=“https://ebookfree.net/wp-content/uploads/login-nana4d/”>NANA4D</a></strong></p> <p><strong><a href=“https://www.behalinternational.com/-/nana4d/”>NANA4D</a></strong></p> <p><strong><a href=“https://map-dz.com/-/situs-toto/”>SITUS TOTO</a></strong></p> <p><strong><a href=“https://map-dz.com/-/link-toto/”>SITUS TOTO</a></strong></p> <p><strong><a href=“https://pub-7b1bfc01c7034f2291d5e82de5c14f52.r2.dev/index.html”>SLOT DEMO</a></strong></p> <p><strong><a href=“https://pub-38c256fc0b60483987d4d7c2fd04d49e.r2.dev/index.html”>NANA4D</a></strong></p> <p><strong><a href=“https://roseweel.com/”>SLOT DEMO</a></strong></p> <p><strong><a href=“https://mastengslotdemo.xyz/”>SLOT DEMO</a></strong></p> <p><a href=“https://suryaaksara.umpwr.ac.id/slot-demo/”><strong>SLOT DEMO</strong></a></p> <p><a href=“https://pub-960c92f8a56a4684a6145eb538300636.r2.dev/index.html”><strong><strong>SLOT DEMO</strong></strong></a></p> <p><a href=“https://pmat.umpwr.ac.id/toto-4d/”><strong><strong>MAIN TOTO</strong></strong></a></p> <p><a href=“https://pub-a8208ffe20b64271b9482d58ed68aee7.r2.dev/mobile.html”><strong><strong>MAIN TOTO</strong></strong></a></p> <p><a href=“https://www.quantumvisionsystemreview.com/”><strong>ROKOKBET</strong></a></p>

namespaces.1708945017.txt.gz · Last modified: 2024-02-26 11:56 by 185.213.83.34

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki