You are currently looking at Flamebate, our community forums. Players can discuss the game here, strategize, and role play as their characters.
You need to be logged in to post and to see the uncensored versions of these forums.
Viewing a Post
|
MC Banhammer Posted:
The “sorttable” module is just a javascript file. To ‘install’ it he just needs to copy so it is in the same local folder as the wiki pages, and then add an javascript import line for the code at the top of the wiki pages and possibly add a section to the CSS page to define a new clbum called ‘sortable’ which extends the normal table attributes or overrides the normal attributes depending on if he wants the sorttables to look similar or dissimilar to the normal tables. (The code works even without the changes to the CSS.)
All of the code in the sorttable is run on the client side, so no extra processing or page calls for the server. There should not be any impact on other tables in the wiki, as they only have the added functionality if the table is specifically written to use it. (ie clbum=”sortable”
Since all this configuration is via a javascript import, and all the functionality is run on the client side, it should be very easy to integrate no matter what server-side scripting language he is using.
I took a quick look at the ROR dogreat timesentation, and he should only have to put: <script src="sorttable.js"></script>in the RoR code that generates the HEAD portion of the html for the wiki pages, and then do any tweaks to the CSS he wants.
Then using it on the wiki, you would just specify the clbum of your table as a sorttable by: {| clbum="sortable" |
||||||
Posted On: 10/24/2008 10:16AM | View Eglath's Profile | # |