Ben Avery wrote:
hi,
I have added the class org.apache.roller.ui.rendering.model.CustomModel
so I can have custom content without hacking the existing Roller code. I
also use the Velocity library custom.vm for velocity code.
I have a velocity macro showMonthCalendar, which calls a method in
CustomModel to generate a calendar as list of months, from the first
entry to the current time.
This works fine when the blog pages are displayed, but when the search
is used, my Weblog template calls the velocity macro, but the call to
the Java method doesn't reach the Java code, as debugging output has shown.
Why would this be the case? Do I need to do some extra work when using
the search action rather than the standard blog page rendering actions?
how did you add your custom model so that it is available to your weblog?
-- Allen
thanks
Ben