[opencms-dev] How to make multilingual site

Ajay Tyagi atyagi at cdac.in
Tue Aug 29 18:47:56 CEST 2006


Hello Everybody,
 I want to know weather OpenCms support Hindi(indian language) or not. If it
does not support what i have to do sothat i can also develop the website in
hindi laguage and many more indian languages. I dont want to convert the
worksapace into hindi. I just want to make the website in many indian
laguages.
Thanks in advance!

Ajay Tyagi
+919346744401

-----Original Message-----
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org]On Behalf Of
opencms-dev-request at opencms.org
Sent: Monday, August 28, 2006 3:02 AM
To: opencms-dev at opencms.org
Subject: opencms-dev Digest, Vol 108, Issue 1


Send opencms-dev mailing list submissions to
	opencms-dev at opencms.org

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.opencms.org/mailman/listinfo/opencms-dev
or, via email, send a message with subject or body 'help' to
	opencms-dev-request at opencms.org

You can reach the person managing the list at
	opencms-dev-owner at opencms.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of opencms-dev digest..."


Today's Topics:

   1. How to loop inside an XmlContent using jsp? (Joe Lam)
   2. Re: build-in escape-html taglib? (Claus Priisholm)
   3. AW: [opencms-dev] Clustering Opencms 6.2.2 (Manuel Wallnoefer)
   4. Re: AW: [opencms-dev] Clustering Opencms 6.2.2
      (Christian Steinert)
   5. AW: AW: [opencms-dev] Clustering Opencms 6.2.2 (Manuel Wallnoefer)
   6. Re: AW: AW: [opencms-dev] Clustering Opencms 6.2.2
      (Christian Steinert)
   7. AW: [opencms-dev] Clustering Opencms 6.2.2 (christian meyer)
   8. RE: How to loop inside an XmlContent using jsp?
      (Carl Alex Friis Nielsen)
   9. "Cleanup HTML Code" - additional cleaning (Christian Steinert)
  10. how to insert flash in html file. (=??B?1cXK98bC?=)


----------------------------------------------------------------------

Message: 1
Date: Sun, 27 Aug 2006 19:42:17 +0800
From: Joe Lam <joe.lam at moni-media.net>
Subject: [opencms-dev] How to loop inside an XmlContent using jsp?
To: opencms-dev at opencms.org
Message-ID: <44F18519.70309 at moni-media.net>
Content-Type: text/plain; charset="iso-8859-1"

I am trying to load xml content via jsp rather than via
<cms:contentload/> tag.
I guess using jsp to read xml content should make things easier.

my codes are like these:

    CmsResource cmsr = cmso.readResource(path, CmsResourceFilter.ALL);
    CmsXmlContent content = CmsXmlContentFactory.unmarshal(cmso,  cmsr,
    request);
    String title = content.getStringValue(cmso, "Title", myLocale);


I'm OK to read the top level element but I got problem to loop inside
the nested type.
If I want the *Style *element inside the nested type *SubArticle*, I
could only do it like this.

    int subArticleCount=content.getIndexCount("SubArticle",myLocale);
    for(int i=0;i<subArticleCount;i++){
      String Style = content.getStringValue(cmso,
    "SubArticle["+(i+1)+"]/Style", myLocale);
    }

This is obvious a bad way to get inner value like this. Anyone wants how
to "step into" the nested type, such that I could do something like

    currentSubArticle.getStringValue(cmso, "Style", myLocale);


Thank you very much

Cheers
Joe

-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.opencms.org/pipermail/opencms-dev/attachments/20060827/e075db0e
/attachment-0001.html

------------------------------

Message: 2
Date: Sun, 27 Aug 2006 16:12:54 +0200
From: Claus Priisholm <cpr at codedroids.com>
Subject: Re: [opencms-dev] build-in escape-html taglib?
To: The OpenCms mailing list <opencms-dev at opencms.org>
Message-ID: <44F1A866.60205 at codedroids.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Have a look at http://jakarta.apache.org/commons/lang/userguide.html -
StringEscapeUtils - AFAIK there is no corresponding taglib for the it
though.

