Re: Markup inheritance with child pages setting title in the form 'BasePage.title + - + ChildPage.title'

2009-04-16 Thread Janos Cserep
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

Re: Markup inheritance with child pages setting title in the form 'BasePage.title + - + ChildPage.title'

2009-04-16 Thread Cserep Janos
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.

Markup inheritance with child pages setting title in the form 'BasePage.title + - + ChildPage.title'

2009-04-16 Thread Kent Larsson
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

Re: Markup inheritance with child pages setting title in the form 'BasePage.title + - + ChildPage.title'

2009-04-16 Thread Kent Larsson
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