Sorry Roy, I'm not clear how to answer your question:

anonymous wrote : You're not going to want to play with the folder, file, or 
content types. Instead, if I understand correctly, you want something like 
every content type should have a new type called "foo" or "bar" as a child of 
it. Much like we already support "title" and "description" for content. Correct?

What I'm hoping for is the ability to define a new NodeType that has 
portalcms:file as its supertype with some additional properties. I like basing 
my type off of portalcms:file because it already defines title, description, 
and the jcr:content child, which can be edited with the nice HTML editor you 
provide. My code looks like:


  | QName qname = new QName("http://www.xerceo.com/learn/jcr-1.0";, 
"LearningObject");
  | NodeTypeDef ntd = new NodeTypeDef();
  | ntd.setName(qname);
  | ntd.setOrderableChildNodes(false);
  | ntd.setSupertypes(new QName[]{new QName("http://jboss.org/jcr/portalcms";, 
"file")});
  | // ... additional eLearning related properties here ...
  | 

The UI should use the JSR-170 API to show all the properties for a 
LearningObject and if editable, then allow an end-user to change them.

This weekend, I'm going to cook up my own content viewer and will send you the 
code.



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3926119#3926119

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3926119


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to