<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
 namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Hi,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>    I have been learning and exploring
opencms for last two months. I am using version 6.0.4 as it is the application used
by my web application. I am facing this problem of adding new resource type. <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Details:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>    I have this XSD file named as
myarticle.xsd. I have stored it in the sites/default/myfolder/.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>    Now  when I make a Html file using
this XSD. Everything works fine. That means everything is fine with the xsd
file. Now I have made changes in opencms-vfs.xml and opencms-workplace.xml to
include this as a new resource type. The changed details are added below please
check.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>In opencms-vfs.xml:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>     1.   <type class="org.opencms.file.types.CmsResourceTypeXmlContent"
id="202" name="myarticle"><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>                                                           
<param
name="schema">/sites/default/myfolder/myarticle.xsd</param><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>                                               
</type><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>In opencms-workplace.xml:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>    1.  <explorertype
name="myarticle" key="fileicon.myarticle"
icon="myarticle.gif" reference="xmlcontent"><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>                                               
<newresource uri="newresource_xmlcontent.jsp?newresourcetype=myarticle"
order="32"/><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>                                   
</explorertype><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Also I have added “fileicon.myarticle” label in
workplace.propertied present in classes of frontend.templateone.xmlcontentdemo
present in the modules and added a icon in resources/filetypes/myartice.gif. <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Now when I restart tomcart using service runner present in
the bin of tomcat program files. And click on new resources. It doesn’t
display the icon and the title but  I am able to create new article. Where
is the problem can u please help. <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Thanks & Regards,</span></font><font
color=navy><span style='color:navy'><o:p></o:p></span></font></p>

<p class=MsoNormal><st1:PersonName w:st="on"><b><font size=2 color="#3333cc"
 face=Arial><span style='font-size:10.0pt;font-family:Arial;color:#3333CC;
 font-weight:bold'>Ankit</span></font></b></st1:PersonName><b><font size=2
color="#3333cc" face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:#3333CC;font-weight:bold'> Agarwal</span></font></b><font color=navy><span
style='color:navy'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=1 color=navy face=Arial><span style='font-size:
8.0pt;font-family:Arial;color:navy'>Software Engineer –IBM COE<o:p></o:p></span></font></p>

<p class=MsoNormal><b><font size=2 color="#3333cc" face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:#3333CC;font-weight:bold'>HCL
Technologies Ltd</span></font></b><font size=2 color="#3333cc" face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:#3333CC'>.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=1 color=navy face=Arial><span style='font-size:
8.0pt;font-family:Arial;color:navy'>A-8,9 Sector 60, NOIDA 201301 U.P(W)</span></font><font
color=navy><span style='color:navy'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=1 color=navy face=Arial><span style='font-size:
8.0pt;font-family:Arial;color:navy'>Tel:<span style='font-variant:small-caps'> +91-120-4384000</span>
Extn: (4197)<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=1 color=black face=Arial><span style='font-size:
8.0pt;font-family:Arial;color:black'>Mob: +91-<span style='font-variant:small-caps'>9818
80 2720</span> </span></font><font color=navy><span style='color:navy'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=1 color=black face=Arial><span style='font-size:
8.0pt;font-family:Arial;color:black'><a href="mailto:ankit_agarwal@hcl.in"
title="mailto:ankit_agarwal@hcl.in">ankit_agarwal@hcl.in</a></span></font><font
color=navy><span style='color:navy'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=1 color=black face=Arial><span style='font-size:
8.0pt;font-family:Arial;color:black'>www.hcltech.com <o:p></o:p></span></font></p>

<p class=MsoNormal><b><font size=2 color="#3333cc" face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:#3333CC;font-weight:bold'><a
href="http://www.hcl.in/" title="http://www.hcl.in/"><span style='text-decoration:
none'><span title="http://www.hcl.in/">www.hcl.in</span></span></a><o:p></o:p></span></font></b></p>

<p class=MsoNormal><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt;color:navy'><img border=0 width=408 height=25
id="_x0000_i1025" src="cid:image001.jpg@01C85C3D.11B58B90"></span></font><o:p></o:p></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

</div>

</body>

</html>

<table><tr><td bgcolor=#ffffff><font color=#000000>DISCLAIMER:<br>
-----------------------------------------------------------------------------------------------------------------------<br>
The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. <br>
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in <br>
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates. <br>
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of <br>
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have <br>
received this email in error please delete it and notify the sender immediately. Before opening any mail and <br>
attachments please check them for viruses and defect.<br>
-----------------------------------------------------------------------------------------------------------------------<br>
</font></td></tr></table>