Allen Ziegenfus
Did you know that you could subscribe to a RSS feed for Liferay blogs? You can use this URL to subscribe to community blogs on the liferay.dev site: https://liferay.dev/c/blogs/rss?plid=119785330&groupId=14 In addition to the community blogs, we also have blogs on our main web site on a variety of topics: https://www.liferay.com/blog Starting next week (by October 14th or 15th), we will...
Freemarker has some nice native support for working with JSON. And with the help of a few Liferay utility classes, it's very easy to even consume JSON web services from Freemarker. Note: you can view all of the example code on github: https://github.com/allen-ziegenfus/dev-playground/tree/master/freemarker Converting JSON to Freemarker types Freemarker hashes and...
If you want to find out more information about how a search is being executed in Liferay, you can modify the logging settings to output search queries to the log. To do this, go into Control Panel-> Server Administration -> Log Levels -> Add Category and add a new entry for the class com.liferay.portal.kernel.search.SearchEngineUtil for log level DEBUG. (Please note that...
One really cool feature of Liferay JSON web services is the ability to nest service calls. For example, what if you would like to update a web content journal article via JSON? The /journalarticle/update-article method requires the following four parameters: Parameter Description groupId ID for the Liferay...
Liferay DDLs are quite useful for dealing with small sets of custom data, for which it would be overkill to create a new service. Our event microsites use DDLs extensively for displaying speaker, agenda and sponsor information. Through the the Skinny JSON Provider, our DDL data information is even served via JSON-WS for use in the Liferay Events App. How cool! DDL templates...
There is nothing worse than starting your day and being confronted with an error like this: com.liferay.portlet.dynamicdatamapping.StorageException: com.liferay.portal.NoSuchUserException: No User exists with the primary key 0 I certainly *DO* exist, Liferay, and do not appreciate being assigned the number 0. I received this error while trying to add a DDL...
To set up Liferay Developer Studio to use git on OSX you might run into an issue that the git configuration options are not shown in the preferences window. To fix this you can run Developer Studio with the -clean option. Here is a short list of steps to getting egit working: 1. Install egit/JGit by adding this software site: egit -...
Through Liferay's JSON-WS interface it is possible to automate tasks that might otherwise take lots of time through Liferay portal's GUI interface. For example for my work I often need to create a set of DDL record sets. By using the method "/ddlrecordset/add-record-set" it is possible to create these through JSON-WS from either a website or any other JSON client. ...