From: Sean L. <se...@ch...> - 2004-07-13 12:56:12
|
You are answer to all of my problems! Enlightenment! -----Original Message----- From: pag...@li... [mailto:pag...@li...] On Behalf Of Boris Zentner Sent: Tuesday, July 13, 2004 1:16 AM To: pag...@li... Subject: Re: [Pagekit-users] using HTML in Content.xml Hi Sean, Am Dienstag 13 Juli 2004 08:54 schrieb Sean Lee: > Hello All, > > ? > > First question is, is there any way to use HTML inside content xml = file? > > ? > > Eg: > > <de xml:lang=3D"en"><strong>G</strong>erman</de> > > <en xml:lang=3D"en">E<strong>n</strong>glish</en> > Yes,=20 <de xml:lang=3D"en"><![CDATA[<strong>G</strong>erman]]></de> <en xml:lang=3D"en"><![CDATA[E<strong>n</strong>glish]]></en> > ? > > Second question is, is it possible to specify <MODEL_VAR name> in = content > xml file instead of in tmpl file? > Yes, just the same way was for html data. > I needed this because in some languages, position of = =A2=AE(r)name=A2=AE? might change. > > ? > > Eg: > > ? > > <de xml:lang=3D=A2=AE=A1=BEen=A2=AE=A1=BE>My name is <MODEL_VAR = name></de> > > <de xml:lang=3D=A2=AE=A1=BEzh=A2=AE=A1=BE><MODEL_VAR name> is my = name</de> > > ? Another way might be to use different tmpl files and chooce them by the=20 language. For example if your page is called "apage" sub apage { # do whatever .... if ( $model->pkit_lang eq 'xy' ) { $model->pkit_internal_redirect('extra_template_for_xy'); } } > > Thanks! > > Sean --=20 Boris ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 -=20 digital self defense, top technical experts, no vendor pitches,=20 unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ Pagekit-users mailing list Pag...@li... https://lists.sourceforge.net/lists/listinfo/pagekit-users --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.719 / Virus Database: 475 - Release Date: 12/07/2004 =20 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.719 / Virus Database: 475 - Release Date: 12/07/2004 =20 |