@Model(adaptables=Resource.class) public class MyModel { @Inject @Named("jcr:title") private String title; }This should workAdapt as resource and inject the property you need.
Do following and let me know how it goes:1. Create a test user and don't give any permission to it.2. Add test user to dam-users group which is already present in aem3. Go to test user and under group tab u should see two groups, everyone and dam-users.4. Now login with this user.It worked for me in...
Sometime back, I wrote a similar kind of article [1].You implement a simple listener on beforeSubmit of dialog. In listener check the value of renditions used in image name. [1] http://adobeaemclub.com/simple-way-to-restrict-image-type-in-pathfield-xtype/
1) make sure all these are checked for you group in which you are adding users2) If there exists a group with same permission you need, then you should existing one. else create new one. Give permission to group not users
Answer to B: Yes it would be present as nosamplecontent will only remove default projectsBefore answering to A, just to wanted to know wht all those dam user should be able to do?...example. only read files, or read and modify...etc..
Here is one article which shows usage of postconstructhttp://adobeaemclub.com/sightly-pagination-component-using-sling-model-and-javascript-use-api-in-aem-6-1/Sling model works on injection, once all injections are completed this will method (@postconstruct) gets called.In order to debug you can sim...