Joe Lam wrote:
> Hi guys,
>
> Are there any build-in escape-html tag
> (http://www.opencms.org/taglib/cms) in opencms?
> e.g. <cms:contentshow element="Title" /> I wanna escape the title text.
> do u know there is any tag for that?
>
> Thanks
>
> Joe
>
>
> ------------------------------------------------------------------------
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev

--
Claus Priisholm, CodeDroids ApS
Phone: +45 48 22 46 46
cpr (you know what) codedroids.com - http://www.codedroids.com
cpr (you know what) interlet.dk - http://www.interlet.dk
--
Javadocs and other OpenCms stuff:
http://www.codedroids.com/community/opencms

------------------------------

Message: 3
Date: Sun, 27 Aug 2006 17:30:51 +0200
From: "Manuel Wallnoefer" <manuel.wallnoefer at msk-informatik.at>
Subject: AW: [opencms-dev] Clustering Opencms 6.2.2
To: "'The OpenCms mailing list'" <opencms-dev at opencms.org>
Message-ID: <E1GHMb8-00047b-0k at smartmx-17.inode.at>
Content-Type: text/plain;	charset="iso-8859-1"

Hi,

no it doesn't solve the problem if i press the purge cache button !

Does anybody know how i can set a timeout for every page in the cache ?

I tried it to write timeout=10 in the cache property of every page but this
doesnt work !

Is there any possibility to write cache directives in the template header or
something like that ???

~manuel




-----Urspr|ngliche Nachricht-----
Von: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] Im Auftrag von Joe Desbonnet
Gesendet: Samstag, 26. August 2006 13:28
An: The OpenCms mailing list
Betreff: Re: [opencms-dev] Clustering Opencms 6.2.2

If you go to the administration screen, choose FlexCache and press the
purge cache button, does it solve the problem?

If so it may be possible allow remote triggering of the purge cache
mechanism. Of course this would temporarily place extra load on the
servers while the pages are regenerated.

Joe.



On 8/26/06, Manuel Wallnoefer <manuel.wallnoefer at msk-informatik.at> wrote:
> Hi Cayetano,
>
> thx for your help !
>
> But i don't work with static export, and i have found the "real" problem
> right now.
>
> The "real" problem is the flex Cache.
>
> Because when i restart all my tomcat instances all of them are up to date
!
>
> And i tried to enable the flex cache in the opencms-system.xml and then it
> works fine!
>
> But the problem is that the site where i use the cluster is under heavy
load
> and i think when i turn off the flex cache , ill get a bad performance !
>
>
> I tried to stet the property cache of each site to timeout=20 to reload
the
> cache every 20 minutes, but it doesn't work !!
>
> Can anybody help me out !!
>
> Thx !
>
> ~manuel
>
>
>
>
>
> -----Urspr|ngliche Nachricht-----
> Von: opencms-dev-bounces at opencms.org
> [mailto:opencms-dev-bounces at opencms.org] Im Auftrag von Cayetano
> Gesendet: Samstag, 26. August 2006 10:33
> An: The OpenCms mailing list
> Betreff: Re: [opencms-dev] Clustering Opencms 6.2.2
>
> >
> > But if i log in to the workplace and do sone changes to one file and
> publish
> > the file, the changes are only visible on that instance where i logged
> into
> > the workplace.
> >
> > The change is saved in the db because when i log into the workplace on
> > another instance i can see it in the backoffice view!
> >
> > Then i must touch the file and publish it again, and now on the second
> > instance i can see the change !
> >
> > So i had to do this for every instance, to see the change all the time !
> >
> > What it wrong with my clustered installation.
> >
>
> Nothing, probably the problem is about static export,which it's only
> executed on the instance where you created the content and then you
> have to "export" on every instance, a solution for this could be used
> the scheduled job: org.opencms.scheduler.jobs.CmsStaticExportJob to
> force a static export every XX minutes (which is a bit waste of
> resources) or maybe i think on a webservices api on every instance to
> synchronize the static export when a content is created. I suppose
> that the OCEE solves the synchronization problem.
>
> Hope that helps
> --
> Cayetano
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
>

_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/mailman/listinfo/opencms-dev


------------------------------

Message: 4
Date: Sun, 27 Aug 2006 18:18:24 +0200
From: Christian Steinert <christian_steinert at web.de>
Subject: Re: AW: [opencms-dev] Clustering Opencms 6.2.2
To: The OpenCms mailing list <opencms-dev at opencms.org>
Message-ID: <44F1C5D0.2050007 at web.de>
Content-Type: text/plain; charset="iso-8859-1"

Manuel Wallnoefer schrieb:
> Hi,
>
> no it doesn't solve the problem if i press the purge cache button !
>
> Does anybody know how i can set a timeout for every page in the cache ?
>
> I tried it to write timeout=10 in the cache property of every page but
this
> doesnt work !
>
> Is there any possibility to write cache directives in the template header
or
> something like that ???
>
> ~manuel
>
>
Have you tried setting the cache properties of your JSP templates?
I have set the cache properties there and not for my pages.

I haven't worked with timeout, though.

Christian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3269 bytes
Desc: S/MIME Cryptographic Signature
Url :
http://lists.opencms.org/pipermail/opencms-dev/attachments/20060827/5a2265e2
/smime-0001.bin

------------------------------

