Thanks for the link,.. looks very simple)).. But one more question:
If I'll compile my model and drop my jar in to lib folder can I put the class 
name here:
Global Admin only settings
Comma-separated list of custom page model classes to be loaded for this weblog

 
I found this on blog's Preferences>Settings page.
 
Thank you
Gene


----- Original Message ----
From: Dave <[EMAIL PROTECTED]>
To: [email protected]
Sent: Wednesday, November 28, 2007 12:28:01 AM
Subject: Re: What is the best way to add custom methodes

Create a custom page model object with the method(s) you wish to add.
Here are some instructions I posted earlier:

  http://markmail.org/message/jdrk5jw4tg2ynkdp

It is possible to get the Servlet API request object in a model, so
you can get headers, cookies, etc.

- Dave


On Nov 27, 2007 11:17 AM, Evgeniy Strokin <[EMAIL PROTECTED]> wrote:
> Hello,.. I have such task: Our blog has many categories and subcategories. 
> User should be able to choose some of them as default and I need to display 
> posts only from those categories.
> So I thought I'll provide a screen where user can see the list of all 
> categories and he can choose some. I'll store it in cookie. When next time 
> user will come I'll read the cookie and show posts based on the values.
> I need to submit the form with user's choice to the server (right?) and set 
> cookie. Also I need some kind of custom method which will read the cookie and 
> return me list of categories.
> What is the best way to do this?
> Any suggestions are greatly appreciated.
>
> I use Roller 3.1 so far, but I have freedom to switch to Roller 4, but since 
> it's not ready yet (I know, there is release soon,.. but I just tested RC10 
> and I still had problems there, may be just my config is wrong, may be 
> problem with the RC, but this is not a good sine anyway) may be I'd need a 
> solution for 3.1 first, and for 4.0 after..
>
> Thank you,
> Gene

Reply via email to