Frederick Ros wrote : | Ben Giddings wrote : | | This is Hobix CVS, and I updated it today. I guess it must be what | | Frederick said, that I have to have individual section areas, if I | | don't section.html.quick-summary overrides the news/index.html.quick- | | summary that I created. | | | One solution to this problem could be to add some 'exclude_sections' | variable for the skel_section methods ... | | What others think about that ?
Alternatively, Ben, you could do something like this: in your blog
directory, create a lib/misc.rb, containing:
module Hobix
class Weblog
alias_method :skel_section_orig, :skel_section
def skel_section( path_storage )
skel_section_orig( path_storage ) do |h|
section = h[:page].id.split(/\//).shift
yield h unless EXCLUDED_SECTIONS.member?(section)
end
end
end
end
Hobix::EXCLUDED_SECTIONS=['news']
and in your hobix.yaml, in the 'requires' section, add lib/misc
It should works (at least it work on my test blog)
--
Frederick Ros aka Sleeper -- [EMAIL PROTECTED]
"...Deep Hack Mode--that mysterious and frightening state of
consciousness where Mortal Users fear to tread."
(By Matt Welsh)
pgpYOjSIedwwA.pgp
Description: PGP signature
_______________________________________________ Hobix-is-the-way mailing list [email protected] http://rubyforge.org/mailman/listinfo/hobix-is-the-way