Message: 5
Date: Sun, 27 Aug 2006 19:29:54 +0200
From: "Manuel Wallnoefer" <manuel.wallnoefer at msk-informatik.at>
Subject: AW: AW: [opencms-dev] Clustering Opencms 6.2.2
To: "'The OpenCms mailing list'" <opencms-dev at opencms.org>
Message-ID: <mailman.0.1156759202.16346.opencms-dev at opencms.org>
Content-Type: text/plain;	charset="iso-8859-1"

Hi,

yes i tried setting the cache properties of the jsp templates.

The behavior is very confusing when i set the cache property in the template
to "timeout=1".

First time i open a page with this template i get the right site and the the
whole time til the timeout is over i get the same page content for every
site. This means the navigation an all other elemts change, but the content
doesn't  !!!

Does anybody know what i did wrong ?

Thx for help !!



-----Urspr|ngliche Nachricht-----
Von: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] Im Auftrag von Christian Steinert
Gesendet: Sonntag, 27. August 2006 18:18
An: The OpenCms mailing list
Betreff: Re: AW: [opencms-dev] Clustering Opencms 6.2.2

Manuel Wallnoefer schrieb:
> Hi,
>
> no it doesn't solve the problem if i press the purge cache button !
>
> Does anybody know how i can set a timeout for every page in the cache ?
>
> I tried it to write timeout=10 in the cache property of every page but
this
> doesnt work !
>
> Is there any possibility to write cache directives in the template header
or
> something like that ???
>
> ~manuel
>
>
Have you tried setting the cache properties of your JSP templates?
I have set the cache properties there and not for my pages.

I haven't worked with timeout, though.

Christian


------------------------------

Message: 6
Date: Sun, 27 Aug 2006 23:02:56 +0200
From: Christian Steinert <christian_steinert at web.de>
Subject: Re: AW: AW: [opencms-dev] Clustering Opencms 6.2.2
To: The OpenCms mailing list <opencms-dev at opencms.org>
Message-ID: <44F20880.9020203 at web.de>
Content-Type: text/plain; charset="iso-8859-1"

Manuel Wallnoefer schrieb:
> Hi,
>
> yes i tried setting the cache properties of the jsp templates.
>
> The behavior is very confusing when i set the cache property in the
template
> to "timeout=1".
>
> First time i open a page with this template i get the right site and the
the
> whole time til the timeout is over i get the same page content for every
> site. This means the navigation an all other elemts change, but the
content
> doesn't  !!!
>
But couldn't you then enable uri-based caching with timeout for your
templates and disable caching for your pages?
I mean - the behavior you describe sounds very confusing, but maybe by
just caching template-output you could at least be a work around that...

Christian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3269 bytes
Desc: S/MIME Cryptographic Signature
Url :
http://lists.opencms.org/pipermail/opencms-dev/attachments/20060827/efdb16ef
/smime-0001.bin

------------------------------

Message: 7
Date: Mon, 28 Aug 2006 07:58:57 +0200
From: "christian meyer" <christian.meyer at virtual-identity.com>
Subject: AW: [opencms-dev] Clustering Opencms 6.2.2
To: "The OpenCms mailing list" <opencms-dev at opencms.org>
Message-ID:
	<5BB0C5BEFECA11468B40FB51F7856E23076672 at MAIL1.virtual-identity.net>
Content-Type: text/plain;	charset="iso-8859-1"

Hi!

I hope i've understand you correctly. You have different Tomcat instances
(maybe on different machines), without the Alkacon-Cluster-Component or
maybe another Cluster component?
If you press the "Clear Cache" Button or if you publish some stuff an event
will fired clearing the local cache. This means in general the different
Opencms-Instances doesn't know each other.
If you want to distribute an event to other system you've to add an
Event-Listener listening to the publish event, sending this event to another
CMS-Instance (e.g. via HTTP calling a special target page) and fire this
event as a local event on the other machine (->OpenCms.fireEvent(iEventType)
have a look on the API for more details).

Hope this will help a bit...

Kind Regards


Christian Meyer







-----Urspr|ngliche Nachricht-----
Von: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] Im Auftrag von Manuel Wallnoefer
Gesendet: Sonntag, 27. August 2006 17:31
An: 'The OpenCms mailing list'
Betreff: AW: [opencms-dev] Clustering Opencms 6.2.2


Hi,

no it doesn't solve the problem if i press the purge cache button !

Does anybody know how i can set a timeout for every page in the cache ?

I tried it to write timeout=10 in the cache property of every page but this
doesnt work !

Is there any possibility to write cache directives in the template header or
something like that ???

~manuel




-----Urspr|ngliche Nachricht-----
Von: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] Im Auftrag von Joe Desbonnet
Gesendet: Samstag, 26. August 2006 13:28
An: The OpenCms mailing list
Betreff: Re: [opencms-dev] Clustering Opencms 6.2.2

If you go to the administration screen, choose FlexCache and press the purge
cache button, does it solve the problem?

If so it may be possible allow remote triggering of the purge cache
mechanism. Of course this would temporarily place extra load on the servers
while the pages are regenerated.

