

From the previous mentioned article you'll learn that for the Document Library several interfaces and abstract classes are available to extend. The factory class will be chained in the list of factory classes according to the service ranking. This factory class instantiates and returns your Display Context which provides all the necessities for your view. To register your Display Context object so that a dlDispla圜ontextProvider can return it, you should also implement a Display Context Factory. So you'll need to provide the implementation for a Display Context object and have it return some kind of menu. If you don't know what a Display Context is, read the Liferaypedia article describing it (don't worry, I had to discover this new object myself).Ī Display Context is a Java class that controls access to a portlet screen's UI elements

#Simpleedit liferay code
The only JSP code here is just one line (all the other lines are scriptlets :-s): In the new Document Library module the main object used is DLViewFileVersionDispla圜ontext. We used to override the file_entry_action.jsp file and add the SimpleEdit action to the icon-menu. So here is an overview of what you would need to do if you ever want to achieve the same goals. These menu's weren't build anymore in a JSP, but through different classes.Īfter several deep dives into the source code, reading a handful tutorials (see the Resources section) and even a short Twitter conversation with one of the Liferay Document Library developers, we were able to add the four menu items mentioned above. But after a deep dive into the source code it became clear that this would not be the way forward. Whether you're a designer, publisher, engineer, doctor, accountant or even an astronaut (true story), SimpleEdit you will it. For example a Photoshop file, CAD drawing, spreadsheet, image or video. We hoped to be lucky and just port our changes to the new versions of JSP's in Liferay DXP, as described in a tutorial. SimpleEdit opens all your Alfresco & Liferay documents with the program of your preference in just one click. Looking at the DXP UI, it became clear that we needed to add our buttons in the following locations. One of the required modules for SimpleEdit was a JSP hook that provided the user with buttons in the Documents section of the Control Panel and the Documents and Media portlet. Now that Liferay has moved on to DXP, we are in the process of upgrading SimpleEdit to this new platform. At Coin we have developed SimpleEdit, a new and improved way for editing your documents stored in Alfresco or Liferay. Now that Liferay has moved on to DXP, we are in the process of upgrading SimpleEdit to this new platform.
