#: Tom Counsell changed the world a bit at a time by saying on 8/29/2005 5:15 PM :#
I am not sure this is the right place to post this message, so sorry if it is not.
There is also a soks mailing list, you can join at http:// rubyforge.org/mail/?group_id=481 and a wiki about soks at http:// www.soks.org.
For the moment I will not join Soks ML but soon I will be there :-).
My first Ruby coding was directed to add support for tagging to Soks. It works in the following form:
- include anywhere in the page a line containing
tags: category1 category2 ... etc
and than these are automatically link to category pages, category pages create a backlink to the page. The category pages are managed automatically.
This is definitely possible, and shouldn't need much code.
I have already done this. What is more interesting to me is the way I did it :-).
Being the first time working with Ruby I have faced 2 problems:
1/ understanding/navagating the existing code
Always a problem. http://www.soks.org/view/HowToHackSoks may give some clues.
It was a good start. But I am talking about real working and not about the available documentation.
2/ understanding the correct way to extend the existing code
I would very pleased if somebody (maybe the authors?) would take a look at what have I done and help me understand my mistakes and correct them in the future.
Happy to help, although it may be best for you to either send me the code direct, or to the soks mailing list above.
I look forward to hearing from you,
Attached is the main addition to soks code. There are some other tweaks I have done and I am listing them here:
- removed automatic page linking (socks-view.rb#inline_soks)
- imported the attached extensions from start.rb, just before instantiating the wiki.
Being the first thing done by me in Ruby I don't expect to have the Ruby flavor, so I will be very glad to hear your comments.
thanks for your time,
ps: if you want to send the answer offline pls use the_mindstorm[at]evolva[dot]ro. many thanks
soks-model-ext.rb (4.4 KB)
On 27 Aug 2005, at 10:29, Alexandru Popescu wrote: