M
M
mkoreshkov2011-12-19 02:11:27
Drupal
mkoreshkov, 2011-12-19 02:11:27

Drupal gallery interacting with database

The task is this: the user can upload photos to a shared folder with pictures. When loading the paths to the pictures, they are added to the database. Also, each picture corresponds to the author's comment, which he writes when uploading a photo to the server.
And then on his /user/uID profile page, a gallery is displayed that pulls out pictures from the database and, accordingly, comments, when you click on a mini-copy.

Surely there is already a ready-made plugin for this.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
B
Boris Syomov, 2011-12-19
@mkoreshkov

You don't need any plugin for this.
You can create a material type for a picture and description, give the user the ability to create it, using views you can select materials of this type by user. Optionally, add some kind of result formatter, such as a carousel or a slideshow.
In total you need: CCK, Filefield, Views, optional formatter for views.
In Drupal, unlike most CMS, modules most often do not provide complete functionality, but some features that are assembled into it. This is a big plus for Drupal. in this way, what you need is flexibly implemented, and not what the author of some ready-made gallery intended for another CMS.

J
jane jane, 2014-01-20
@ru_janex

You can simply choose through views
as something for output, you need not the whole type of material, but a certain field, what with pictures.
this is how it was done
sustec.ru/%D0%A4%D0%BE%D1%82%D0%BE%D0%B3%D0%B0%D0%...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question