<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
ups, sorry, i didnt finish writing the email...<br>
<br>
i have follow your steps to obtain the same results (i would like to<br>
do some operations when saving my content) but now my old content<br>
appear with type plain, and when i create new content it is created<br>
with type plain too<br>
<br>
i tried modifying opencms-workplace.xml too, adding a new entry for<br>
my type but i got a 'no editor found for type xx' message<br>
<br>
<br>
someone know how to introduce a CmsResourceTypeXmlContent subclass<br>
in opencms configuration?<br>
<br>
best regards<br>
rica<br>
<br>
<br>
<br>
Ricardo Zayas escribió:
<blockquote cite="mid4430DA83.9080008@satec.es" type="cite">
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
after the changes my old content of type News appears with plain type;
my new content too<br>
<br>
any ideas?<br>
<br>
azul z escribió:
<blockquote cite="midBAY115-F3A195E7EF41108B40424DE8D50@phx.gbl"
type="cite">
<div style="">
<div class="RTE">hi list</div>
<div class="RTE"> </div>
<div class="RTE">i've defined my own custom content type; now i
would
like to perform<br>
some operations when my content is created/edited (i need to read some</div>
<div class="RTE">fields in the content and write them to a
file...).
To do this i've<br>
subclassed CmsResourceTypeXmlContent and modified 2 files:</div>
<div class="RTE"> </div>
<div class="RTE">opencms-vfs.xml:</div>
<div class="RTE"><font size="1"> </font>
<p><font size="1"><type
class="org.mypackage.CmsResourceTypeNews"
name="</font><font face="Courier New" size="1">tipo_news</font><font
size="1">" id="700"/></font></p>
</div>
<div class="RTE">opencms-modules.xml:</div>
<div class="RTE"><font size="1"> </font>
<p><font size="1"><resourcetypes></font></p>
<p><font face="Courier New" size="1"><type
class="org.mypackage.type.CmsResourceTypeNews" name="News" id="600"></font></p>
<p><font size="1"><properties></font></p>
<p><font size="1"><property></font></p>
<p><font size="1"><name>template-elements</name></font></p>
<p><font size="1"><value
type="shared"><![CDATA[/system/modules/org.mypackage.news/jsptemplates/news.jsp]]></value></font></p>
<p><font size="1"></property></font></p>
<p><font size="1"></properties></font></p>
<p><font size="1"><param
name="schema">/system/modules/org.mypackage.news/schemas/news.xsd</param></font></p>
<p><font size="1"></type></font></p>
<p><font size="1"></resourcetypes></font></p>
<p><font size="1"><explorertypes></font></p>
<p><font size="1"><explorertype name="News" key="fileicon.News"
icon="article.gif" reference="</font><font face="Courier New" size="1">xmlcontent</font><font
size="1">"></font></p>
<p><font size="1"><newresource page="structurecontent"
uri="newresource_xmlcontent.jsp?newresourcetype=News" order="600"
autosetnavigation="false" autosettitle="false"/></font></p>
<p><font size="1"><accesscontrol></font></p>
<p><font size="1"><accessentry principal="GROUP.Administrators"
permissions="+r+v+w+c"/></font></p>
<p><font size="1"><accessentry principal="GROUP.Projectmanagers"
permissions="+r+v+w+c"/></font></p>
<p><font size="1"><accessentry principal="GROUP.Proyectos"
permissions="+r+v+w"/></font></p>
<p><font size="1"></accesscontrol></font></p>
<p><font size="1"></explorertype></font></p>
<p><font size="1"></explorertypes></font></p>
</div>
<div class="RTE"> </div>
<div class="RTE">Now, i can create new content and my class is
called, but i'm not allowed to</div>
<div class="RTE">edit it (it appears grayed)</div>
<div class="RTE"> </div>
<div class="RTE">exists some tutorial on this topic?</div>
<div class="RTE"> </div>
<div class="RTE">thanks</div>
</div>
<br clear="all">
<hr>Tu horóscopo diario, semanal y gratuito. <a
href="http://g.msn.com/8HMAESES/2728??PS=47575" target="_top">Cartas,
tarot y predicciones en MSN Horóscopo</a>
<pre wrap=""><hr size="4" width="90%">
_______________________________________________
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
<a class="moz-txt-link-freetext"
href="http://lists.opencms.org/mailman/listinfo/opencms-dev">http://lists.opencms.org/mailman/listinfo/opencms-dev</a></pre>
</blockquote>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
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
<a class="moz-txt-link-freetext" href="http://lists.opencms.org/mailman/listinfo/opencms-dev">http://lists.opencms.org/mailman/listinfo/opencms-dev</a></pre>
</blockquote>
</body>
</html>