> 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());
}

Reply via email to