Integrate liferay cms into existing java application - content-management-system

I have an existing java web application, servlet based. I plan to add a module to show news articles to visitors. So i choose liferay as our CMS. The solution in my mind is that using an iframe in my web site to show news articles managed by liferay CMS. If i do so, is it convenient for our news editor to manage news articles with liferay CMS? Shall he/she switched to liferay to do this? It seems that the preview function of liferay CMS could guarantee only the inline iframe's visual effect is nice, am i right here?
Besides, could you please advise me a better solution other than iframe based solution?
I am looking forward for your comments, any help here would be appreciated!

Maybe it's better that liferay includes the existing Web app.

Related

Eclipse RAP Web Application and Google AdSense Integration

I am planning to develop a website in Eclipse RAP, as I am a Eclipse fan and know bit of RCP. And I would like to make use of the Google AdSense so that commercial ads can be displayed in my web site. As RAP is bit different from regular web applications, I would like to know whether Google AdSense can be used in my RAP based web site.
Also I came across some news regarding the restriction on number of concurrent sessions in RAP based web applications. What is the maximum limit? Will it be improved in the newer versions in future? Kindly clarify the same. Thanks in advance.
I don't know about AdSense specifically, but you should have a look at the Browser widget. It's a widget that can contain any HTML/JS and renders as an IFRAME in the web browser.
Update: as a workaround, you could add an HTML element in a JavaScript snippet that you send to the client using JavaScriptExecutor. This snippet could append an element to the document using plain DOM API, or append an element to a RAP widget using the RAP client API. Have a look at rap.getObject() and Widget.$el.
Yet another approach would be to develop a custom widget.

Hows tags work in liferay?

I am new to liferay and am a student. I need to develop a portlet in liferay that allows users to pick tags from the tag pool.
The portlet should look like this wiki-page, take a look at the Categorization section.
Can anyone suggest how to develop that?
Liferay is open source. Please download the portal source and have a look into the journal article portlet.
Hint : Please checkout the liferay-ui taglib. There is a tag called asset-tags-selector, just have that in your jsp and you will have tag selector in your portlet.
If you need to make it in "Liferay style", you have to implement your data object as an asset. See this Liferay Asset framework tutorial. In the section "Entering and displaying tags and categories" there is an example of <asset-tags-selector> that Felix suggested.
Otherwise you can try some javascript libraries. Google can help you with this.

Sitefinity and custom development

