From: Boris Z. <bz...@2b...> - 2004-07-13 08:16:46
|
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 =A1=AEname=A1=AF mig= ht change. > > ? > > Eg: > > ? > > <de xml:lang=3D=A1=B1en=A1=B1>My name is <MODEL_VAR name></de> > > <de xml:lang=3D=A1=B1zh=A1=B1><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 =2D-=20 Boris |