thanks - in having to explain the problem, I found it. funny how well that works as a debugging method.

I'd added my class to rendering.pageModels in roller.properties, but not to rendering.searchModels

cheers

Ben

Allen Gilliland wrote:


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


--


Ben Avery
Software Developer
Youthnet UK

email: [EMAIL PROTECTED]
phone: 020 7288 7333
snail: 2-3 Upper Street
       London N1 0PQ

Reply via email to