Here are some options and tools that you can use to enhance your content and user experience.
When you create a new web content article, you can choose a default language. First, you must change the system configuration to enable the option to change the default language.
Go to the Control Panel → System Settings.
Locate Web Content → Administration by scrolling or using the search bar.
Check the box labeled Changeable Default Language.
You must now add translations for any languages you need. Adding translations works like this:
Open a web content article.
Click the flag icon with a country code on it next to any localizable web content field.
Select a language from the list.
When you select a language, all fields in the article switch to the new language. To create the new translation, fill in the fields in the selected language and publish the article.
You can modify the language translation list by inserting
followed by your preferred languages in your
portal-ext.properties file. For
locales.enabled=ar_SA,nl_NL,hi_IN offers Arabic (Saudi Arabia),
Dutch (Netherlands), and Hindi (India).
When you create a new web content structure, each field you create has a Localizable checkbox displayed next to it. This enables you to control what can and can’t be changed in the translation process. For example, if you don’t want images or content titles to be changed when the content is translated, you can make sure those fields aren’t llocalizable. When you follow the steps above to localize content, only fields within the structure that had the Localizable box checked appear within the translation window.
Xuggler is a tool which generates video previews and makes it possible to embed videos from your Documents and Media library in web content and elsewhere on the site. To enable Xuggler,
Navigate to the Control Panel.
Click on Configuration → Server Administration → External Services.
Scroll to the bottom and click Install in the Xuggler section.
This downloads the necessary libraries and prompts you to restart the server to enable Xuggler.
After the server restarts, you can enable Xuggler from the same page.
Once Xuggler has been installed and enabled, you can embed a video or audio file in a web content article the same way you added images previously.
Tools like the Resource Importer and Site Initiators can be deployed to build a site almost instantly. Before you can use them to import Web Content, however, you first need to have the content exported individually in XML format. To export the content,
Go to Site Administration → Content → Web Content.
Start editing the article you want to download.
Click the Options icon () in the top right of the page and select View Source.
This displays the raw XML source of the article. You can copy this content to save into an XML file locally.
An administrator or web content writer can subscribe to an article or folder to follow changes being made to it.
Go to Content → Web Content for your Site.
Click Options () → Subscribe next to the article or folder you want to follow.
Anytime an asset that you follow is modified, you receive an email notifying you of the change.
That’s pretty much all there is to basic content creation. Whole sites have been created this way. But if you want to take advantage of the full power of Liferay DXP’s WCM, you’ll want to use structures and templates or Fragments. You’ll cover these topics next.
By default, when you select a structure to add a new Web Content article, the structures are ordered by their IDs, not their names. This can be confusing, but—never fear—there’s a configuration property to sort them alphabetically.
To enable this property for Site Administration,
Go to Configuration → System Settings → Web Content → Web Content Administration.
Check the box labeled Journal Browse by Structures Sorted by Name.
With Liferay DXP 7.1 Fix Pack 2 or greater, you can also set this property for the Web Content Display widget. To enable this property for the Web Content Display,
Go to Configuration → System Settings → Web Content → Web Content Display.
Check the box labeled Sort Structures by Name.
After this option is checked, the structures are sorted alphabetically. Note that enabling this property can degrade performance with large structure libraries.