[opencms-dev] [Multi Site] How I can use common structured content in differ website context

Allan Batista dos Santos talent.abatista at bvsistemas.com.br
Tue Oct 4 23:03:55 CEST 2011


Hi guys.

First, sorry if it is very confused.

I have two website context definition:

<sites>
      <workplace-server> http://siteA </workplace-server>
      <default-uri>/sites/siteA/</default-uri>
                  <site server="http://siteA" uri="/sites/siteA/"/>
                  <site server="http://siteB" uri="/sites/siteB/"/>
</sites>

In siteA I have a structured file config.html with some site definition, like: title, color, css, etc.  These information is common for siteA and siteB.

I try this:

config.jsp in siteA - OK, siteA load information correct:

<cms:contentload collector="singleFile" param="/config/config.html" editable="true">
      ...
</cms:contentload>


config.jsp in siteb. If I try use this in siteB doesn't work because Opencms try find it inside the siteB context, not in siteA context.

<cms:contentload collector="singleFile" param="/sites/siteA/config/config.html" editable="true">
      Don't work
</cms:contentload>

How I can use some structured content in differ website context?

Regards.


Allan B.S

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20111004/3227edcd/attachment.htm>
-------------- next part --------------

Esta mensagem e seus anexos podem conter informações confidenciais ou privilegiadas. Se você não é o destinatário, não está autorizado a utilizar o material para qualquer fim. Solicitamos que você apague a mensagem e avise imediatamente o remetente. O conteúdo desta mensagem e seus anexos não representam necessariamente a opinião e a intenção da empresa, não implicando em qualquer obrigação ou responsabilidade por parte desta. 
 
This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. The contents of this message and its attachments do not necessarily express the opinion or the intention of the company, and do not imply any legal obligation or responsibilities from this company.   


More information about the opencms-dev mailing list