1. Set an instance variable in the base page called basePageName
You don't need a variable - all you need is a getter:
public IModelString getPageTitleModel() {
return new Model(ApplicationName);
}
2. Use a Label to set the title in the base page
Exactly, like this:
add(new
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.
Hi,
I use markup inheritance and this example was quite informative
http://wicket.apache.org/examplemarkupinheritance.html .
One thing I find missing is how to set the title from the child pages?
Ideally I would like page titles like:
ApplicationName - Cool part of the application
Thank you both! :-) I'll do it that way and use resources.
/ Kent
On Thu, Apr 16, 2009 at 12:50 PM, Cserep Janos cser...@szeretgom.hu wrote:
CoolPage.PageTitle=ApplicationName - Cool Page Title
into your application properties file.
From an SEO point of view this approach is more