Thank you both! :-) I'll do it that way and use resources.

/ Kent


On Thu, Apr 16, 2009 at 12:50 PM, Cserep Janos <[email protected]> wrote:
>> CoolPage.PageTitle=ApplicationName - Cool Page Title
>>
>> into your application properties file.
>>
>
>
> From an SEO point of view this approach is more versatile. I usually have
>
> CoolPage.PageTitle
> CoolPage.MetaDescription
> CoolPage.MetaKeywords
>
> all defined in properties files and added from base page. If you put your
> domain object into the page's model (if I have a ContentView page I usually
> put a DetachableContentModel into the page's default model) you can even
> have these string properties reference properties from that object if you
> pass the page's model to the StringResourceModel like this:
>
> public IModel<String> getPageTitleModel() {
>  return new StringResourceModel("ApplicationName", this,
> getDefaultModel());
> }
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to