On Sat, 3 Sep 2005 16:43:27 +0200 Tilman Sauerbeck <[EMAIL PROTECTED]> wrote:
> On Fri, 2 Sep 2005 16:14:04 -0500 William Morgan <[EMAIL PROTECTED]> wrote: > > > You can store all your entries in directly in htdocs/ and simply add a > > tags: field to each. Then there's no concept of a primary tag / section. > > > > Is that the behavior you wanted? I'm not that familiar with typo. > > Yes, together with what why said (overriding Hobix::BaseContent.link_format), > that would work. > > However, it's not possible to create entries without a category: > [...] I think that error occured because I didn't create the entries/ directory yet. So now I can create entries without giving the section. After this, I stumbled on the following problems: I'm using a custom entry class for my project pages (see http://code-monkey.de/ for my current setup), called Hobix::ProjectPage. I put its implementation in lib/local.rb, and it looks like this: class ProjectPage < BaseEntry _ :title, :req => true, :edit_as => :text, :search => :fulltext _ :content, :req => true, :edit_as => :textarea, :search => :fulltext, :text_processor => true no_implicit_tags def content self.class.text_processor.new(@content) end end I added a couple of entries (put them just below entries/, no section). When I wanted to upgen the blog, I got the same "method to_html not found for String..." errors that Johan Sorensen reported some days ago. I fixed this my implementing ProjectPage#content, as you can see above. I had a look at the code and I noticed that Hobix only dealt with IndexEntry objects when it created the monthly index pages. This raises the question, do I have to create my own IndexEntry class as well for my ProjectPage entries? If so, how do I tell Hobix to use my own IndexEntry class instead of the original one? Also, how do I make Hobix *not* include my ProjectPage entries in the monthly/weekly/whatever summaries, if I don't use sections? AFAIK currently you have to set the "ignore" flag in the section to false to prevent this. Is there any way to accomplish the same without sections? Thanks, Tilman -- learn to quote: http://www.netmeister.org/news/learn2quote.html _______________________________________________ Hobix-is-the-way mailing list [email protected] http://rubyforge.org/mailman/listinfo/hobix-is-the-way
