Difference between revisions of "Talk:Wiklet example"
(CSS) |
|||
Line 16: | Line 16: | ||
</php> | </php> | ||
This reads the raw wiki-text version of an article with no caching and sets its MIME type to CSS. I don't think the main CSS is good for wiklets because it may affect layout incorrectly, but I can't quite remember. --[[User:Nad|Nad]] 09:30, 8 September 2007 (NZST) | This reads the raw wiki-text version of an article with no caching and sets its MIME type to CSS. I don't think the main CSS is good for wiklets because it may affect layout incorrectly, but I can't quite remember. --[[User:Nad|Nad]] 09:30, 8 September 2007 (NZST) | ||
+ | |||
+ | :Thanks Nad, that did the trick :) |
Revision as of 00:23, 8 September 2007
Trying to get this to work on my site but I can't get the path right to the .js location. I dropped dragiframe.js in /extensions along with Wiklets.php. I changed permissions to 755 on the .js as well. Also added these lines to localsettings.php
include("$IP/extensions/Wiklets.php");
$wgWikletsLoadJS = "/extensions/dragiframe.js";
My test page is here. Would you mind steering me in the right direction?
- All your js etc is loaded ok, it seems that currently it can't work with external urls, and has to be a local wiki article - I edited you test page and it's working, but a bit shakey - also you need to set up a minimal css for wiklets - ours is wiklets.css and set that css in $wgWikletsUseCss. This extension hasn't been developed in a year or so and is very experimental currently. --Nad 17:39, 7 September 2007 (NZST)
- Got it. Thanks for the quick response!
- Sorry to bother you again, but would I put the call to the .css file in localsettings.php? I added
- $wgWikletsUseCss = "/skins/monobook/main.css";
- to test, but it's not being seen...
- Sorry to bother you again, but would I put the call to the .css file in localsettings.php? I added
- Got it. Thanks for the quick response!
Sorry, the name of the variable should be $wgWikletsUseCSS (capitals for CSS), you can refer to a file, or create one in-wiki, for example, our LocalSettings line is: <php> $wgWikletsUseCSS = '/wiki/index.php?title=Wiklets.css&action=raw&smaxage=0&ctype=css'; </php> This reads the raw wiki-text version of an article with no caching and sets its MIME type to CSS. I don't think the main CSS is good for wiklets because it may affect layout incorrectly, but I can't quite remember. --Nad 09:30, 8 September 2007 (NZST)
- Thanks Nad, that did the trick :)