Categories for Article in Liferay - liferay

I am using Liferay 6.1.0 GA1.
Where I can change Categories that are displayed in
Asset Publisher -> Edit (Article) -> Categorization
where local (defined in group or organization) instead of being global?

Related

Liferay 7.0 Search Hook

I'm working with Liferay 7.0 GA3 and I want to customize the Search Portlet.
With the default portlet I can select between sites, asset entries,
folders, users and time when I'm looking at the page as Guest, but
when I'm logged I can see sites, asset entries, tags, categories,
folders, users and time. I would need to show only asset entries
(documents and web content articles, but no documents folder and web
content folders), categories and time.
Another problem is that I imported the data from another server and
now when I search something being a Guest, the porlet only shows me
documents but no web content. However, if I'm logged the porlet
works fine.
I do not know what is the problem with the point 2 yet, but a provisional solution is to go to:
Users -> Roles and select Define Permissions to Guest.
Navigate to Site Administration -> Content -> Web Content
Check the box View associated with Web Content Article.

How to change 6.2 Documents and Media Display view like 6.0.6

I have installed Liferay 6.2 in my personal site. But i need Documents and Media Display view same as Liferay 6.0.6 not like 6.2 format ,Because when i click Liferay 6.2 documents at Documents and Media Display it is drive to another details page, i need to download documents when i click documents (same as 6.0.6)
If any one have HOOKs for Documents and Media Display and how to change "rowHREF" line please guide me.
You might want to consider to look into "ADT" (Application Display Templates). Some of Liferay's Portlets accept Freemarker templates for the display. For example Media Gallery does, and comes with an example in the global scope. Check if Document and Media Display has the same (or just use Media Gallery).

Liferay Documents and Media - Document title localization

I'd like to localize "title" attribute of images administered in Document and Media library (at least the title, the description should also be localized).
My scenario:
To add images to Documents and Media library
To display the images on a page using Media Gallery portlet
To see localized title of the images
Media Gallery portlet renders the image previews with their title. The problem is the title, which is not localized.
The question is, how can I localize the title?
The same applies for folders and their names - How can I localize them?
Version - Liferay 6.2 CE
I adapted the following approach (in Liferay 6.2).
Whenever the localization is needed, I prefer to create journal articles with document attachments (possibly with custom structure).
The journal articles fully support localization and some other useful features like publication scheduling.

How to change 6.1 Documents and Media Display view like 6.0.6

I have installed Liferay 6.1 in my personal site.
But i need Documents and Media Display view same as Liferay 6.0.6 not like 6.1 format ,Because when i click Liferay 6.1 documents at Documents and Media Display it is drive to another details page, i need to download documents when i click documents (same as 6.0.6)
How to change 6.1 Documents and Media Display view like 6.0.6 .
Generally speaking, in order to "override" the out-of-the-box functionality of Liferay portlets you will need to hook the respective JSP pages.
The Document Display renders file entries in a search container with rowHREF(line 111) controlling the navigation to the details page. The download URL (line 473) within that page doesn't appear to use anything that you wouldn't have access too "higher" up.
So, you should be able to do something similar to the following in place of the if/else.
rowHREF = DLUtil.getPreviewURL(fileEntry , fileEntry.getLatestFileVersion(), themeDisplay, StringPool.BLANK);
Of course, this assumes you'll always want the latest version of the file. If you want to provide the ability to download "archived" versions, then I would suggest leaving the details navigation in place and consider alternative means by which to provide download functionality. For example, we use Category Navigation + Asset Publisher with a custom Display Template to allow a browsable/filterable alternative to directly exposing Documents and Media Display as we wanted to restrict that portlet's scope of use to admin-only.

Liferay Asset Publisher: Cannot open Document

after adding a document by portlet 'Documents and media' im trying to open the document within asset publisher, which is not working and detail view is not shown.
After publishing a document is is displayed inside of asset publisher. The document is visible by anyone (Guest role).
The asset publisher display settings are configured to show full content (Asset link behaviour) but after click on document it is not opening the detail page. It is just refreshing the hole page.
My setup is linux x64 tomcat 7 and liferay set up by myself. But i've tried liferay tomcat bundle in different versions too. I did not hook the asset publisher.
Problem was i used java8. Liferay does not support java8, even if most is working with it.

Resources