掲示板
Liferay Repository for Web content
Liferay Repository for Web content
Junior Member 投稿: 56 参加年月日: 12/04/26 最新の投稿I wanted to know that where does Liferay store the web content that we publish through its "Web Content" tool. Also, when we provide translation for the content, where is that stored?
Thanks.
RE: Liferay Repository for Web content
Junior Member 投稿: 85 参加年月日: 10/03/02 最新の投稿In Database "journalarticle" is main table to store web content.
In Content columns , web content data is stored in the form of XML like :
<?xml version="1.0"?>
<root available-locales="en_US" default-locale="en_US">
<static-content language-id="en_US"><p> This is my Own Terms of Use Showing within Web content adjust by Hook.</p></static-content>
</root>
Also Multilingual Content is saved in same table in XML format like
<?xml version="1.0"?>
<root available-locales="en_US,hi_IN," default-locale="hi_IN">
<static-content language-id="en_US"><style type="text/css"> h1 {font-size:36pt;} h2 {color:blue;} p {margin-left:50px;}</style> <h1> This header is 36 pt</h1> <h2> This header is blue</h2> <p> This paragraph has a left margin of 50 pixels</p></static-content>
<static-content language-id="hi_IN">इस अनुच्छेद 50 पिक्सल के बाईं मार्जिन</static-content>
</root>
HTH
RE: Liferay Repository for Web content
Junior Member 投稿: 76 参加年月日: 12/04/10 最新の投稿The meta data is stored in the database table. However the actual content is stored based on Store configuration
BaseStore
-> FileSystemStore -> plain file system
---> AdvancedFileSystemStore -> advance folder and file handling
-> DBStore -> database
-> CMISStore -> any CMIS compliant repository
-> JCRStore -> any JSR170 compliant repository
-> S3Store -> amazon store
RE: Liferay Repository for Web content
Liferay Master 投稿: 803 参加年月日: 08/03/10 最新の投稿journalarticle : Stores actual web content details
journalarticleimage : Article Image will be stored
journalarticleresource : reference table
journalcontentsearch : used by web content search
journalfeed : Details about web content feed
journalstructure : Stores structure details when you create any structure in web content
journaltemplate : Stores template details when you create any template in web content
RE: Liferay Repository for Web content
Junior Member 投稿: 56 参加年月日: 12/04/26 最新の投稿I am using the default HSQL database. Where can I find it in HSQL?
RE: Liferay Repository for Web content
Liferay Master 投稿: 803 参加年月日: 08/03/10 最新の投稿you can find this file in your tomcat data folder e.g\tomcat\liferay-portal-6.1.0-ce-ga1\data\hsql\lportal.script
RE: Liferay Repository for Web content
Junior Member 投稿: 56 参加年月日: 12/04/26 最新の投稿In HSQL it will be stored in file system like which will be stored in form of query.
you can find this file in your tomcat data folder e.g\tomcat\liferay-portal-6.1.0-ce-ga1\data\hsql\lportal.script
Can I access the content from HSQL client by running hsql.jar?
The lportal.script file contains data but it's quite difficult to understand.
RE: Liferay Repository for Web content
Liferay Master 投稿: 803 参加年月日: 08/03/10 最新の投稿Jignesh Vachhani:In HSQL it will be stored in file system like which will be stored in form of query.
you can find this file in your tomcat data folder e.g\tomcat\liferay-portal-6.1.0-ce-ga1\data\hsql\lportal.script
Can I access the content from HSQL client by running hsql.jar?
The lportal.script file contains data but it's quite difficult to understand.
I would suggest don't go with HSQL because liferay also doesn't propose to use this DB.
So better you go with mysql or other db and check
RE: Liferay Repository for Web content
Junior Member 投稿: 76 参加年月日: 12/04/10 最新の投稿RE: Liferay Repository for Web content
Liferay Legend 投稿: 7942 参加年月日: 10/03/24 最新の投稿In either case, you have to have liferay shutdown becase liferay flushes content when it is shutting down.
RE: Liferay Repository for Web content
Junior Member 投稿: 60 参加年月日: 18/03/16 最新の投稿Hello Jignesh,
While creating webcontent, I used CTRL+L, where it gives me option to select protocol, Display name and the URL.
In JournalArticle table, I got Display name and URL, but did not get the protocol selected, such as <other>, http://, https://.
Please help with the table name to fetch the protocol selected, so that list of all sites and their respecticve web contents can be pulled from the database where <other> protocol is used.
Thanking you in anticipation.
Taruchit Goyal
RE: Liferay Repository for Web content
Liferay Legend 投稿: 6403 参加年月日: 08/09/23 最新の投稿Taruchit Goyal:While creating webcontent, I used CTRL+L, where it gives me option to select protocol, Display name and the URL.
In JournalArticle table, I got Display name and URL, but did not get the protocol selected, such as <other>, http://, https://.
Please help with the table name to fetch the protocol selected, so that list of all sites and their respecticve web contents can be pulled from the database where <other> protocol is used.
Other than "you should not think in terms of table names", I have no clue what you're trying to do. Please explain in user/author terms, to get to your underlying business problem rather than your current approach for a technical solution.
The tables and persistence layer can change any time - and when you believe you understand them more deeply, you might be tempted to change data on this layer. This is a recipe for disaster and might prevent you from future upgrades. This is one of the main reasons why looking at the database is generally discouraged (but changing the database is absolutely forbidden).
Use the API to "pull content", you shouldn't need to worry if it comes from the database, memory, or elsewhere.
RE: Liferay Repository for Web content
Junior Member 投稿: 60 参加年月日: 18/03/16 最新の投稿Hello Olaf Kock,
Thank you for response.
I need to perform an update query on all webcontents where <other> protocol is used while giving URL of documents. Thus, I need the table to do the same.
Reason for update query:
When I create a webcontent, and press CTRL+ L, it gives a new window, where I enter details such as:
1. Display Text
2. URL
When I enter the URL of document, such as /documents/48189301/0/TestContent.txt/bc1dfa91-72aa-22ef-ab12-946d8c01520f , the protocol changes to <other>. Then, I save the webcontent and then drop the same on the page. When I click on Display text which appears like hyperlink, it fails to load, but some times it works.
Thus, to update the same on all webcontents with <other> protocol, it was felt to execute the update query and change the protocol from <other> to http://.
There is no pattern of URL which helps us to identify the difference during success and failure.
Incase, you have a better solution other then executing update query, please suggest.
Thanks
Taruchit Goyal