Not logged in. · Lost password · Register
Forum: General Help and Support Features and Functionality RSS
need wiki with automatic linking
Avatar
cornopean #1
Member since May 2011 · 1 post
Group memberships: Members
Show profile · Link to this post
Subject: need wiki with automatic linking
I use a wiki to teach languages. 
I was wondering if docuwiki would automatically link grammatical terms to a glossary defn?  So...for instance, every time the word "noun" appears, the wiki would automatically link that term to another page with the title "noun".  Is this possible?
Avatar
turnermm (Moderator) #2
Member since Oct 2009 · 4785 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
I think you should be able to do this with my recently uploaded plugin textinsert:

            http://www.dokuwiki.org/plugin:textinsert

Create an html macro for your term:

DIR_HTML    <a href="http://192.168.0.10/wiki/doku.php?id=dir>directory</a>

Then wherever you use the word directory, instead use the macro:

#@DIR_HTML@#

You will get an internal link to the
dir
wiki page.

And if you  want the link to show up like an internal link in color, add
class="wikilink1"
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
This post was edited on 2011-05-19, 21:47 by turnermm.
Avatar
jroeterd #3
Member since Aug 2006 · 16 posts · Location: The Netherlands
Group memberships: Members
Show profile · Link to this post
Or take a look at autohotkey ...

With hotstrings you can have the word "noun" be replaced with [[noun]] to make it a link.
Personally I use this with the letter hs before. To indicate that the replace action should be executed. So hsnoun would become [[noun]] and noun just stays noun.

You only have to create a script and add ::hsnoun::[[noun]]. You can add as many replacements as you wish.

Jeroen
Avatar
dsalamos #4
Member since Jan 2015 · 3 posts
Group memberships: Members
Show profile · Link to this post
Subject: reopen question
is there no possibility to automatic search a text over some Page name and create links to them?
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: 2020-02-26, 14:59:00 (UTC +01:00)