I just started working on alfresco v 3.4. I have created document library action from the tutorials provided on alfresco site. Anybody tell me how to open a popup box on hitting action with some data inside it. Please guys, I am in big trouble !!!
Thanks in advance.
For Alfresco Share you have to use client side javascript. You can use Alfresco's built in functions (Alfresco.module.SimpleDialog) or just include your javascript library of choice and implement it using that.
If you'll use Alfresco's implementation (YUI) thenLook at this file:
YOUR_INTALLATION/tomcat/webapps/share/components/documentlibrary/action.js
And search for:
Alfresco.module.SimpleDialog
And don't forget to include/import your own client side files in your webscript. For this look at:
http://wiki.alfresco.com/wiki/3.0_Component_Standards
Related
I am writing an external Java app to connect to the Magnolia CMS to allow my external application to push/pull assets into the repository.
Repository repository = JcrUtils.getRepository(URI);
What should the URI be? Assume that magnoliaAuthor is accessible on http://localhost:8080/magnoliaAuthor
I assume you try to fetch content outside of JCR, then you should take the Resource files app as an example since it renders content outside of JCR as well.
https://documentation.magnolia-cms.com/display/DOCS61/Resource+Files+app
If not, please let me know where that utility class come from. I cannot find it in the codebase.
Cheers,
Hope that helps,
I develop on a big new website some features.
There is lot of views and it's difficult to understand where the code is executed. I would like to add html comments on each render view of this website to help all developer to see where there are i try with kernel view but this listener is never lauch
If you known how i can do please ?
thx by advance
With your Symfony 3 app use http://localhost/app_dev.php/
When you call that URL Symfony will load the tool bar at the bottom that will provide the details you are looking for.
With Symfony 4 this is controlled by your environment settings.
I have uploaded sample.zip file in this directory CompanyHome/site/testsite/documentlibrary/test.
Now I want to create new folder called childfolder under above directory [CompanyHome/site/testsite/documentlibrary/test/childfolder] and move the sample.zip under it.using Alfresco API how do i create child folder and move the file under newly created childfolder?
This really depends upon what version of Alfresco you're using and what API you want to use to do it. For example, assuming that you want to do this via a REST API then you have the option of CMIS, the recent "Public API" or the internal WebScript based API.
Alternatively, you might want to do this by using the JavaScript API and WebScript develop your own WebScripts.
There are lots of ways to achieve this - perhaps you can provide some more information on the overall picture of what you're trying to do and where you're trying to do this (e.g. as an extension of Share maybe?).
It's possible to create a folder within Share and if you do so whilst you have browser developer tools open you'll be able to see the exact REST API calls that are used.
I have created a rule programmatically in Java and attached with a space, its working fine whenever a new document is inserted into that space. But what if I already have some documents uploaded in the space and I want to run the Rule. I know i can do this via Explorer as defined in the following article.
http://docs.alfresco.com/4.0/index.jsp?topic=%2Fcom.alfresco.enterprise.doc%2Ftasks%2Flibrary-folder-rules-run.html
But I want to achieve the same using Java code.
Does any one please suggest some solution.
:: I am using Alfresco enterprise 4.0.2
I would recommend you to bind behaviours to policies instead if you are into java:
http://wiki.alfresco.com/wiki/Policy_Component#Binding_Behaviour_to_a_Policy
My personal experience is that you as a developer get much more control over events in the repository using behaviours (opposed to rules). But maybe thats just me :)
i think this type of questions already asked before and the solutions suggest that you should use Windows.location.hash
but i dont know at what instance of program i have to do this while adding the history point or in the navigate event of script manager(i mean calling javascript function from code behind)
Some people suggest that we have to modify the MicrosoftAjax.js file can you please suggest me something
I suggest not to invent a wheel and to use already available programs, for example Webdav.
Client: http://www.webdavsystem.com/ajaxfilebrowser/