Not logged in. · Lost password · Register
Forum: General Help and Support Syntax and Usage RSS
links to search engine plugins
Avatar
mekineer #1
Member since Mar 2018 · 26 posts
Group memberships: Members
Show profile · Link to this post
Subject: links to search engine plugins
Use the code below in your dokuwiki pages.  You'll have to enable html in admin -> config, and possibly the plugin inlinejs?  Sorry, it was a free-for-all attempt to make it work.  I'm definitely not practicing safe hex.

The domain referenced below should be different than the one you have dokuwiki on, or, dokuwiki should not be at the root of the site, so you have a path that isn't in dokuwiki's control.

<html>
    <script type="text/javascript">
        function installSearchPlugin(pluginname) {
            window.external.AddSearchProvider(pluginname);
        }
    </script>
    <a href="#" onclick="installSearchPlugin('https://domain.tld/searchengine.xml');">Install Search</a><br>
</html>

Example: https://mekineer.com/information-technology/2019-search-en…
This post was edited 2 times, last on 2019-06-03, 20:30 by mekineer.
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-06-25, 22:42:11 (UTC +02:00)