<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);display:inline!important;float:none">Hi,</span><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">
<br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">
Actually, if the container is found, then the red dot line is shown in order to indicate the container locations in the container page.</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">
<br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">
However, there is no red dot line shown when I trying to drop a content type into the container page.</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">
<br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">
Please kindly see the attachment<br><br><div class="im" style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">
<div>Thanks for your kind attention.</div><div><br></div><div>Best Regards,</div></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">
Connie Lam<br></div></div><br><br><div class="gmail_quote">2012/7/13 ั๎นโ <span dir="ltr"><<a href="mailto:sun.java@163.com" target="_blank">sun.java@163.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="line-height:1.7;font-size:14px;font-family:arial">I think you could do something like following:<div><br></div><div>1. check opencms.log if there are some errors.</div><div>2.if there is no error, write some words arround <span style="font-family:arial,verdana,sans-serif">cms:formatter, like:</span></div>
<div class="im"><div><span style="font-family:arial,verdana,sans-serif"><cms:formatter var="content" val="value"></span></div></div><div><span style="font-family:arial,verdana,sans-serif"><span style="white-space:pre-wrap"> </span>please, show</span></div>
<div><span style="font-family:arial,verdana,sans-serif"></cms:formatter></span> </div><div>maybe it displays the whitespace we cann't see.<br><br><div><span style="font-family:verdana;line-height:25px;font-size:13px"><div>
<span><font color="#0000ff"><font color="#808080"><br>*******************************************<u></u></font></font></span> </div></span></div><div><div class="h5"><div></div><br>At 2012-07-13 10:47:41,"Ying Kwan Lam" <<a href="mailto:conniesookie@gmail.com" target="_blank">conniesookie@gmail.com</a>> wrote:<br>
<blockquote style="PADDING-LEFT:1ex;MARGIN:0px 0px 0px 0.8ex;BORDER-LEFT:#ccc 1px solid">Hi Michael,<br><br>Thanks for your reply first. I listed my detail information below.<br><br>The following is my template.jsp file (inside /system/modules/my.module.poll/templates directory), <br>
....<br><div id="main"><br>
<div id="leftColumn"><br> <cms:container name="leftcontainer" type="left" width="230" maxElements="8"/><br> </div><br> <div id="centreColumn"><br>
<cms:container name="centrecontainer" type="centre" width="450" maxElements="8" detailview="true"/><br> </div><br> <div id="rightColumn"><br>
<cms:container name="rightcontainer" type="right" width="320" maxElements="8"/><br> </div><br></div><br>....<br><br>Under the /site/default/flower_en/, there is an index.html whose type is containerpage. <br>
I edit the property and set the "template" property as /system/modules/my.module.poll/templates/template <br><br>------------------------------------------------------<br><br>In the /system/modules/my.module.poll/formatters directory, the detail.jsp is like that:<br>
<br><%@page buffer="none" session="false" taglibs="c,cms" %><br><cms:formatter var="content" val="value"><br></cms:formatter><br><br>--------------------------------------------------------<br>
<br>In my XSD file, there is the formatters declaration.<br><br><formatters><br> <formatter maxwidth="450" uri="/system/modules/my.module.poll/formatters/detail.jsp" searchcontent="true" /><br>
</formatters><br><br>I set the maxwidth="450", then the newly-created content type should be added to the one of the containers defined in the template.jsp. However, the content type still cannot be added to the containers.<br>
<br>Actually, I read the wiki "Creating Plug and Play Modules for OpenCms8" (<a href="http://www.opencms-wiki.org/wiki/Creating_Plug_and_Play_Modules_for_OpenCms_8" target="_blank">http://www.opencms-wiki.org/wiki/Creating_Plug_and_Play_Modules_for_OpenCms_8</a>)<br>
Also, I tried to add an attribute type="*" in the formatter tag. It doesn't work to add the customized content type into the containers.<br><br>Thanks for your kind attention.<br><br>Best Regards,<br>Connie Lam<br>
<br><br><div class="gmail_quote">2012/7/12 Michael Emmerich <span dir="ltr"><<a href="mailto:m.emmerich@alkacon.com" target="_blank">m.emmerich@alkacon.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
you should check the following:<br>
<br>
1) If your formatter jsp would cause an error, it could not be dropped into a container. You might some more info in the opencms.log.<br>
You could try to remove everything from the formatter except the formatter tag to see if this works.<br>
<br>
2) How did you define the formatters in the XSD? Maybe the width/name information does not fit to any of the containers on your page.<br>
<br>
Kind Regards,<br>
Michael.<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>
Hi everyone,<br>
<br>
I am an OpenCms beginner. I am currently using OpenCms 8.0.4. I wanna<br>
create a new Content type for users to drag and drop.<br>
<br>
I successfully created my new resource type via the following steps.<br>
<br>
1. Create a module named my.module.poll under /system/modules/<br>
<br>
2. Get into /system/modules/my.module.<u></u>poll/schemas, create an XSD file<br>
to define the schema named as poll.xsd<br>
<br>
3. Add my formatter (.jsp file with formatter tag) under<br>
/system/modules/my.module.<u></u>poll/formatters<br>
<br>
4. Go to opencms_modules.xml file to add two more elements (e.g.<br>
resourecetypes and exploretype)<br>
<br>
5. Create a workplace.propertes file to name the label under<br>
/system/modules/my.module.<u></u>poll/my/module/poll<br>
<br>
6. Export the module and publish the module<br>
<br>
7. Re-start the tomcat.<br>
<br>
Actually, the new resource type is created. I have no problem up to now.<br>
<br>
I tried to make the resource type as the content type.<br>
<br>
That mean I can use the drag and drop feature to create a new Poll<br>
content in container<br>
<br>
2. Go to /system/modules/my.module.poll<br>
<br>
2. Create a module config file named as .config and set the Resource<br>
Type information such as Type name, Folder and Name Pattern<br>
<br>
3. Go the the folder e.g. /site/default/flower_en/.<u></u>content<br>
<br>
4. Edit the .config file (adding the newly-created resource type)<br>
<br>
Now, I went to flower_en webpage and I can find the Poll content shown<br>
in the content list after clicking "Add Content" icon.<br>
<br>
However, no container support the newly-created content type.<br>
<br>
That mean, no container is highlighted to let me drag and drop<br>
newly-created Poll content.<br>
<br>
Please kindly tell me what I am missing.<br>
<br>
Is my concept correct to create a new content type?<br>
<br>
<br>
Thanks for your kind attention.<br>
<br>
<br>
--<br>
Best Wishes,<br>
Connie Lam<br>
<br>
<br></div></div>
______________________________<u></u>_________________<br>
This mail is sent to you from the opencms-dev mailing list<br>
To change your list options, or to unsubscribe from the list, please visit<br>
<a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/cgi-<u></u>bin/mailman/listinfo/opencms-<u></u>dev</a><br>
<br>
<br>
<br>
</blockquote>
<br>
<br>
-- <br>
Kind Regards,<br>
Michael.<br>
<br>
-------------------<br>
<br>
Visit OpenCms Days 2012 Conference and Expo September 24 to 25, 2012 in Cologne, Germany <a href="http://www.opencms-days.org" target="_blank">http://www.opencms-days.org</a><br>
<br>
Michael Emmerich<br>
<br>
Alkacon Software GmbH - The OpenCms Experts<br>
<a href="http://www.alkacon.com" target="_blank">http://www.alkacon.com</a> - <a href="http://www.opencms.org" target="_blank">http://www.opencms.org</a><br>
<br>
______________________________<u></u>_________________<br>
This mail is sent to you from the opencms-dev mailing list<br>
To change your list options, or to unsubscribe from the list, please visit<br>
<a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/cgi-<u></u>bin/mailman/listinfo/opencms-<u></u>dev</a><br>
<br>
<br>
<br>
</blockquote></div><br><br clear="all"><br>-- <br>Best Wishes,<br>Connie Lam<br>
</blockquote></div></div></div></div><br><br><span title="neteasefooter"><span></span></span><br>_______________________________________________<br>
This mail is sent to you from the opencms-dev mailing list<br>
To change your list options, or to unsubscribe from the list, please visit<br>
<a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a><br>
<br>
<br>
<br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Best Wishes,<br>Connie Lam<br>