Foren

Home » Liferay Portal » English » Liferay Legacy

Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
deane turner
How to add a new Journal article type category?
11. Dezember 2006 13:11
Antwort

deane turner

Rang: New Member

Nachrichten: 2

Eintrittsdatum: 11. Dezember 2006

Neue Beiträge

Hello,

Have search quite a bit, and I can't find the mechanism to add an article type to the others - General, News, Press Release, and Test.

Any help would be greatly appreciated.
Alexander Chow
RE: How to add a new Journal article type category?
11. Dezember 2006 22:26
Antwort

Alexander Chow

LIFERAY STAFF

Rang: Liferay Master

Nachrichten: 519

Eintrittsdatum: 19. Juli 2005

Neue Beiträge

It is set in the portal.properties file under:

journal.article.types=announcements,blogs,general,news,press-release,test

So, in your portal-ext.properties, override journal.article.types and append your additional types.
Chad Shryock
RE: How to add a new Journal article type category?
12. Dezember 2006 05:28
Antwort

Chad Shryock

Rang: Expert

Nachrichten: 285

Eintrittsdatum: 26. August 2006

Neue Beiträge

Is there or has there been any talk of adding a way to add new types without the ext environemnt?
deane turner
RE: How to add a new Journal article type category?
13. Dezember 2006 05:57
Antwort

deane turner

Rang: New Member

Nachrichten: 2

Eintrittsdatum: 11. Dezember 2006

Neue Beiträge

Great! Thanks for the reply Alexander. Skimmed that file, but looks like I need to study it much further.

http://content.liferay.com/document/portal.properties.html
Jorge Ferrer
RE: How to add a new Journal article type category?
12. Dezember 2006 11:31
Antwort

Jorge Ferrer

LIFERAY STAFF

Rang: Liferay Legend

Nachrichten: 2725

Eintrittsdatum: 31. August 2006

Neue Beiträge

Hi Chad,

We usually refer to the ext environment when mentioning portal-ext.properties, but it's not really necessary.

You can create that file yourself and put it in the classpath visible by the portal.
Michael Saechang
Thread Splitted
22. April 2008 10:12
Antwort

Michael Saechang

LIFERAY STAFF

Rang: Liferay Master

Nachrichten: 577

Eintrittsdatum: 19. November 2007

Neue Beiträge

The new thread can be found at http://www.liferay.com/web/guest/community/forums/message_boards/message/705887.
Orin Fink
RE: How to add a new Journal article type category?
16. März 2012 10:16
Antwort

Orin Fink

Rang: Junior Member

Nachrichten: 37

Eintrittsdatum: 24. März 2010

Neue Beiträge

I know this is an old post but thought i would mention that since the .properties file expects a key value, you may not be able to use friendly names in this list. In order to have a friendly name displayed in the dropdown menu from the User Interface, you will also have to add the language key and a friendly display string to a language hook. this also gives you the benefit of translating the string per language.

For example, in the portal-ext.properties, if you add journal.article.types=announcements,blogs,general,news,press-release,quarterly-newsletter

then in your language hook, you'll need to add
quarterly-newsletter=Quarterly Newsletter

and then your content editors may be a bit more happy with a friendly string in the content editor dropdown and the search form dropdown.