Difference between revisions of "Drupal Care Package"

From Stadm
Jump to navigationJump to search
 
(16 intermediate revisions by one other user not shown)
Line 2: Line 2:
 
This care package collects some useful resources either created by previous assistants or from the Internet.
 
This care package collects some useful resources either created by previous assistants or from the Internet.
  
== Resources in Stadm Wiki ==
+
== Adding & editing contents ==
* [[Drupal_documentation|Creating News Items and a News List]]
+
Adding & editing contents are the most basic uses of Drupal
* [[Organic_Groups|Organic Groups]]
 
== External Resources ==
 
=== Adding & editing content ===
 
Adding & editing content are the most basic usage of Drupal
 
 
* [https://www.youtube.com/watch?v=D93yOJrMopw Video tutorial]
 
* [https://www.youtube.com/watch?v=D93yOJrMopw Video tutorial]
 
* [https://www.drupal.org/node/1234564 Adding content on Drupal 7]
 
* [https://www.drupal.org/node/1234564 Adding content on Drupal 7]
  
=== Create your own content types ===
+
== Create your own content types ==
[https://www.drupal.org/node/306792 Create custom content type] - This tutorial lists the procedures you need to create a custom content type.
+
Sometimes the original content types cannot fulfill your all requirements, you may want a new content type to reach your expectations. For example, you may want to create a FAQ page, which should contains several FAQ entries. Thus you can create a new custom content type "FAQ", which has "Question" and "Answer" fields instead of "Title" and "Body".
 +
 +
* [https://www.drupal.org/node/306792 Create custom content type] - This tutorial lists the procedures you need to create a custom content type.
 +
* [[Drupal_documentation|Creating News Items and a News List]] - An example of creating a "News" custom content type
 +
 
 +
== Show content on a page in the way you want ==
 +
When you have your own content type, the next step is to show entries of the content type on your website. Drupal module "View" is a handy tool to manage this issue.
 +
 
 +
* First of all, make sure that the View module is already enabled.
 +
** Management Menu(on the top of the scree) -> Modules -> Views 
 +
** Make sure that "Views UI" and "Views" are enabled
 +
* [https://www.acquia.com/blog/totally-beginner-tutorial-views-drupal-7 A totally beginner tutorial to Views for Drupal 7]
 +
* [http://youtu.be/3L9JLZOb_LQ Video Tutorial]
 +
 
 +
=== "I want a few pictures on the left one third of the screen and articles on the right two third."===
 +
Then you have to use the more advanced "Panels" module.
 +
 
 +
* [http://www.wunderkraut.com/de/node/1124 A series of video tutorials] that teach you how to create more customized pages.
 +
* [Https://www.drupal.org/node/206792| Creating a new front page] - Yes you can customize your front page too.
 +
 
 +
== Organize your site with Menu ==
 +
It's not a good idea to put every thing on one page.You need to redirect website visiter to different pages.
 +
 
 +
===Basic content types===
 +
* Go to the editing page of a content to which you want to add a menu link
 +
* Scroll down and you will see a tab of the bottom block called "Menus settings", click it
 +
* Check the "Provide a menu link"
 +
* Fill out the "Menu link title" and "Description"(optional)
 +
* Choose a "Parent item" for the menu
 +
* Don't choose anything other than "<Main menu>" unless your theme supports drop-down menu
 +
 
 +
=== Views or Panels===
 +
* Views:
 +
**Management menu -> Structure -> Views  -> /view/ you want to edit -> Edit -> Page Settings -> Menu
 +
* Panels:
 +
**Management menu -> Structure -> Panels -> Manage Pages -> /page/ you want to edit -> Edit -> Settings -> Menu
 +
 
 +
== Organic Groups ==
 +
=== Overview ===
 +
Organic Groups module can "Enable users to create and manage their own 'groups'. Each group can have subscribers, and maintains a group home page where subscribers communicate amongst themselves.  They do so by posting the usual node types: blog, story, page, etc. A block is shown on the group home page which facilitates these posts. The block also provides summary information about the group.  Groups may be selective or not. Selective groups require approval in order to become a member, or even invitation -only groups. There are lots of preferences to configure groups as you need."
 +
 
 +
=== Tutorials ===
 +
Quick introduction [https://modulesunraveled.com/organic-groups-7x-2x/introduction video]. It has more clips about OG, but most of them are not free.
 +
 
 +
Some helpful tutorials for starters
 +
 
 +
*[https://www.ostraining.com/blog/drupal/organic-groups/ Organic Groups: Social Networking for Drupal] The illustrations in this tutorial may contain different interfaces, but the procedures are the same.
 +
 
 +
*[https://www.lullabot.com/blog/article/organic-groups-drupal-7 Organic Groups for Drupal 7]
 +
 
 +
=== Example ===
 +
ERI's [http://cosmos.eri.ucsb.edu/networks Cosmos] web is utilizing OG to manage its "Networks"
 +
=== More ===
 +
* [[Organic_Groups|Organic Groups]]
 +
==Theming==
 +
[http://themery.com/dgd7 Tutorial]

Latest revision as of 16:08, 7 March 2017

Overview

This care package collects some useful resources either created by previous assistants or from the Internet.

Adding & editing contents

Adding & editing contents are the most basic uses of Drupal

Create your own content types

Sometimes the original content types cannot fulfill your all requirements, you may want a new content type to reach your expectations. For example, you may want to create a FAQ page, which should contains several FAQ entries. Thus you can create a new custom content type "FAQ", which has "Question" and "Answer" fields instead of "Title" and "Body".

Show content on a page in the way you want

When you have your own content type, the next step is to show entries of the content type on your website. Drupal module "View" is a handy tool to manage this issue.

"I want a few pictures on the left one third of the screen and articles on the right two third."

Then you have to use the more advanced "Panels" module.

Organize your site with Menu

It's not a good idea to put every thing on one page.You need to redirect website visiter to different pages.

Basic content types

  • Go to the editing page of a content to which you want to add a menu link
  • Scroll down and you will see a tab of the bottom block called "Menus settings", click it
  • Check the "Provide a menu link"
  • Fill out the "Menu link title" and "Description"(optional)
  • Choose a "Parent item" for the menu
  • Don't choose anything other than "<Main menu>" unless your theme supports drop-down menu

Views or Panels

  • Views:
    • Management menu -> Structure -> Views -> /view/ you want to edit -> Edit -> Page Settings -> Menu
  • Panels:
    • Management menu -> Structure -> Panels -> Manage Pages -> /page/ you want to edit -> Edit -> Settings -> Menu

Organic Groups

Overview

Organic Groups module can "Enable users to create and manage their own 'groups'. Each group can have subscribers, and maintains a group home page where subscribers communicate amongst themselves. They do so by posting the usual node types: blog, story, page, etc. A block is shown on the group home page which facilitates these posts. The block also provides summary information about the group. Groups may be selective or not. Selective groups require approval in order to become a member, or even invitation -only groups. There are lots of preferences to configure groups as you need."

Tutorials

Quick introduction video. It has more clips about OG, but most of them are not free.

Some helpful tutorials for starters

Example

ERI's Cosmos web is utilizing OG to manage its "Networks"

More

Theming

Tutorial