Im new to Liferay . I have downloaded the Liferay Tomcat bundle v5.2.3 Community Edition from the Liferay website. I am able to run it successfully.
I am now trying to create an intranet portal for our company using Liferay . I created an Organization in Liferay and added some pages and child pages to it.
How to add content to a page ?. I mean, i would like to add some text and images etc to the home page and other pages on the portal. I tried the Web Content Display portlet, but it always appears minimized and i have to maximise it by clicking on the maximize button. And also the option to minimize/maximize the portlet is available only when im logged in.
Is there any other way to add HTML content to a page, to make it look like a normal html page which anybody can view when they visit the portal ?
Thank You.
Web Content Display is indeed the easiest choice. You probably just made a mistake when using it.
Add the web content display portet
Click on "add web content" icon at the bottom-left of the portlet
You get a rich text editor, but you can also toggle to HTML view
When you're done click on "Save and approve".
Liferay CMS is built on the concept of template, structure and article.
structure: the element to be rendered, e.g. one text area + one image
template: the rendering of the structure, e.g. image in top-left + text around the image
article: the actual data that corresponds to a structure
But you should be able to edit your first Web Content Display without having an structure nor template. But I suggest you to have a look at them once your are used to the portal.
Once you have added the web content portlet and then added content, you need to configure the layout template you want. Choose the one column layout to let the portlet take up the whole screen.
I think you are asking how to create a new page of type web content.
note the content_id of your web content
make sure your web content is approved, published, and viewable (permissions)
create your page, entering your content_id into the Web Content ID field
I think when you do it this way, you forsake some of the portlet functionality that Liferay brings you.
Related
I want to build a Java application through which a user can request a web page, which loads in inside the Java application (not in a browser).
After the page loads, the user can select whichever elements they like on the page, and I want to track which elements they click through the DOM.
I.E. the user clicks the image of a product, then I want to get that particular element of the DOM, with all the attributes such as src, class, id, etc.
I'd like to know if any frameworks get close to doing anything like this. Especially the clicked elements, since the web page I am pretty sure there are quite a few ways to load in inside a Java application.
I don't know if this is what you have in mind, but you can try to take a look at HtmlUnit http://htmlunit.sourceforge.net/gettingStarted.html . It is said that it is used for unit tests, but it can be used also for other purposes; one of the descriptions I found is:
"A java GUI-Less browser, which allows high-level manipulation of web pages, such as filling forms and clicking links; just getPage(url), find a hyperlink, click() and you have all the HTML, JavaScript, and Ajax are automatically processed."
I have a custom navigation portlet which includes links to several pages in my portal. Some of these links, though, are "submenu" options that are actually actions of a specific portlet. For instance, take a look at this image:
I have a portlet that displays a list of movies, and can also apply a filter by genre. Those links I've circled in my image should be links to the page with the Movie List portlet, but with a different action for each link.
How can I achieve that? I can only make actionURLs within a portlet, not for other portlets.
You can create actionURLs to another portlet using the following tag provided by liferay and not by the portlet standard:
<liferay-portlet:actionURL plid="" portletName="" />
where "plid" is the layout id of the page that the portlet is in and "portlet name" is the portlet id of the portlet that defines the actions that you want to call.
However, if the links you mention, apply filters to the movies list, then you could also do the filtering on page render and not necessarily using action processing.
I have a GWT app in which I use an Angular directive (I put it in the main html file). Everything works fine until I press a link in the angular directive which should direct me to an external URL. Instead of opening the URL I see that the address bar changes accordingly but the page loaded is the default place I defined in the GWT app, meaning it doesn't leave the GWT, it only changes places. Can anyone shed some light ?
Any way to make the web content appear maximized by default instead of minimized ?.Im using Liferay v5.2.3 Community Edition.
Please Help.
Thank You
If i understand what you're trying to do, you'd like a menu item to display static HTML... If this is in fact what you want to do, then you can set the page 'type' under "manage pages" to 'article' and set the article id as well. This will show the article content (HTML) under that page (maximized). If it's an external HTML page you can do embedded as the page type I believe.
I think the answer you're looking for is to maximise web content over the whole page? rather than having two columns?
If i'm right then all you have to do is make the page have one column. As administrator go to:
Manage --> Page Layout --> One Column --> Save
Im using Liferay Portal v5.2.3 Community Edition. I have the following two questions which i hope someone would be kind enough to answer.
1.) I want to add some content to the About Us Page of my intranet portal. I added Web Content Display portlet, and maximized the screen after adding content. But accessing the portal, it always appears minimized.
Any way to solve this issue ?
2.) When i try to add a template after creating a structure, i have to select the script file to be used. I found some vm files for 7Cogs portal,but couldnt find any for the organization i created . Where are these vm or css files located and which one to use ?
Please Help.
Thank You.
For 1) There's no need to "maximize" anything if that's the only thing you have on a page. Just choose the single-column layout and place your Web Content in this single column that covers the whole screen.
For 2) you'll have to add the templates yourself. Every template belongs to a structure, so if you create your own structure, you also need to create templates that can display this structure.
You create templates in the same place you create structures: Go to the Control Panel. In the "Web Content" section you find tabs for structures and templates. When you create a template you need to specify a matching structure there. Once you've done that you can choose that template in your web content