0

I'm new to drupal and I try to understand the structure of it.

Let's assume I want to do the following regardless of the existence of a module doing this concrete job – just to understand the structure and best practices.

What I need is a calendar module. This calendar should be displayed on an own page. So I think I must provide a special calendar content type, don't I? Then I want to display the next 3 events as a list on a front page. Here, I guess, I must provide a special block, which is only visible on the defined front page?

Is this the standard way of doing it?

0

Your question is hard to answer because there are calendar modules. How those modules are implemented could vary infinitely.

Drupal being so flexible you could pose this question to 10 people and get 10 different answers and they would all work!

If I were to have this problem I would look for a calendar module that would expose the data it may contain to Views so I could do anything I wanted with the data. That would mean that the calendar module would use the Entity framework to save it's data which is the best way of doing things in Drupal.

The display of the calendar more than likely would not be a content type, it could be content you could insert into a content type using tokens or something like that or it may supply you a page and path to the calendar view or multiple paths. Again I go back to you could pose this question to 10 people and get 10 answers.

This may not answer your question. But your question is rather hard to answer without specifics in regards to modules.

0

To create an Event and calendar, please watch this video which shows step by step guide on how to create Events with Calendar. This is very nice video tutorial with steps.

Also, look into this https://www.drupal.org/node/1250714 and follow steps from this.

Yes, you are right, you have to create view block. Define View block into related region on front page.

This is how your view block will look for latest 3 events list on your front page.

View Block for Latest Events

You can also style that view by going into Chrome Dev Tool. Find element's ID that you wanted to change and give style to that element. Save that style to your CSS.

I hope this will helpful to you.

Thanks!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.