plugin:autoincludeindex
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:autoincludeindex [2009-09-09 01:12] – 125.238.100.28 | plugin:autoincludeindex [2023-12-21 16:05] (current) – [Screen shots] Aleksandr | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- plugin ---- | ---- plugin ---- | ||
- | description: | + | description: |
author | author | ||
email : guanfenglin@gmail.com | email : guanfenglin@gmail.com | ||
Line 11: | Line 11: | ||
conflicts | conflicts | ||
similar | similar | ||
- | tags : | + | tags : navigation, menu, listing, index |
+ | |||
+ | downloadurl: | ||
+ | bugtracker : | ||
+ | sourcerepo : | ||
+ | donationurl: | ||
+ | |||
+ | screenshot_img: | ||
---- | ---- | ||
Line 17: | Line 24: | ||
{{http:// | {{http:// | ||
+ | |||
===== Download and Installation ===== | ===== Download and Installation ===== | ||
+ | |||
+ | Your wiki should allow include: | ||
+ | * html | ||
+ | * php code | ||
+ | |||
+ | It's in the settings of your wiki, there are 2 ways to do it: | ||
+ | - if you log in as admin, go to admin section, then configuration settings, in the editting section, tick the checkboxes for allow embeded html and php. | ||
+ | - the other way is to go to your config file[conf/ | ||
Refer to [[: | Refer to [[: | ||
- | * [[http://www.dev.entityzero.co.nz/wiki/lib/exe/fetch.php? | + | * [[https://trello.com/1/cards/5b07062ee890e2cf25802b7a/ |
- | see it in action [[http:// | + | See it in action [[http:// |
===== Screen shots ===== | ===== Screen shots ===== | ||
- | {{http://farm4.static.flickr.com/3477/3737402137_c37dc089e2.jpg?v=0}} | + | |
- | {{http://farm3.static.flickr.com/2570/3738195316_b44845c8bd.jpg?v=0}} | + | {{https://trello.com/ |
+ | |||
+ | {{https:// | ||
+ | |||
+ | ===== Bugs ===== | ||
+ | |||
+ | User reported that this plugin has problem with the latest dokuwiki snapshot dokuwiki-latest.tgz | ||
+ | |||
+ | ===== Bug fix for missing edit bar ===== | ||
+ | |||
+ | Replace your script.js with the code below and all works fine. | ||
+ | |||
+ | -- Gary Greyling | ||
+ | |||
+ | <code javascript script.js> | ||
+ | var autoincludeindexhidden = true; | ||
+ | var autoincludeindexiconid = ' | ||
+ | var autoincludeindexid = ' | ||
+ | var autoincludeindexicontop | ||
+ | var autoincludeindextop = 0; | ||
+ | var autoincludeindexscroll = 0; | ||
+ | |||
+ | function toggleautoindexmenu() | ||
+ | { | ||
+ | if (autoincludeindexhidden) | ||
+ | { | ||
+ | showautoincludeindex(autoincludeindexid, | ||
+ | | ||
+ | else | ||
+ | { | ||
+ | hideautoincludeindex(autoincludeindexid, | ||
+ | | ||
+ | } | ||
+ | |||
+ | function showautoincludeindex(id, | ||
+ | { | ||
+ | $(id).style.visibility=" | ||
+ | $(id).style.display=" | ||
+ | $(id).style.top = $(iconid).offsetTop - 25 + ' | ||
+ | $(iconid).style.right = ' | ||
+ | autoincludeindexhidden = false; | ||
+ | } | ||
+ | |||
+ | function hideautoincludeindex(id, | ||
+ | { | ||
+ | $(id).style.visibility=" | ||
+ | | ||
+ | $(iconid).style.right = ' | ||
+ | autoincludeindexhidden = true; | ||
+ | } | ||
+ | |||
+ | function floatautoincludeindex() | ||
+ | { | ||
+ | if (autoincludeindexhidden) | ||
+ | { | ||
+ | ScrollTop = document.body.scrollTop; | ||
+ | if (ScrollTop == 0) | ||
+ | { | ||
+ | if (window.pageYOffset) | ||
+ | { | ||
+ | ScrollTop = window.pageYOffset; | ||
+ | } | ||
+ | else | ||
+ | { | ||
+ | ScrollTop = (document.body.parentElement) ? document.body.parentElement.scrollTop : 0; | ||
+ | } | ||
+ | } | ||
+ | if ($(autoincludeindexiconid)) { | ||
+ | $(autoincludeindexiconid).style.top = ScrollTop + autoincludeindexicontop+' | ||
+ | } | ||
+ | | ||
+ | | ||
+ | } | ||
+ | |||
+ | function initautoincludeindex() | ||
+ | { | ||
+ | if ($(autoincludeindexiconid)) { | ||
+ | autoincludeindexicontop = $(autoincludeindexiconid).offsetTop; | ||
+ | } | ||
+ | // | ||
+ | addEvent(window, | ||
+ | } | ||
+ | |||
+ | addInitEvent(function(){ | ||
+ | initautoincludeindex(); | ||
+ | }); | ||
+ | |||
+ | </ |
plugin/autoincludeindex.1252451529.txt.gz · Last modified: 2009-09-09 01:12 by 125.238.100.28