how to add content to your basic drupal site - musings of a drupal girl

70
How to Add Content to your basic Drupal Site Musings of a Drupal Girl

Upload: olindata

Post on 19-Jun-2015

9.225 views

Category:

Technology


0 download

DESCRIPTION

How to add content to your basic Drupal site - the basic, easy to read and understand, 101 way by a beginner Drupal girl.

TRANSCRIPT

Page 1: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

How to Add Content to your basic Drupal Site

Musings of a Drupal Girl

Page 2: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

04/13/23 2

Disclaimer

I am only just a beginner in Drupal so I might not be able to explain everything right now, but I will try to do so to the

very best of my ability!

I am only just a beginner in Drupal so I might not be able to explain everything right now, but I will try to do so to the

very best of my ability!

Page 3: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

04/13/23 3

First: Starting up Drupal (re-cap)

Page 4: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

04/13/23 4

First: Starting up Drupal (re-cap)

• Click on “Go to my site”• You will get to your login page• Sign in and voila, you are in.

Page 5: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

04/13/23 5

First: Starting up Drupal (re-cap)

Page 6: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

04/13/23 6

How to Add Content 101

Page 7: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

04/13/23 7

How to Add Content 101

• When you click on “Add Content”, you will get 2 default basic content types:

• #1: Article• The Article content type (formerly known as “story”) is

used to add content such as news or information – content that is updated/added more frequently.

• Articles can be cross-referenced and categorised, and are usually sorted with the most recent post at the top; although this can be customised with contributed modules, e.g. Views, but we will go into that another time.

Page 8: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

04/13/23 8

How to Add Content 101

• When you click on “Add Content”, you will get 2 default basic content types:

• #2: Basic Page• The Basic Page content type is typically to create pages

that have static content (meaning you don’t change it often).

• These are usually linked to the main navigation bar but are certainly not required to.

Page 9: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

04/13/23 9

How to Add Content 101

• Other Content Types & Users• Yes, you can add other content types such as forms or

polls • You can also have multiple users for one website (just

like WordPress).• Of course, this is more in-depth and we will cover other

content types as well as users in subsequent posts.• If you would like a little read about users, check out

Richard’s take on it as he builds a website.

Page 10: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

04/13/23 10

Creating your Article: Content

Page 11: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

04/13/23 11

• The “title” is self-explanatory.

• The “tags” below that is what Drupalists call “taxonomy”. As our Drupal expert Richard explains in his post about taxonomy, it is basically classifying your content with organisational keywords• It is the same as “tags” in WordPress and allows you to

connect, relate and classify your website content.

• You can also choose to add an image to your Article if you wish to.

Creating your Article: Content

Page 12: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

04/13/23 12

Creating your first Article: Content

Page 13: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

04/13/23 13

Creating your Article: Content

• The “body” is where you fill in your main content.

• If you look at the bottom of it, you’ll see 3 different text formats you can use: “Filtered HTML”, “Full HTML” and “plain text”.

• There is a guide there that you can use to see which format is the best for you.

Page 14: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

04/13/23 14

Creating your Article: Content

• Personally, I know some HTML so “Full HTML” is what I like so that I can customise the look of my “body” text.

• Next to the word “Body”, you will find a link that says “Edit Summary”. When you click on this, a new box for a Summary will appear.

Page 15: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

04/13/23 15

Creating your Article: Content

Page 16: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

04/13/23 16

Creating your Article: Content

• What this means is that you can create a Summary of your Body text in the Summary box.• This is similar to a meta description.• If you do not wish to fill this part up, no worries. Drupal

will just take the first paragraph or so from your Body text and use it as a Summary.

• Now the bottom part before you click “Save” or “Preview” can get a little tricky, so let me explain it one by one to help us all out.

Page 17: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

04/13/23 17

Creating your Article: Menu Settings

Page 18: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

04/13/23 18

Creating your Article: Menu Settings

• For “Menu settings”, the default setting is to not a provide a “menu link”.

• A “menu link” is for connecting your content type to the main navigational bar, aka your menu, which makes it more like a page.

• As you don’t really do this for the Article content type and leave the “Menu settings” as its default of no menu link, I will explain more about this when we touch on the Basic Page content type later in this guide.

Page 19: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

04/13/23 19

Creating your Article: Revision Info.

Page 20: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

04/13/23 20

Creating your Article: Revision Info.

• This option is of a higher-level and is more complicated, which I may touch on much later in this series (I gotta learn it too!). But for now, do just leave it as it is.

Page 21: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

04/13/23 21

