I have created a template of a class using velocity template and passed dynamic variables to it. It did created a class for me but when i tried to loa ...
I have created a template of a class using velocity template and passed dynamic variables to it. It did created a class for me but when i tried to loa ...
I want to delete a cookie USERID in my liferay custom theme free marker templete i am using liferay DXP I tried this code but give me null poi ...
I am designing a new template for my asset publisher to get all contents with a class com.liferay.portlet.journal.model.JournalArticle from a ...
I want to create VM theme in liferay 7. I made the changes in package.json and changed the templateLanguage to vm. Next I changed liferay-look-and-fee ...
I have this code in .vm file How to get the jquery attribute (which is clientside) to velocity template variable which is serverside? ...
I am trying get the "theme_display" in a Web Content Template (on Liferay Portal 6.2). But it does not work. $themeDisplay $theme_display $reques ...
In my Liferay 6.2 EE Velocity Webcontent template i declared the themeDisplay object as follows: I also adapted my portal-ext.properties: Now i ...
On adding a web content in an asset publisher, we are getting empty request object but if we add the same web content in web content display then we a ...
I am trying to get the cookies value in portal_normal.vm of my custom liferay theme. At first I am setting a cookie value on click event using JavaSc ...
I need to create the Structure and Template progrmatically through java code.I used following code snippets. Structure: Template: The above sni ...
I'm new to Liferay and I'm trying to figure out if it's possible to dynamically add or subtract child pages on the fly. From what I've done so far I'v ...
I need to append a suffix to an URL in Velocity (inside a Liferay template). I have the following (simplified) code: In my intention this should r ...
I'm using Liferay for the first time at my job and I'm finding it difficult to do what at first glance seemed like an easy scenario. I've just been go ...
I have a theme project in liferay. I have created a new table called colors in my liferay MySQL database. The colors table is given below Actually ...
I know how to get groupid in liferay velocity theme using: However I also need to get a folder's ID using its name. I have been researching for a w ...
A simple example: What renders on the page is just the text with no data. $roleLocalService.getUserRoles($userId) What am I missing? ...
I want to create a Liferay web content which will display selection box of multiple states. I created one select field in Structure for showing State ...
I am using the below code in ADT custom template code But this is giving utilLocator.findUtil("com.liferay.portlet.asset.service.AssetEntryLocalSer ...
I'm trying to retrieve other web contents / articles from inside another a velocity template. What I would like to to get is a list with published ar ...
I have created a Liferay Web Content Structure and Template. This Structure contains an image that can or can not be set. If the image is not set then ...