login | register
Sat 22 of Nov, 2008 (20:24 UTC)

bitweaver - Web Application Framework and CMS

Web Application Framework and CMS

     
Thread UnlockedNon Sticky Thread

DataPluginSort

kinderlehrer
Avatar
Joined: 20 Jun 2008
Reply to this PostReply with Quote to this Post

DataPluginSort

Posted: Tue 07 of Oct, 2008 (01:23 UTC),
Firstly this is (a little like) what I see in my install of BW in the Wiki Help area but without the fancy scrolling box:

^__Parameter Syntax:__ {SORT(key=>value)} ||__::key::__ | __::value::__ | __::Comments::__ ::sort:: | ::direction:: | will sort the lines in the desired direction. Choices are: __asc / desc / reverse / shuffle__ The default is __asc__.||^^__Example:__ {SORT(sort=>shuffle)}Line 1 / Line 2 / Line 3{SORT}^^__Note:__ Plugin's are __case sensitive__. The Name of the plugin __MUST__ be UPPERCASE. The Key(s) are __always__ lowercase. Some Values are mixed-case but most require lowercase. When in doubt - look at the Example.^ 


Is this rendering properly? If so, I have a lot of decoding to learn about!

Secondly can I use this effectively (rather than a table) to sort a list of website names followed on the same line by their url link?

I have tried successfully to sort a list of website names (yay!), but when I add the linked url to the name on the same line it prints the code for the url.
xing
Joined: 07 Mar 2004
Reply to this PostReply with Quote to this Post

Re: DataPluginSort

Posted: Thu 09 of Oct, 2008 (08:10 UTC),
that was the old form of tables and it hasn't been updated yet.

you could look at pluigns with a working help and convert it to give us a hand. it's a very simple job and you can find all the files you need in liberty/plugins/

x
kinderlehrer
Avatar
Joined: 20 Jun 2008
Reply to this PostReply with Quote to this Post

Re: DataPluginSort

Posted: Fri 10 of Oct, 2008 (03:38 UTC),
Ok, rose to the challenge and sat down to fumble my way through making head and tail of php code.

Five hours later and its in the pastebin for your consideration.

Hope its acceptable biggrin
xing
Joined: 07 Mar 2004
Reply to this PostReply with Quote to this Post

Re: DataPluginSort

Posted: Thu 16 of Oct, 2008 (06:34 UTC),
thanks for the help. i've incorporated your changes and rewritten the plugin to make it work and streamlined the code to speed it up a bit.

x