We are considering purchasing Sitefinity (or DotNetNuke) on pretty short notice and there are is a question I have that I am having trouble finding a quick answer to. (I have a separate but similar post with DotNetNuke as the focus, if you can answer that better or in addition.)
We are currently not using any CMS at all and we have some custom development that will not go away just because we go with a CMS for some or most of our site.
Our custom development is c# ASPX with Site Master and nested Site Master pages. These custom apps do not own their own top level in our web site, but are part of a branch, typically one or two levels down (for example, http://www.contoso.com/branch/app/default.aspx).
How is Sitefinity typically configured in a CMS/Custom “mixed mode”? For example, is Sitefinity installed at the “top” of the web site, or “where needed” down in the web site.
How does this relate when mixing CMS and custom web applications?
Does the CMS interface allow for adding these custom apps or do you just go to the web server and add them to the structure?
It appears from reading other posts, we can create our own custom c# modules and have CMS editors “drop in” the modules on the pages. Can someone confirm that for me?
If I did not provide enough detail, please feel free to ask for more.
We have Sitefinity installed at the root with plenty of subfolders containing custom pages. We typically build a usercontrol, add it to the sitefinity ToolboxesConfig.config file, then drag/drop it into a sitefinity CMS page. I believe this is what you're talking about regarding having "CMS editors drop in modules on the pages".
We also have master/child pages that are imported as page templates into Sitefinity and they work well. You can also link from any CMS page to a regular .aspx page out in a subfolder of your own and implement code there that uses the sitefinity API, but we personally found this much more tricky and veered away from this approach whenever possible.
So in a nutshell, custom code is relatively easy to integrate into sitefinity as long as you can condense it into a user control or master page.
Disclaimer: This was all done with regular web forms development. I'm not sure how an MVC site would interact with Sitefinity (which I believe is built using an MVC architecture itself anyway).
The part of your question I'm unsure of is regarding the custom webapps in nested branches. I would recommend installing the trial version of sitefinity and trying to get a single branch integrated as a prototype. This might take a day, but it would be worth it to know if the sitefinity route is going to give you heartache.
Full disclaimer: I work on Sitefinity.
First, let me say that throughout the history of Sitefinity, extensibility and developer-friendliness have been our top priorities. We've tried to create a CMS that uses concepts familiar to ASP.NET developers and build on top of them.
Now let me go through each of your points.
You can organize Sitefinity deployment however you like. In your case with sub-apps, you can either create virtual directories in IIS and deploy separate instances of Sitefinity in each of them, or you can use the CMS to do the sub-apps. In the CMS they can be separate branches of pages, have separate templates applied and feel like separate sites. You'll still manage them through one interface. It is up to you to choose an approach.
Sitefinity is a normal ASP.NET web application with the CMS assemblies in the BIN folder. You can open the project in Visual Studio and run it like a normal ASP.NET Web app. From a developer viewpoint, there's no difference between a custom app and a Sitefinity app - they are just ASP.NET web apps.
If you follow an approach of installing Sitefinity in the root and then using the CMS to create sub-apps, you can do it through the UI. If you choose to run separate virtual directories, you have to manually upload the files. Also, Sitefinity has a built-in File explorer, which you can use to manage the files on the server.
The modules you are referring to are called widgets in Sitefinity. For a developer, they are nothing more than custom ASP.NET controls and user controls. The Sitefinity page editor UI allows you to drop widgets in placeholders on a page and configure their properties. The placeholders are defined in a masterpage (a normal ASP.NET masterpage) or through the UI.
It is very easy to create custom widgets. Here's a Quick Start: http://www.sitefinity.com/blogs/gabesumner/posts/11-08-29/ldquo_hello_world_rdquo_guide_to_custom_sitefinity_widgets_amp_controldesigners.aspx
We also have modules, which are a little more complicated concepts. They manage data, have backend and frontend UI. I encourage you to go through our blogs and documentation for further info.
We also have an SDK, containing samples with source code for extensions to the CMS.
You may want to look at Kentico CMS that supports similar scenarios - you can easily mix your own ASPX pages and CMS-controlled ASPX pages, so it's very flexible.

WebPage Maker online?

Is there an existing CMS similar to what the WebPage Maker software can do? For those who don't know what WebPage Maker is, it's a webpage authoring software that features drag and drop functionality which allows users with minimal to no knowledge about HTML, to easily create webpages and publish it to their sites. I want to know if there's a CMS that does the same as this software already?
WebPage Maker's website is http://www.webpage-maker.com/
P.S.
I'm looking for something that I can implement on websites that I make.
You can give mojomotor a try.. It is a paid one. You need to login as admin and then click on the page and edit. The same is possible for small layout changes too.
If you willing to learn some basic installation of other CMS rather than webpage maker, i suggest you use Joomla CMS.
http://www.joomla.org/
It's very easy to use, hv a try =)

Ad CMS to an existing website

I am researching integrating CMS into an already existing website.
I would like to set up certain pages to be editable by co-workers where they can upload/edit content via an online form.
I am however, restricted in that I cannot use PHP(i know, lame!) and I don't have ftp access to this server. I edit the html files on a mirror site and they get uploaded to the webserver by my supervisor.
I would like to use a CMS similar to CushyCMS. Is there a cms service or code that I can put into my html files that would enable my co-workers to edit their pages?
Thank you for your help!
is not possible, you need to use a technology that support server side stuff like PHP, ASP, JSP, asp.net...
If you don't have direct access to the web site is impossible to do something like that.
An easy way was to install a normal CMS like joomla, wordpress, or many others and that designing the theme same as the existing one.