Not logged in. · Lost password · Register
Forum: Community dokuwiki.org RSS
Proposal to add missed feature to DokuWiKi syntax page
Avatar
AlexJ #1
Member since Mar 2010 · 6 posts · Location: US
Group memberships: Members
Show profile · Link to this post
Subject: Proposal to add missed feature to DokuWiKi syntax page
When dokuwiki syncs between different domains, http links that supposed to point to the same domain such as  [[http://domain1.com/some_staic_content.html]] will be broken.

It happens for example when used portable DokuWiKi from USB stick where domain is "localhost" then links on real hosted domain will point to a wrong place after synchronization if domain is hardcoded in [[...]].

DokuWikI has a great feature that allows to move/sync data between multiple dokuwikis without worrying about broken links
by substituting SCHEMA, DOMAIN and PORT of currently running copy of DokuWikI. 

To point to current URL one just need use following syntax:

[[this>/some_static_content.html]] 

Where "this" will be substituted with currently running instance and will point to the same URL regardless of HTTP or HTTPS, listening port or domain, so portable link [[http://localhost:8888/some_content.html]] will be substituted to real domain on primary, hosted domain automatically and all such links will be accessible regardless of domain. 

This feature is NOT described on https://www.dokuwiki.org/wiki:syntax and since that page is read-only I proposing to add there in the "Links" section information about
[[this>/some_static_content.html]]
which is not visible/searchable now neither over Dokuwiki search or Google
Avatar
andi (Administrator) #2
User title: splitbrain
Member since May 2006 · 3474 posts · Location: Berlin Germany
Group memberships: Administrators, Members
Show profile · Link to this post
The this keyword is described at https://www.dokuwiki.org/interwiki - we can not add *everything* to the syntax page.
Read this if you don't get any useful answers.
Lies dies wenn du keine hilfreichen Antworten bekommst.
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
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2019-09-23, 20:24:52 (UTC +02:00)