Hello everyone !

I'm totally new to Drupal, I read some documents and books, but I still get some trouble understanding the awesome Drupal CMS. I am not a web developper, only amateur and I help my parents and their association by building a website. I did it 2 years ago using cms made simple. Everything was fine until now, because the associations is getting a little bigger and I want the website to do more than what it is doing now, and cmsms shows some limit. Hence I would like to switch to Drupal, for many reasons that you probably know, like users management, ... So, I have a few questions about the structure and wonder if you could help me.

The association I'm designing the website for is devoted to families that lost a child. We propose to the members of the association to build a small page for their children where they can put different texts and some photos for their children. The actual website can do that already but I'm the only one who have access and modify the pages (too complicated to change for the members of the association). The goal is quite simple since the design is always the same for every child's page and only new texts can be added. Hence, I would like to do something similar with Drupal, possibly with more features, and I would appreciate your help... :) I try to be as precise as possible... If I'm not, excuse me and I will correct it ! Oh, and, I'm french, so sorry for my english in advance... You know, in France, we have good cheese but we suck at learning foreign language :-)

What I would like the website to be able to do...

  • Members of the association could be logged in to acccess private part of the website (Easy in Drupal)
  • A Child...
    • is associated to one or more users. That is, only few users (parents, siblings, admin) can modify content of a child
    • is defined by these fields : a first name (mandatory), second name, date of birth, date of death, pictures (possibly multiple)
    • can be hidden from the website for non member (anonymous) visitors if wanted by the parents/siblings,...
    • contains several texts (see below)
  • A text for a child...
    • is associated to one child only (thought to use References module for that))
    • is defined by the following fields: a children (Reference to a node ?), a title, a body, an author, a picture (to be chosen from the picture of the associated child)
    • is accessible only when navigating on the pages of the associated child

What I though to do...

I still didn't really think about the user's stuff, that is, how to restrict a user to only specifics children: a user can add/modify texts only to the children they have the right to. If not, it could be awful to see a member modifying the text of another child... So, for that part, if you have a suggestion, I would be grateful :-)
For the second part, I though I would create 2 types of content : one for the children, one for the texts. I can link text to child with References module.

  • Children
    • title* : first name
    • field_name : second name (text)
    • field_date_of_birth : date of birth (date)
    • field_date_of_death : date of death (date)
    • field_image : photo (image, possibly multiple)
  • Text_for_children
    • title* : title
    • body : the text
    • field_children : Reference to a node "children" (to which is written this text ?)
    • field_image : I don't know how to propose the choice between different image already uploaded in the associated children content ?

Selective menus

But then I got another problem

Summary: questions

Hence, my questions are the following :-)

  1. First, does this structure appear to be "smart" ? Is there a better way to do in Drupal ?
  2. Assuming that yes : if somebody uploads multiple photos for a child, how is it possible for a text to be linked to a particular photo ? I could also ask the user to send a photo for each text, but then, if it is the same picture every time, wouldn't it be uploaded N times ?
  3. About the menus: there are 2 differents menus : one for the children (that's ok), and one for the texts (not ok). Say I have a page www.mywebsite.fr/our_children dedicated to the children. On this page is shown on the left a list of every children (this seems ok for me, I just create a menu link for every new node "child" created). Then, if I click on the first child, say "Chris", I would like to see a new menu on the right showing the different texts associated to Chris (and only Chris). I would also like this menu to stay if I click on another text for Chris... Here, I don't really know how to do. When creating a new node text_for_children, I don't know how to force the creation of a menu link with parents the "References child node"... Do you have any idea ? Maybe I'm totally unclear ... :)

Anyway, thank you very much in advance and have a great day followed by an amazing week-end !

Comments

John_B’s picture

There is nothing wrong with your English.

The post is a bit long! and probably should be in the 'before you start' forum.

Answers:

1 & 2. Each child should be a node, or a custom entity. The node can be allowed multiple images. It can also be allows a featured image in one field and additional images in another if yo wish.

3. You can use Taxonomy Menu module, or Menu Block module. There are always several ways to do it.

It is difficult to answer a question like this because a lot of the issues come from the fact you have not yet worked out the Drupal basics. Once you have spent some days (or months!) learning how Drupal works a lot of these issues will fall into place, and your questions will be about more specific things. There is documentation on this site, and the modestly priced video series from leading Drupal training providers may also be useful, as are some books, e.g. Drupal's Bulding Blocks.

Digit Professionals specialising in Drupal, WordPress & CiviCRM support for publishers in non-profit and related sectors

Thoster’s picture

Hello,

Thank you very much for your answer !
I will try and progress, and ask more precise questions next time :-)

Thanks again and have a great day.