Still getting my feet wet with Sling and jcr. We would like to add some metadata to the a node of nt:file type. It looks like mixins are the way to go, but I am having trouble figuring them out. It looks like you create them in a .cnd file. But where do you put the file? It would be slick to just drop it somewhere in the sling OSGi structure and have it pick it up on startup. Is that possible? Otherwise do I put in the the "bundles/jcr/resource/src/main/resources/SLING-INF/nodetype" directory and rebuild the project?
Also I am a bit confused on what is the best way to create a mixin that extends nt:file. One example I read has you just do the following: [acme:taggable] mixin - acme:tags (STRING) multiple But I do not see how that gets mixed in the nt:file definition. Rather would you do something like this? [acme:taggable] > nt:file mixin - acme:tags (STRING) multiple Also, is there anything special I should know about using mixins with rest calls? All of the examples add content with Mixins using the sling api. Thx. -- View this message in context: http://apache-sling.73963.n3.nabble.com/Mixin-questions-tp4030123.html Sent from the Sling - Users mailing list archive at Nabble.com.
