Alfresco discussion and collaboration. Stick around a few hours after asking a question.
Official support for Enterprise subscribers: support.alfresco.com.
Join in the conversation by getting an IRC client and connecting to #alfresco at Freenode. Our you can use the IRC web chat.
More information about the channel is in the wiki.
More help is available in this list of resources.
2018-11-12 08:20:19 GMT <alfresco-discord> <yreg> Good morning folks
2018-11-12 08:35:04 GMT <alfresco-discord> <dgradecak> morning @yreg
2018-11-12 08:35:26 GMT <alfresco-discord> <dgradecak> and others
2018-11-12 08:35:32 GMT <alfresco-discord> <mbui> 👋
2018-11-12 11:03:36 GMT *** rajesh is now known as Guest80498
2018-11-12 12:28:07 GMT <alfresco-discord> <yreg> Guys, it there a JS snippet to create sites in a way that they would be valid in share context (including site dashboard ... etc)
2018-11-12 12:28:23 GMT <alfresco-discord> <yreg> I remember seeing such a snippet, but couldn't find it back by googling
2018-11-12 12:31:29 GMT <alfresco-discord> <mbui> @yreg I found this in an old project. https://i.gyazo.com/011fcfefdb303d65c2cf5333ce74f150.png
2018-11-12 12:33:24 GMT <alfresco-discord> <yreg> @mbui that's obviously using a custom webscript
2018-11-12 12:33:38 GMT <alfresco-discord> <yreg> There is already a webscript on share side to do the job
2018-11-12 12:33:50 GMT <alfresco-discord> <yreg> but I wanna do it programmatically from JS console
2018-11-12 12:37:27 GMT <alfresco-discord> <mbui> Can't you use ContextLoader and create site with siteservice?
2018-11-12 12:57:41 GMT <alfresco-discord> <yreg> there is already js api for that, but that's unfortunately not enough, as it doesn't bootstrap the XML files for the dashbord et Al ...
2018-11-12 14:22:03 GMT <AFaust> yreg: Apart from coding such a script yourself, there is no such thing in default Alfresco nor anywhere in the community that I am aware of. I recently wrote a custom bootstrap importer which I could use and parameterize with a specific site ID to bootstrap the whole Surf config (dashboard etc) for a site created via SiteService...
2018-11-12 14:23:06 GMT <AFaust> This obviously required some Java code to modify the importer (via StreamHandler) to dynamically replace some placeholders inside the XML documents with the site ID (which has to be reflected both in file names and content)
2018-11-12 14:24:32 GMT <AFaust> Though for the default site structure (and only that) you should be able to use the public v1 ReST API classes and call them from JS Console via reflection
2018-11-12 14:24:34 GMT <alfresco-discord> <yreg> AFaust I am well aware of that, but I think I came a cross a blog post or project for doing this in the past, just couldn't find it back
2018-11-12 14:25:09 GMT <AFaust> i.e. simply call the SitesImpl class via JS-Java Reflection Interop
2018-11-12 14:26:27 GMT <alfresco-discord> <yreg> that's exactly what I was looking for
2018-11-12 14:26:30 GMT <alfresco-discord> <yreg> thanks a ton
2018-11-12 16:01:07 GMT <alfresco-discord> <Erik.whipp> Is there a way to have cm:cmobject viewable in Alfresco Share ? I know cm:folder and cm:content inherit from it so I was wondering if there is an extra step to view these in Share or ADF.
2018-11-12 16:03:01 GMT <alfresco-discord> <yreg> @edw24 IMHO it should be fairly easy to do that in ADF
2018-11-12 16:03:07 GMT <alfresco-discord> <yreg> haven't attempted it though
2018-11-12 16:03:25 GMT <alfresco-discord> <yreg> Share could be more challenging
2018-11-12 16:03:39 GMT <alfresco-discord> <edw24> @yreg That was my initial thought as well.
2018-11-12 17:13:28 GMT <AFaust> Erik.whipp / yreg: Share (client-side) also supports showing cm:cmobject based nodes. The only problem are just the Repository-tier data web scripts which have been (in some places) wrecked/limited by relying on FileFolderService instead of the more generic NodeService
2018-11-12 17:14:12 GMT <AFaust> At my old company I have built a custom faceted search feature (back in Alfresco 4.1 before faceted search was available out-of-the-box) using the standard document library...
2018-11-12 17:16:33 GMT <AFaust> Since ADF uses public v1 ReST API endpoints, you should not assume it would support cm:cmobject without any limitations / side effects. The public v1 ReST API endpoints are also based on the FileFolderService (in some features) and as such may implicitly impose the same restrictions on type support as the data web scripts supporting Share
2018-11-12 17:17:38 GMT <AFaust> I have not yet identified specific ReST API operations affected by this, but would be careful/diligent...
The other logs are at http://esplins.org/hash_alfresco