Hi Тимофей

Back to this topic.
We (actually Aleksandr Pchelintcev) managed to run the resources app choose 
dialog.
As already mentioned earlier, at the moment you have to implement a „custom 
link field“ to use with a content app which carries non-JCR-originated content.

I’ve added such a field onto a branch of the resources module.
Have a look at it on git: => 
http://git.magnolia-cms.com/gitweb/?p=modules/resources.git;a=commit;h=1e662634b1243f44242d9f321ca9a75a1354e30b
Hopefully we can make it easier in the future to get a custom linkfield. 
However, the reference of a choosen item which you want to store may differ 
depending on the use case … this said it makes sense if you implement according 
to your requirements.
The „important“ method is #protected ChooseDialogCallback 
createChooseDialogCallback
See => 
http://git.magnolia-cms.com/gitweb/?p=modules/resources.git;a=blob;f=magnolia-resources-app/src/main/java/info/magnolia/resources/app/fields/ResourceLinkFieldFactory.java;h=c052668da71e12b3af84831e418205535b17ca06;hb=1e662634b1243f44242d9f321ca9a75a1354e30b

For your use case you rather add custom field to your specific module. (Both 
the classes and the definition of the field in the config. Have a look at 
https://documentation.magnolia-cms.com/display/DOCS/Custom+fields how to do 
that.)

Another thing which was required. We changed the constructor for 
info.magnolia.resources.app.workbench.tree.ResourcesTreePresenter.
This change was committed onto master branch of the resources module. Use 
2.4.1-SNAPSHOT of the resources modules for the moment and 2.4.1 final as soon 
as it is released.

I hope that helps.
regards, Christoph

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=5fc5fcc4-9fc8-4923-bdf2-d6949f0b8ef0


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <user-list-unsubscr...@magnolia-cms.com>
----------------------------------------------------------------

Reply via email to