Hello Check official user guide page 121!
http://wicket.apache.org/guide/guide/single.pdf On Tue, Mar 4, 2014 at 8:19 AM, - <[email protected]> wrote: > On Monday 03 March 2014 10:05:55 Stijn de Witt wrote: > > Have a look at the .html file corresponding to your Page class. You > should be able to just add it there. > > Sorry, I am newbe but not so stupid! > I did it, my html file already have meta tags for facebook, but i want > change content in the correspond page class. > I want use wicket to make dinamic page, not simple static html pages. > For examples now I have a link to og:image that is always the same, but I > want change it dinamically. > It is similar to tag <title> in the header, you can set it in the html as > static, of manage it with wicket dinamically > as in this example: > > html page: > .... > <head> > <title wicket:id="pageTitle">Login Page</title> > <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" > /> > <meta name="viewport" content="width=device-width" /> > </head> > ..... > java class page: > > @Override > protected void onInitialize() { > super.onInitialize(); > Label pageTitle = new Label("pageTitle", "Login Page"); > this.add(pageTitle); > } > > I didn't test it, I just read it on > http://apache-wicket.1842946.n4.nabble.com/How-to-set-the-page-title-td4662372.html > > > > > -Stijn > > > > > > -----Original Message----- > > From: - [mailto:[email protected]] > > Sent: zondag 2 maart 2014 16:01 > > To: [email protected] > > Subject: How to set meta tags prroperty for facebook and Open Graph? > > > > I need to set meta tag property as I want for facebook and OpenGraph > with wicket. > > > > <meta property="fb:app_id" content="117243945141208" /> > > <meta property="og:site_name" content="site.com" /> > ><meta property="og:type" content="website" /> > ><meta property="og:title" content="title variable" /> > ><meta property="og:url" content="http://www.site.com/......" /> > > <meta property="og:description" content="Description variable" /> > ><meta property="og:image" content="http://www.site.com/images/...." /> > > > > An example code is welcomed because I am a newbie. Thanks. > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [email protected] > > For additional commands, e-mail: [email protected] > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [email protected] > > For additional commands, e-mail: [email protected] > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- -----------------------------------------------------------------------> We do this not because it is easy. We do this because it is hard. -----------------------------------------------------------------------> ShengChe Hsiao -----------------------------------------------------------------------> [email protected] [email protected] -----------------------------------------------------------------------> VoIP : 070-910-2450 ----------------------------------------------------------------------->
