You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@roller.apache.org by Magnus Strand <st...@hotmail.com> on 2007/08/02 15:30:06 UTC

Newbie question: custom website model

Hi!I have started using Roller 3.1 and downloaded source.I would like to know how you extend the model?I would like to add some attributes to website model.Should I add the new columns to the website table andchange pojo WebsiteData.java?Is this all I need to do to be able to access the attributes from the JSP pages withcode like ${model...}Regards,Magnus Strand
_________________________________________________________________
Sök på vilken webbsida som helst med hög säkerhet. Skaffa Windows Live Toolbar i dag -- helt gratis!
http://toolbar.live.com

Re: Newbie question: custom website model

Posted by Richard Jones <fu...@gmail.com>.
Hi Magnus,

Have a look at org.apache.roller.ui.rendering.model.PageModel

Sounds like that's what you want to extend.

Cheers,

Richard


On 02/08/07, Magnus Strand <st...@hotmail.com> wrote:
> Hi!I have started using Roller 3.1 and downloaded source.I would like to know how you extend the model?I would like to add some attributes to website model.Should I add the new columns to the website table andchange pojo WebsiteData.java?Is this all I need to do to be able to access the attributes from the JSP pages withcode like ${model...}Regards,Magnus Strand
> _________________________________________________________________
> Sök på vilken webbsida som helst med hög säkerhet. Skaffa Windows Live Toolbar i dag -- helt gratis!
> http://toolbar.live.com