How to enable a blog !!1!! >How to enable a blog !!2!! !!3!! Note: You can do this with most versions of Soks, but these instructions refer to v1-0-0+ !!4!! !!5!! >One blog !!6!! !!7!! You can create a blog of the pages a user creates using the automatic summary class. For instance, put one of these in your start.rb file: !!8!! !!9!! > !!10!! !!11!! !!12!! to include any page written by that person !!13!! !!14!! !!15!! !!16!! to include any page with the title Blog: !!17!! !!18!! !!19!! !!20!! to include any page that has Put in Tom’s Blog in the text !!21!! !!22!! !!23!! or you can do combinations, e.g. !!24!! !!25!! > !!26!! !!27!! !!28!! for pages by Tom with a title starting Blog:. !!29!! !!30!! !!31!! !!32!! for pages by Tom that mention ruby. !!33!! !!34!! !!35!! >Many blogs !!36!! !!37!! Bil Kleb !!38!! if there was a way of automatically creating such things for the users of his wiki, to avoid restarts. !!39!! !!40!! >All authors !!41!! !!42!! One way is to create a WatchPage class like this (note this will be included in the next release) that yields whenever a new author is detected. !!43!! !!44!! !!45!! !!46!! !!47!! !!48!! Then in the start.rb file put something like this: !!49!! !!50!! !!51!! !!52!! !!53!! !!54!! Which should ensure a Blog is created for each user. !!55!! !!56!! >Some people !!57!! !!58!! Cool!, said Bil Kleb, but, I don’t think we want a blog created for every author, just those that somehow request one along the lines of !!59!! to have a blog sign-up page. !!60!! !!61!! One way is to create a class like this (note this will be included in the next release) that watches a particular page. !!62!! !!63!! !!64!! !!65!! !!66!! !!67!! Then in the start.rb file put something likes this: !!68!! !!69!! !!70!! !!71!! !!72!! !!73!! Which will create a blog for each person listed on the page “People who want Blogs”, with one name per page. !!74!! !!75!! An obvious bug with this is that there is no way to delete AutomaticSummarys while the wiki is running. !!76!! !!77!! !!78!! !!79!! One problem with having it automatically tied to the author is that because we don’t have our wiki access controlled with login accounts, people sign in with various “handles”. For example, on this wiki I believe I’ve editted as at least Bil” and Bil Kleb”. —Bil !!80!! !!81!! Well, there has to be a way of uniquely identifying that you want the page to be in your blog. Which means either using a particular author, or a particular word in the title, or a particular word on the page. All of which would require people to be consistent in some fashion... Or perhaps it could be a feature, different sign-in, different blog, perfect for those with !!82!! tamc !!83!!
Edit this page or watch for changes using RSS.