Lol<br><br>Thank you a lot. I think I see now what I have to do with all of this ^^<br><br><br><div><span class="gmail_quote">2008/4/9, Georgi Naplatanov <<a href="mailto:gosho@oles.biz">gosho@oles.biz</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
> So I think that i have to create a file which will inform the<br> > workspace of "how organize content for this file". But don't what to do or<br> > how associate my structured content file to an xsd or an xml file from my<br>
> module or something klike that...<br> <br> <br>You have to edit opencms-modules.xml file in WEB-INF/config/ folder.<br> See documentation or opencms's modules which contains xsd files for example.<br> <br> The section for your module in opencms-modules.xml file should be like this:<br>
<br> <module><br> <name>biz.oles.opencms.poll</name><br> <nicename/><br> <class/><br> <description/><br> <version>1.2</version><br>
<authorname/><br> <authoremail/><br> <datecreated/><br> <userinstalled/><br> <dateinstalled/><br> <dependencies/><br> <exportpoints><br>
<exportpoint<br> uri="/system/modules/biz.oles.opencms.poll/lib/"<br> destination="WEB-INF/lib/"/><br> <exportpoint<br> uri="/system/modules/biz.oles.opencms.poll/classes/"<br>
destination="WEB-INF/classes/"/><br> </exportpoints><br> <resources><br> <resource uri="/system/modules/biz.oles.opencms.poll/"/><br> <resource<br>
uri="/system/workplace/resources/filetypes/poll.gif"/><br> </resources><br> <parameters/><br> <resourcetypes><br> <type<br> class="org.opencms.file.types.CmsResourceTypeXmlContent" name="poll"<br>
id="333"><br> <properties><br> <property><br> <name>content-conversion</name><br> <value<br>
type="shared"><![CDATA[cleanup;xhtml]]></value><br> </property><br> <property><br> <name>template-elements</name><br>
<value type="shared"><![CDATA[]]></value><br> </property><br> </properties><br> <param<br>
name="schema">/system/modules/biz.oles.opencms.poll/schemas/poll.xsd</param><br> </type><br> </resourcetypes><br> <explorertypes><br> <explorertype name="poll" key="fileicon.poll"<br>
icon="poll.gif" reference="xmlcontent"><br> <newresource page="structurecontent"<br> uri="newresource_xmlcontent.jsp?newresourcetype=poll" order="333"<br>
autosetnavigation="false" autosettitle="false" info="desc.poll"/><br> <accesscontrol><br> <accessentry principal="ROLE.WORKPLACE_USER"<br>
permissions="+r+v+w+c"/><br> </accesscontrol><br> </explorertype><br> </explorertypes><br> </module><br> <br><br> > Maybe i'm not clear... (i'm french, so it could explain that my english is<br>
> not very explicit :P)<br> <br> <br>Don't worry my native language is not english too.<br> <br><br> Best regards<br> Georgi<br> <br> Territorio Jordan-V. wrote:<br> > Thanks Georgi !<br> ><br> > I saw in project the schemas directory which contains xsd files. The<br>
> documentation says that xsd files are used to "standardize" content of xml<br> > files... but i'm lost, i've created the sample.xsd as in the doc, but if i<br> > create an xml file from scratch, the edition fails, launching a fu....ing<br>
> exception ^^<br> ><br> > My real problem in the module creation is there :<br> > I try to make a module from scratch, and a website using this module (a web<br> > portail with login page, where users have access to some information).<br>
> I noticed that if I create a new "structured content" in my site, the<br> > edition fails. So I think that i have to create a file which will inform the<br> > workspace of "how organize content for this file". But don't what to do or<br>
> how associate my structured content file to an xsd or an xml file from my<br> > module or something klike that...<br> ><br> > Maybe i'm not clear... (i'm french, so it could explain that my english is<br>
> not very explicit :P)<br> ><br> > 2008/4/9, Georgi Naplatanov <<a href="mailto:gosho@oles.biz">gosho@oles.biz</a>>:<br> >> Hello, Territorio Jordan-V.<br> >><br> >> The elements folder in the module, usually contains jsps which are used<br>
>> in the template(s) to render menus, news, jobs etc.<br> >><br> >> The module's folders (under /system/modules) is not visible for user who<br> >> should edit content of the site only and you should not create pages in<br>
>> modules folder.<br> >><br> >> I saw jsps in pages folder for some opencms modules which makes some<br> >> work with posted data. The mail form from template one is one of these<br> >> examples.<br>
>><br> >> HTH<br> >><br> >> Best regards<br> >> Georgi<br> >><br> >><br> >> Territorio Jordan-V. wrote:<br> >>> Hi all !!<br> >>><br> >>> As ever, i'm a newbie and i try to learn the better way to create a real<br>
>>> OpenCMS Module. So my question is, what directory for what pages...<br> >>><br> >>> I know that (but not sure)<br> >>> resources : to put images or css style, so the graphical ressources<br>
>>> templates : the jsp templates to organize datas on the screen<br> >>> classes : for properties and Java classes uses<br> >>> lib : for specials librairies used<br> >>><br> >>> But for those i don't know :<br>
>>> elements/<br> >>> pages/<br> >>><br> >>> I've seen that some pages in the demo uses elements to organize a type<br> >> of<br> >>> content so i think you have to create jsp to organize just one type of<br>
>> data<br> >>> (but I don't know how to proceed)<br> >>> So for pages i've no idea...<br> >>><br> >>> does someone know more about it, because on wiki i didn't found any<br>
>> explicit<br> >>> description?<br> >>><br> >>> Cheers,<br> >>> Jordan<br> >>><br> >>><br> >>><br> >>><br> >>> ------------------------------------------------------------------------<br>
>>><br> >>><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<br>
>> visit<br> >>> <a href="http://lists.opencms.org/mailman/listinfo/opencms-dev">http://lists.opencms.org/mailman/listinfo/opencms-dev</a><br> >><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/mailman/listinfo/opencms-dev">http://lists.opencms.org/mailman/listinfo/opencms-dev</a><br>
>><br> ><br> ><br> ><br> ><br> > ------------------------------------------------------------------------<br> ><br> ><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/mailman/listinfo/opencms-dev">http://lists.opencms.org/mailman/listinfo/opencms-dev</a><br> <br> <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/mailman/listinfo/opencms-dev">http://lists.opencms.org/mailman/listinfo/opencms-dev</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>TERRITORIO Jordan-Victor<br>Ingénieur d'Intégration Java<br>TEAMLOG – Ingenieurs 2000<br><br>+33 6 30 66 54 69<br><a href="mailto:jot@teamlog.com">jot@teamlog.com</a>