Forums

Home » Liferay Portal » English » 2. Using Liferay » General »

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Lee Francis Wilhelmsen
Adding Liferay Journal article categories (types)
February 25, 2008 5:42 AM
Answer

Lee Francis Wilhelmsen

Rank: Junior Member

Posts: 40

Join Date: July 27, 2007

Recent Posts

Hi

When creating an article using Liferay Journal CMS you have the choice to assign it to one of a pre-defined set of categories. If you don't know what I'm talking about then these are:

  • Announcements
  • Blogs
  • General
  • News
  • Press Release
  • Test


Is it possible to add your own category. If so, how do you go about it?

Regards
Lee Francis
Elwin Vreeke
RE: Adding Liferay Journal article categories (types)
February 25, 2008 7:18 AM
Answer

Elwin Vreeke

Rank: New Member

Posts: 8

Join Date: September 10, 2007

Recent Posts

You can find this in the portal.properties:

#
# Set the list of article types. The display text of each of the article
# types is set in content/Language.properties.
#
journal.article.types=announcements,blogs,general,news,press-release,test

And if you want to change them, you should add it to portal-ext.properties.
Lee Francis Wilhelmsen
RE: Adding Liferay Journal article categories (types)
February 26, 2008 11:58 AM
Answer

Lee Francis Wilhelmsen

Rank: Junior Member

Posts: 40

Join Date: July 27, 2007

Recent Posts

Hi Elwin

Thank you for your quick response! I have located the same location in my portal.properties file.

So I guess this means two things:

1) The actual labels for a given language "XX" can be found in the XX language file for keys:
  • announcements=<announcement label for language XX>
  • blogs=<blog label for language XX>
  • general=<general label for language XX>
  • news=<news label for language XX>
  • press-release=<press release label for language XX>
  • test=<test label for language XX>


2) If I want to add a new category and label for the journal portlet, then I must
  • Append a new unique "key" to the "journal.article.types" list in portal-ext.properties
  • Add this new unique key to every language file with the correct label for that language


Is this a correct interpretation of your answer?

Regards
Lee Francis
Ray Augé
Re: [Liferay Forums][2. Using Liferay]RE: Adding Liferay Journal article ca
March 7, 2008 5:09 PM
Answer

Ray Augé

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1129

Join Date: February 7, 2005

Recent Posts

> So I guess this means two things:
>
> 1) The actual labels for a given language "XX" can be found in the XX language file for keys:
>
  • >
  • announcements=<announcement label for language XX>
    >
  • blogs=<blog label for language XX>
    >
  • general=<general label for language XX>
    >
  • news=<news label for language XX>
    >
  • press-release=<press release label for language XX>
    >
  • test=<test label for language XX>
    >

>
> 2) If I want to add a new category and label for the journal portlet, then I must
>
  • >
  • Append a new unique "key" to the "journal.article.types" list in portal-ext.properties
    >
  • Add this new unique key to every language file with the correct label for that language
    >

>
> Is this a correct interpretation of your answer?


You got it right on... and you can then place the Language files in

ROOT/WEB-INF/classes/content/Language-ext.properties
ROOT/WEB-INF/classes/content/Language-ext_en.properties
ROOT/WEB-INF/classes/content/Language-ext_fr.properties
ROOT/WEB-INF/classes/content/Language-ext_en-US.properties
...

Remember the "-ext", these files will be merged with the default
Language files.
Srikanth Reddy Sanivarapu
RE: Re: [Liferay Forums][2. Using Liferay]RE: Adding Liferay Journal articl
November 29, 2008 3:08 AM
Answer

Srikanth Reddy Sanivarapu

Rank: Regular Member

Posts: 178

Join Date: November 14, 2008

Recent Posts

Hi,
Anyone please help me out daaaaa...

How and from where my language properties are loading into my liferay.

I know onething that these files are comming from ext-impl.jar file.

but how my liferay does know that we are selected particular language like english ,french ,arabic ......
and how the content is changing accordingly.

Please daaa give me reply ..

i am in very urgency.

PLease reply meeeee..


Thanks & Regards,
Srikanth Reddy.S