Not logged in. · Lost password · Register
Forum: General Help and Support Syntax and Usage RSS
Have a page know its own @ID@
PmGeuze #1
Member since Jun 2015 · 29 posts
Group memberships: Members
Show profile · Link to this post
Subject: Have a page know its own @ID@

I would like to access each page's @ID@ address in the page.

I see that the index has a list of all pages, can I use some form of metadata to capture the page data and store it as a link in the page?

I have moved a number of pages around without the Move plugin and I need to recreate the links, which I can do with RegEx, I just need each page to know where it is currently in the dokuwiki.

Thank you for your time in answering this simple question.

Michaelsy #2
Member since Jun 2015 · 969 posts · Location: Düsseldorf, Germany
Group memberships: Members
Show profile · Link to this post
I am not sure I understood the problem correctly. But in any case, you can use the Textinsert Plugin to create a macro that enters the namespace and the ID of a page in this page.
Using the HTML option of this plugin, you can also create an HMTL link that links the page to itself.

However, this method does not put the page ID in the source wiki code. (There is only the macro call included.) If you want to do that, you have to edit the *.txt file of the page at the server level in some way. The name of this file is the page name. The location of the file in the directory tree corresponds to the location of the page in the namespace structure. (In certain a sense, these are the "metadata" of the page you wrote about. In another form they are not available again.)

Feedback welcome - Michael Sy.
By a few eurons can be fed into the code phasers of
the DokuWiki engine. Besides, Andi's posts are worth reading.
This post was edited 3 times, last on 2018-11-06, 05:08 by Michaelsy.
Samana Johann #3
Member since Jun 2018 · 174 posts · Location: Aural/Cambodia
Group memberships: Members
Show profile · Link to this post
If doing the regex locally, having copied the whole pages including directories on a workstation, my person thinks to remember that some editors are capable to include path and file-name into the single documents which that could be replaced with the online path and so on. If having found ways to do such with DWs means, such would be surely a great share.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2019-10-19, 01:56:17 (UTC +02:00)