Creating your Article: URL path settings

Page 22: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

04/13/23 22

Creating your Article: URL path settings

• URL path settings basically mean the URL for your Article, e.g. “http://www.MyDrupalSite.com/content/MyFirstArticle”.

• The main default as shown above is to “Generate automatic URL alias” which means Drupal will automatically create a URL for your Article based on your Article Title.

• In this case, it will be “content/welcome” as my title is ‘Welcome’.

Page 23: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

04/13/23 23

Creating your Article: URL path settings

Page 24: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

04/13/23 24

Creating your Article: URL path settings

• If you uncheck this, you will be able to create a custom URL for your Article so it’s entirely up to you.

• With Article content types that have a very long title, it is certainly helpful to create a custom URL where you shorten it to what you want if you wish to.

Page 25: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

04/13/23 25

Creating your Article: Comment settings

Page 26: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

04/13/23 26

Creating your Article: Comment settings

• This is pretty self-explanatory.

• You can choose whether or not you want others to comment on the posts you make.

• Of course, commenting cannot happen until you finish your local Drupal site and actually put it online, which may be covered later on (a Google search has indicated the level needed to put it online!).

Page 27: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

04/13/23 27

Creating your Article: Authoring info.

Page 28: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

04/13/23 28

Creating your Article: Authoring info.

• Authoring information lets you customise the name you want to post under

• Subsequently, as you develop further, you may have more users on your Drupal site (e.g if you have multiple contributors/collaborators) and you can choose to post under their names instead of your own.

• You can also choose a specific date and time that you want to show as the the date/time you posted this Article.

Page 29: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

04/13/23 29

Creating your Article: Publishing options

Page 30: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

04/13/23 30

Creating your Article: Publishing options

• There are 3 options here for your ‘Publishing options’:• Published

• You can choose whether you want to publish your Article right away or leave it as a draft. Uncheck this box if you want to leave it as a draft.

• Promoted to front page• Checking this box basically means that this Article will

show up on your front page, aka your home page.

• Sticky at top of lists • A “sticky” means that this Article you are about to

publish/save will be on top of all your lists, e.g. forum lists, front page lists.

Page 31: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

04/13/23 31

Creating your Article

• And that’s pretty much the basics of how to add the Article content type to your basic Drupal site!

• Save your awesome first post, and you’ll get something like mine:

Page 32: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

04/13/23 32

Creating your Article

• And that’s pretty much the basics of how to add the Article content type to your basic Drupal site!

• Save your awesome first post, and you’ll get something like mine:

Page 33: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

04/13/23 33

First Article created!

Page 34: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

04/13/23 34

First Article created!

• In case you're wondering, for my Article, I did the following:• Didn't provide a menu link• Went with the default for Revision information & URL

path settings• Allowed comments• Left the Authoring information as default• Set my Article to "Published" & "Promoted to front

page”.

Page 35: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

04/13/23 35

Creating your Basic Page: Content

Page 36: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

04/13/23 36

Creating your Basic Page: Content

• Just like the Article content type, you have your• Title• Body• Option to include a Summary about the page.

Page 37: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

04/13/23 37

Creating your Basic Page: Content

Page 38: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

04/13/23 38

Creating your Basic Page: Content

• You also have the same “Text format” options and the same options before you publish, as per the Article content type.

• Now let’s go into them one by one to see how different it is from the Article.

Page 39: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

04/13/23 39

Creating your Basic Page: Menu settings

Page 40: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

04/13/23 40

Creating your Basic Page: Menu settings

• For “Menu settings”, the default setting is to not a provide a “menu link”.

• A “menu link” is for connecting your content type to the main navigational bar, aka your menu, which makes it more like a page.

Page 41: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

04/13/23 41

Creating your Basic Page: Menu settings

• As you now have a Basic Page content type (this can be called “About”, “Contact”, “News”, whatever you would like), you want it to be added to the navigational bar so that it will be like other websites that have “Home”, “About”, “News”, “Contact”, etc.

• So check the box, and you will get this:

Page 42: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

04/13/23 42

Creating your Basic Page: Menu settings

Page 43: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

04/13/23 43

Creating your Basic Page: Menu settings

• Menu link title• This is basically what you want to call your Basic Page

in the navigational bar.• For example, the title of your Basic Page is “About My

Company”, it is a little too long for your navigational bar so you would just put “About” for the ‘Menu link title’.

Page 44: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

04/13/23 44

Creating your Basic Page: Menu settings

• What happens when you save it later, is that your navigational bar will show “About” while the title in your window will show “About My Company”, like this:

