AW: [opencms-dev] Opencms6.0 beta2, microsite, _configuration
patrick
pat at www.monmien.com
Fri Apr 8 14:25:19 CEST 2005
Hi Andreas, thanks for the quick answer!
-I have added in the microsite property 'style_main_configpath' the full path '/sites/default/mymicrosite/_configuration/' (with just '/mymicrosite/_configuration', as stated in your email, it was not working),
and when viewing inthe page in OFFLINE mode, I do see my changes. Cool!
- Now I publish my site.
- The changes do NOT appear! It is not a browser cache problem (cache emptied and put to 0 + browser restarted).
- In the ONLINE site, the poperty for the 'style_main_configpath' is correctly set.
- The html that OpenCms generates for the css is the folowing (the name of the microsite is 'Microsite'): <link href="/opencms/opencms/system/modules/org.opencms.frontend.templateone/resources/style.css?respath=/opencms/export/templateone/resources/&config=/sites/default/Microsite/_configuration/configuration_css&site=/sites/default&__locale=en" rel="stylesheet" type="text/css">
I have no idear if this is valid.
So... I am sorry... did I miss something again?
Thanks,
Patrick
Andreas Zahner wrote:
>Patrick,
>
>you have to set a property value at the microsite folder, too. The property
>"style_main_configpath" must point to the configuration folder, e.g.
>"/mymicrosite/_configuration/". This is necessary because each page can have
>individual configuration settings even for one microsite.
>In the current CVS head, I fixed this problem by attaching the property
>value on microsite folder creation. To do so, you have to adjust the
>manifest.xml file of the template one module zip and add the following
>property nodes to the microsite folder definition:
>
><type class="org.opencms.file.types.CmsResourceTypeFolderExtended"
>name="microsite" id="19">
> <properties>
> <property>
> <name>style_main_configpath</name>
>
><value><![CDATA[${resource.folder.path}_configuration/]]></value>
> </property>
> </properties>
> <copy-resources>
> <copy-resource
>source="/system/modules/org.opencms.frontend.templateone/copyresources/_conf
>iguration" target="${resource.folder.path}" type="new"/>
> </copy-resources>
> </type>
>
>Hth!
>Regards,
>
>Andreas Zahner
>Alkacon Software - The OpenCms Experts
>http://www.alkacon.com
>
>-----Ursprüngliche Nachricht-----
>Von: opencms-dev-bounces at opencms.org
>[mailto:opencms-dev-bounces at opencms.org] Im Auftrag von patrick
>Gesendet: Freitag, 8. April 2005 12:29
>An: opencms-dev at opencms.org
>Betreff: [opencms-dev] Opencms6.0 beta2, microsite, _configuration
>
>Hi!
>The microsite functionality new from b2 seems extremely interesting for
>me! I do have problems making it work though: I cannot configure it
>properly on a per-microsite basis.
>
>What I did:
>- in the Default web site, I create 2 microsites (m1 and m2). I am
>always using the Template One demo as a template.
>- In each microsite folder, I do have a _configuration folder which
>contains various configuration elements
>- I would like to have a blue text background on microsite m1 and a gray
>one on m2. So I go to the m1/_configuration/configuration_css and change
>the appropriate value (content-background) and do the same with m2.
>- I am still having the default white background; in other words, the
>values are not taking into accounts.
>- This happens wether I publish or not.
>
>What I am missing?
>
>OpenCms6.0 beta 2, tomcat 5.5.9, jdk1.5, mysql 4.1.11, slackware.
>
>Thanks,
>
>Patrick
>
>
>
>_______________________________________________
>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
>
>
>
>_______________________________________________
>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
>
>
More information about the opencms-dev
mailing list