[opencms-dev] OpenCms 8 Understanding

Sandrine Prousteau s.prousteau at eurelis.com
Fri Jun 17 11:42:52 CEST 2011


Thanks for your answer.

1) Available resource types in a site:

The first possibility is working fine.
I'd like to try the second on: I empty the property "config.sitemap" on my site folder (I don't dlete the file /_config/sitemap.config). My module in /system/modules contains a file /_config/sitemap.config of type sitemap_config. My module have the parameter "config.sitemap=/system/modules/mymodule/_config/sitemap.config". I restart Tomcat. I preview a container page under my site folder. The ADE add dialog is empty... Nothing in opencms.log.

2) Drag and drop content:

In the T3  module, for example Article, when I click left on the jsp /elements/side.jsp, I get the error:
javax.servlet.jsp.JspException: org.opencms.main.CmsException: Error while reading element bean from request
Nothing in opencms.log.

Im my module, my containerpage_template (/templates/main.jsp) contains :
<!-- begin: right column -->
<div id="col3">
  <div id="col3_content" class="clearfix">
  <!-- define container on the right side -->
  <cms:container name="rightcontainer" type="small" width="240" maxElements="8" />
</div>
</div>
<!-- end: right column -->
<!-- begin: center column -->
<div id="col2home">
  <div id="col2home_content" class="clearfix">
  <!-- define container in the center -->
  <cms:container name="centercontainer" type="small" width="720" maxElements="6" />
  <cms:container name="centercontainer2" type="small" width="720" maxElements="2" />
  <cms:container name="centercontainer3" type="small" width="720" maxElements="2" />
  </div>
  <div class="clear"> </div> 
</div>
<!-- end: center column -->

In my xsd, I set for example :
<formatters>
  <formatter type="*" uri="/system/modules/mymodule/elements/teaserimage/default.jsp" searchcontent="true" />
</formatters>

Must we use minwidth and maxwidth?

3) Locales:

It seems to work now. I can see French element in a container page with "locale" property "fr" on the container folder.
But I notice I have a meta like this : <meta content="locale=en" name="gwt:property"> generated by ADE tag. What is it?

-----Message d'origine-----
De : opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] De la part de Polina Smagina
Envoyé : vendredi 17 juin 2011 09:47
À : The OpenCms mailing list
Objet : Re: [opencms-dev] OpenCms 8 Understanding

Hello Sandrine,


1) Available resource types in a site:

The resource types which can be selected via ADE add dialog and drag&dropped to the container page do not depend on the template property.
This resource types have to be configured in the sitemap configuration file. The path to this file has to be set in the property "config.sitemap" on you sub sitemap or on the site folder. This is one way to configure resource types.

The other posibility is to define the resource types inside of the module. In that case set the path to the sitemap config of the module as a module parameter and restart OpenCms. If you did so you can export the module and import it on another OpenCms, after the restart the configured resource types will/should be directly available in the new system. However If you add a sitemap config for the same resource types inside your site, it will overwrite the configuration of the module.

So normally you can choose one of the above possibilities to configure the resource types.


2) Drag and drop content:

Does the formatter jsp of the resource types, which cannot be dropped 
into containers compile? If you just click on the formatter jsp, there 
should not be any syntax errors. Please also check the log file for 
possible errors.

How did you configure the container inside of the templates? Did you set 
the type and width? Did you use the minwidth and maxwidth attributes for 
the formatter configuration?


3) Locales:

Please give some details how do you localize the site and describe the 
steps you did in more details.

-- 
Kind Regards,
Polina.

-------------------
Polina Smagina

Alkacon Software GmbH  - The OpenCms Experts
http://www.alkacon.com - http://www.opencms.org








Am 16.06.2011 15:37, schrieb Sandrine Prousteau:
> Hi all,
> I'm trying to learn to use new features of OpenCms 8, with T3 and
> dev_demo.
> Versions : OpenCms 8.0.0.
> All ADE modules are correctly installed (increased max_allowed_packet).
>
> I created a custom module "Tight coupling", with:
> * 2 containerpage_template
> * some elements (xsd&  formatters jsp)
> * a "config" folder with 2 containerpage models and some elements
> models, and a sitemap_config file
> * the sitemap.config parameter on my module
>
> My questions are :
>
> Available resourcetypes in a site:
>
> When I read the pdf of OpenCms Days 2011, I understand that the custom
> sitemap.config in "sites/default"  is only overriding the default
> behavior of the module (xsd formatters and sitemap.config
> resourcetypeslist ?)(all the modules installed?).
> But, when I create manually a containerpage in "sites/default", even
> with adding the default containerpage_template in the property
> "template" on the site folder, the ADE leave empty the list of
> resourcetypes available.
> I found we have to set a custom "/_config/sitemap.config" in the
> property "config.sitemap" on "/sites/default" folder. Then if we create
> on the workplace a containerpage, we can define a list of resourcetype
> to add in containers.
> So why must  we create it in the modules?
>
> Drag and drop new content:
>
> Suppose I have manually created the list of resourcetypes in my website.
> I try to add new types contents in containers of my page. Some element
> types works, other don't. I must misunderstood something in the
> configuration of elements... Is there someone who have clearly
> understood the configuration.
> All of my formatter jsp have a global<div>. All of my test elements
> have basic formatter with type "*". No use of javascript.
>
> Locales:
>
> When I preview a containerpage, sometimes it work, displaying the
> elements in the page, sometimes not, as if there when nothing configured
> in the page. Perhaps it is linked to locale definition, because it
> always work when I register the page edition in workplace before
> previewing... Is there someone having this behavior too?
>
> Thanks in advance.
>
>
> _______________________________________________
> 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



More information about the opencms-dev mailing list