Forums

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

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Klemens Dickbauer
Images in Gallery directly from the file system
February 11, 2012 3:27 PM
Answer

Klemens Dickbauer

Rank: New Member

Posts: 24

Join Date: February 4, 2012

Recent Posts

Ahoj

I'm still quite new to Liferay, so please excuse conceptual any weakness in my thinking.
What I like to do: I have a lot of pictures on a server's harddrive, with a lot of directories and subdirectories. Is it somehow possible to take the image files directly from the file system without importing it, and having just metadata, rights, thumbnails etc. in liferay's repository? I would still like to have direct file system access to the images, because a lot of other tools (image workflow, backup to another system, automated download) rely on that directory structure and file names. On the other hand, Liferay is a great portal and a gallery portlet to integrate also the images is a good use case.
Anyway, my constellation might be somewhat exotic, and I do not consider that the gallery portlet can make use of the file system directly - it would have to some kind of "mixed" DLHook, or two differen DLHook's. Would anybody find this would be useful function? Would a gallery portlet whith such a functionaly be considered useful?

~Klemens
Mika Koivisto
RE: Images in Gallery directly from the file system
February 13, 2012 4:15 PM
Answer

Mika Koivisto

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1498

Join Date: August 7, 2006

Recent Posts

In Liferay 6.1 you could implement your own Repository hook that reads the filesystem.
Klemens Dickbauer
RE: Images in Gallery directly from the file system
February 15, 2012 2:21 PM
Answer

Klemens Dickbauer

Rank: New Member

Posts: 24

Join Date: February 4, 2012

Recent Posts

Sounds like an interesting task... :-)
Is there some good starting point to start reading?
Mika Koivisto
RE: Images in Gallery directly from the file system
February 15, 2012 2:34 PM
Answer

Mika Koivisto

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1498

Join Date: August 7, 2006

Recent Posts

There's no how to guides for that but you could look at Repository, BaseRepositoryImpl and CMISRepository classes. BaseRepositoryImpl is the one your custom repository hook would extend. In 6.1 EE documentum-hook is a good example how to implement a custom repository as a hook.