Joe.



On 8/26/06, Manuel Wallnoefer <manuel.wallnoefer at msk-informatik.at> wrote:
> Hi Cayetano,
>
> thx for your help !
>
> But i don't work with static export, and i have found the "real"
> problem right now.
>
> The "real" problem is the flex Cache.
>
> Because when i restart all my tomcat instances all of them are up to
> date
!
>
> And i tried to enable the flex cache in the opencms-system.xml and
> then it works fine!
>
> But the problem is that the site where i use the cluster is under
> heavy
load
> and i think when i turn off the flex cache , ill get a bad performance
> !
>
>
> I tried to stet the property cache of each site to timeout=20 to
> reload
the
> cache every 20 minutes, but it doesn't work !!
>
> Can anybody help me out !!
>
> Thx !
>
> ~manuel
>
>
>
>
>
> -----Urspr|ngliche Nachricht-----
> Von: opencms-dev-bounces at opencms.org
> [mailto:opencms-dev-bounces at opencms.org] Im Auftrag von Cayetano
> Gesendet: Samstag, 26. August 2006 10:33
> An: The OpenCms mailing list
> Betreff: Re: [opencms-dev] Clustering Opencms 6.2.2
>
> >
> > But if i log in to the workplace and do sone changes to one file and
> publish
> > the file, the changes are only visible on that instance where i
> > logged
> into
> > the workplace.
> >
> > The change is saved in the db because when i log into the workplace
> > on another instance i can see it in the backoffice view!
> >
> > Then i must touch the file and publish it again, and now on the
> > second instance i can see the change !
> >
> > So i had to do this for every instance, to see the change all the
> > time !
> >
> > What it wrong with my clustered installation.
> >
>
> Nothing, probably the problem is about static export,which it's only
> executed on the instance where you created the content and then you
> have to "export" on every instance, a solution for this could be used
> the scheduled job: org.opencms.scheduler.jobs.CmsStaticExportJob to
> force a static export every XX minutes (which is a bit waste of
> resources) or maybe i think on a webservices api on every instance to
> synchronize the static export when a content is created. I suppose
> that the OCEE solves the synchronization problem.
>
> Hope that helps
> --
> Cayetano
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please
> visit http://lists.opencms.org/mailman/listinfo/opencms-dev
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please
> visit http://lists.opencms.org/mailman/listinfo/opencms-dev
>

_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/mailman/listinfo/opencms-dev


_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/mailman/listinfo/opencms-dev

------------------------------

Message: 8
Date: Mon, 28 Aug 2006 10:17:20 +0200
From: "Carl Alex Friis Nielsen" <cfn at kb.dk>
Subject: RE: [opencms-dev] How to loop inside an XmlContent using jsp?
To: "The OpenCms mailing list" <opencms-dev at opencms.org>
Message-ID: <8CBCCEE2D9CECF4CAFFF17DE494047A84C9163 at exchange-2.kb.dk>
Content-Type: text/plain;	charset="iso-8859-1"

Example code looping through XML content using scriptlets can
be found in /sites/default/xmlcontentdemo (included in default
installation).

Cheers,

Carl

------------------------------

Message: 9
Date: Mon, 28 Aug 2006 10:47:16 +0200
From: Christian Steinert <christian_steinert at web.de>
Subject: [opencms-dev] "Cleanup HTML Code" - additional cleaning
To: The OpenCms mailing list <opencms-dev at opencms.org>
Message-ID: <44F2AD94.5010906 at web.de>
Content-Type: text/plain; charset="utf-8"

Does anyone know if the "Cleanup HTML Code" function in opencms'
FCKeditor can be customized? I would like to make that button filter out
font tags.

I know that font tags are filtered out when using "paste from word", but
paste from word doesn't get the headings right for me - instead of
becoming html-headings, any headings just turn into big text if I use
"paste from word.

Thanks and Regards
Christian

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3269 bytes
Desc: S/MIME Cryptographic Signature
Url :
http://lists.opencms.org/pipermail/opencms-dev/attachments/20060828/55b97cff
/smime-0001.bin

------------------------------

Message: 10
Date: Mon, 28 Aug 2006 16:52:17 +0800
From: "=??B?1cXK98bC?=" <ccvcd at sohu.com>
Subject: [opencms-dev] how to insert flash in html file.
To: "opencms-dev at opencms.org" <opencms-dev at opencms.org>
Message-ID: <20060828085227.512F500343F5 at smtp128.sohu.com>


   Hi

   how to insert flash in html file.

   If anyone finds out how to do it, please let us know.


------------------------------

_______________________________________________
This mail is send to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://mail.opencms.org/mailman/listinfo/opencms-dev

End of opencms-dev Digest, Vol 108, Issue 1
*******************************************




More information about the opencms-dev mailing list