This content has been marked as final.
Show 2 replies
-
1. Re: CMSAdminPortlet and custom Node Types that extend portal
roy.russo Feb 23, 2006 9:18 PM (in response to tim.potter)I will look at this tomorrow and create a jira feature request for it. I have had the idea of creating this feature for some time, as it will make the cms more flexible for end-users.
The capability is there, but requires enhancements to the ui so admins can create the properties and the implementation to store/retrieve the custom types. So changes have to happen in several places for this to work.
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? -
2. Re: CMSAdminPortlet and custom Node Types that extend portal
tim.potter Feb 24, 2006 11:14 AM (in response to tim.potter)Sorry Roy, I'm not clear how to answer your question:
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.