Fórumok

Images in Gallery directly from the file system

Klemens Dickbauer, módosítva 12 év-val korábban

Images in Gallery directly from the file system

Junior Member Bejegyzések: 29 Csatlakozás dátuma: 2012.02.05. Legújabb bejegyzések
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
thumbnail
Mika Koivisto, módosítva 12 év-val korábban

RE: Images in Gallery directly from the file system

Liferay Legend Bejegyzések: 1519 Csatlakozás dátuma: 2006.08.07. Legújabb bejegyzések
In Liferay 6.1 you could implement your own Repository hook that reads the filesystem.
Klemens Dickbauer, módosítva 12 év-val korábban

RE: Images in Gallery directly from the file system

Junior Member Bejegyzések: 29 Csatlakozás dátuma: 2012.02.05. Legújabb bejegyzések
Sounds like an interesting task... :-)
Is there some good starting point to start reading?
thumbnail
Mika Koivisto, módosítva 12 év-val korábban

RE: Images in Gallery directly from the file system

Liferay Legend Bejegyzések: 1519 Csatlakozás dátuma: 2006.08.07. Legújabb bejegyzések
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.