Not logged in. · Lost password · Register
Forum: General Help and Support Syntax and Usage RSS
Create Link to Backlinks
Avatar
umadu #1
Member since Jan 2018 · 4 posts
Group memberships: Members
Show profile · Link to this post
Subject: Create Link to Backlinks
Hello,

With the standard toolbox there is a Link you can click to show all pages, that link to the current page. I searched and tried and I cannot create a link that does the same thing.
Is there a possibilty to create a link that shows me the backlinks for the current page I was on when I clicked it on the sidebar*?


Greetings

  • (I had to deactivate the standard toolbox and use a sidebar which I have filled with an indexmenu and custom links)
Avatar
Juergen_aus_Zuendorf #2
Member since Apr 2012 · 188 posts
Group memberships: Members
Show profile · Link to this post
What's about the plugin https://www.dokuwiki.org/plugin:backlinks2 ?
Avatar
umadu #3
Member since Jan 2018 · 4 posts
Group memberships: Members
Show profile · Link to this post
Ty for the answer but sadly no, that does not solve my issue.
Avatar
turnermm (Moderator) #4
Member since Oct 2009 · 4399 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
<?php  echo html_wikilink("$ID?do=backlink",'backlinks'); ?>
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Avatar
Big Mac #5
Member since Feb 2018 · 2 posts · Location: London, UK
Group memberships: Members
Show profile · Link to this post
In reply to post #1
Quote by umadu on 2018-01-11, 13:16:
Hello,

With the standard toolbox there is a Link you can click to show all pages, that link to the current page. I searched and tried and I cannot create a link that does the same thing.
Is there a possibilty to create a link that shows me the backlinks for the current page I was on when I clicked it on the sidebar*?


Greetings

  • (I had to deactivate the standard toolbox and use a sidebar which I have filled with an indexmenu and custom links)

I tried using this and found that I got "?do=backlink" added to the page URL in the address bar.

I tried right clicking on the backlinks button and opening in another tab and I got a working page that had the above on the end.

So, it looks like you just need to use the standard URL and add "?do=backlink" to see the backlinks instead of the page itself. (And if you get used to right-clicking the backlinks button and opening the link in a new tab, you can grab the appropriate link, without needing to remember exactly what I told you.)
David "Big Mac" Shepheard
DokuWiki editor at The Book-House on The Piazza
Avatar
Michaelsy #6
Member since Jun 2015 · 569 posts · Location: Düsseldorf, Germany
Group memberships: Members
Show profile · Link to this post
In reply to post #1
A little bit late but maybe this answer will help other users:

I think the Actionlink plugin is intended for this purpose:
https://www.dokuwiki.org/plugin:actionlink
By Patreon.com a few eurons can be fed into the code phasers of
the DokuWiki engine. Besides, Andi's posts are worth reading.
Avatar
turnermm (Moderator) #7
Member since Oct 2009 · 4399 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
You can add the backlink query string to any page in dokuwiki:

[[page?do=backlink|]]

The php code in my previous post is for entering into the template itself. And you can do either of these with any action.
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Avatar
Michaelsy #8
Member since Jun 2015 · 569 posts · Location: Düsseldorf, Germany
Group memberships: Members
Show profile · Link to this post
[[page?do=backlink|]]

Your method does not work in the sidebar because you always have to insert a specific page id?

I think that your approach is particularly suitable for the backlinks of a different page.
By Patreon.com a few eurons can be fed into the code phasers of
the DokuWiki engine. Besides, Andi's posts are worth reading.
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: 2018-12-16, 07:04:11 (UTC +01:00)