Page 45: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

04/13/23 45

Creating your Basic Page: Menu settings

Page 46: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

04/13/23 46

Creating your Basic Page: Menu settings

• Description• The description is shown when the cursor (aka your

little mouse arrow) is hovered (aka placed over) the Menu link title, like this:

Page 47: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

04/13/23 47

Creating your Basic Page: Menu settings

Page 48: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

04/13/23 48

Creating your Basic Page: Menu settings

• Parent itemThere are 2 options under Parent item.

1. Main menu • This is the default setting. By selecting this, your Basic

Page will appear in your navigational bar.

2. –Home• As you add more Basic Page content types, there will be

more of these options “–Basic Page”. Selecting this option means that your Basic Page will be added as a sub-menu item, which will be explained in subsequent posts.

Page 49: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

04/13/23 49

Creating your Basic Page: Menu settings

• For now, as this is a basic guide on how to add content to your basic Drupal site, we will go with the default setting of “Main menu”.

Page 50: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

04/13/23 50

Creating your Basic Page: Menu settings

• Weight• ‘Weight’ matters for the organisation of Basic Page

content types in your navigational bar. If you leave it as the default 0, it means that the Basic Page you just created will be the first tab in your navigational bar:

Page 51: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

04/13/23 51

Creating your Basic Page: Menu settings

Page 52: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

04/13/23 52

Creating your Basic Page: Menu settings

• As we all know that “Home” comes before “About”, we need to change this and we go about it by changing the ‘Weight’.

• By changing the weight to ’1′ (a positive digit 1), this will let “About” come after “Home”:

Page 53: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

04/13/23 53

Creating your Basic Page: Menu settings

Page 54: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

04/13/23 54

Creating your Basic Page: Menu settings

• And tadah! “Home” now comes before “About”, showing you what ‘Weight’ is all about.

Page 55: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

04/13/23 55

Creating your Basic Page: Revision info.

Page 56: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

04/13/23 56

Creating your Basic Page: Revision info.

• As mentioned above, this is of a higher-level, which I may touch on much later in this series but for now, do just leave it as it is.

Page 57: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

04/13/23 57

Creating your Basic Page: URL path settings

Page 58: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

04/13/23 58

Creating your Basic Page: URL path settings

• Like the Article, URL path settings basically mean the URL for your Basic Page, e.g. http://www.MyDrupalSite.com/content/MyFirstBasicPage.

• The main default as shown above is to “Generate automatic URL alias” which means Drupal will automatically create a URL for your Basic Page based on your Basic Page Title.

• In this case, it will be “content/about-my-company” as my title is ‘About My Company’.

Page 59: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

04/13/23 59

Creating your Basic Page: URL path settings

Page 60: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

04/13/23 60

Creating your Basic Page: URL path settings

• If you uncheck this, you will be able to create a custom URL for your Basic Page.

• As I find “about-my-company” a little too long for the URL of an ‘About’ Page, I’ve unchecked the box and created my own URL:

Page 61: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

04/13/23 61

Creating your Basic Page: URL path settings

Page 62: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

04/13/23 62

Creating your Basic Page: Comment settings

• For a Basic Page, you certainly don’t want others to comment as it is mostly static content so it’s best to your ‘Comment settings’ as Closed:

Page 63: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

04/13/23 63

Creating your Basic Page: Comment settings

Page 64: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

04/13/23 64

Creating your Basic Page: Authoring info.

• Authoring information is also the same as the Article content type.

• It is up to you to choose whoever you wish to place as the author (when you have more users) and the time/date you wish to have others see as your posting time/date.

Page 65: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

04/13/23 65

Creating your Basic Page: Authoring info.

Page 66: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

04/13/23 66

Creating your Basic Page: Publishing options

• For ‘Publishing options’, all you have to do is choose whether you want your Basic Page ‘Published’ or not as it will already be on your navigational bar, so you don’t need it promoted to the front page or as a sticky.

Page 67: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

04/13/23 67

Creating your Basic Page: Publishing options

Page 68: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

04/13/23 68

First Basic Page created!

Page 69: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

04/13/23 69

How to Add Content 101

Page 70: How to Add Content to your basic Drupal site - Musings of a Drupal Girl

04/13/23 70

How to Add Content 101

• I would love to hear from you about my little guide! Was it easy enough? Was it too hard? Is there anything that I can do better or faster? What else do you want to find out next?

• Feel free to email me anytime at [email protected]. Till next post!

Musings of a Drupal Girl – How to Add Content