Creating New Content

In Drupal, a single unit of content such as a particular Blog Post or Article is referred to as a node.

Create Content

To create a new node, click on the "Create content" tab in the Admin Toolbar.

You will see a full list of all of the different content types that you can use to create your node. Click on "Blog entry" to create a node using that content type, and you should see the content creation form.

Many of the fields on this form are pretty straightforward, such as:

  • Title
  • Body
  • Teaser

However, there is one fundamental OpenPublish feature that is worth explaining, which is the field for "Author(s)".

The Author Dilemma

A big assumption in Drupal 6 core is that an author is a user, which in many cases is an over-simplification since many times there are multiple authors associated with a given piece. In other cases, authors are external contributors who do not actually have user accounts on your site (and it can be cumbersome to even create a "dummy" user every time since a unique email address is required and you have to go to a separate interface to create the user).

For these reasons, OpenPublish has a separate content type for Authors. You can type the name of one or more existing Author nodes into the Author(s) field and the auto-complete feature will pull up the proper Author. Click on the proper match to insert that Author into the field.

What if my Author hasn't been created yet?

You can use the "create and reference" button next to the Author field to create the Author you need in a popup without leaving the form.

More Options for the Blog Content Type

Categorizing your content through taxonomy

If taxonomies have been created, you have the option to categorize your content in the Vocabularies Section. In this particular case, the topics have been configured to display as a dropdown menu. For a more detailed explanation of how to set up taxonomies and terms, please visit the Categorizing your Content section of the OpenPublish documentation.

Toggle Show Author Info

If you wish to display author information (such as name, picture and bio) below the blog entry, make sure that the "Show Author Info?" box is checked. By default it should be. NOTE: In order for this to work properly, the author must be a registered site user and have created a profile.

Upload and Attach Files

In the "File Attachments" section, you can upload files with various extensions such as jpg, jpeg, gif, png, txt, doc, xls, pdf, ppt, pps, odt, ods, and odp. To upload a file, click the browse button to find the file on your local machine, and then click the attach button to upload the file to the web server. You can toggle the "List" checkbox, which when checked, will list the file attachments below your blog entry so that visitors to your site can view and download the file. Furthermore, the url of the uploaded file is displayed in this section so it can be referenced in the body field or elsewhere in the site.

Add a Node to a Menu

While it rarely makes sense to include a Blog-Entry as a menu item, this option is available in the "Menu Settings" section. This may prove more beneficial when working with other content types. In the "Parent Item" dropdown menu, you can select the menu in which the node will be listed. The "Weight" determines the rank order of the node in relation to other nodes included in the same menu. For example, a value of -50 would tend to be listed first. A value of +50 is considered a heavier number and would sink toward the bottom of the list.

Authoring Information

In the "Authoring Information" section, the "Authored By" field refers to the user that actually created the page. It is important to note that this is not the same as the "Author" Content Type that was referenced in the "Author" field above. The "Authored By" field is automatically populated with the user that is currently logged into the site.

This section also has a timestamp field which automatically records when the article was first submitted down to a fraction of a second.

How to automatically generate "clean" urls

Clean URLs are interpretable by humans and are often descriptive of the content. Let's looks at Amazon.com for an example. Currently the "Buy a Kindle" button directs the visitor to http://www.amazon.com/gp/product/B0015T963C/ref=sv_kinc_0. This is machine interpretable but it would be impossible for a person to remember. On the contrary, if the url was simply http://www.amazon.com/kindle, it would be easier to remember.

OpenPublish automatically creates a url based on the node's title and content type and strips out certain characters that may be obstructive. The content creator has the ability to uncheck the "Automatic Alias" box and input a custom url.

Create Content for an Article

Another popular content type in OpenPublish is the "Article". It shares many of the same fields as a "Blog Entry", although it has a few additional features.

Creating a Deck, or Drop Head

In addition to the title which doubles as the main-headline, the Article content type includes a Deck which appears below the main headline.

  

Attaching Images and Adding Image Credits

One method of uploading an image is to upload the file through "File Attachments" upload and then reference the url in the body. For a main image of the article, a better option would be to upload the image through the Main Image upload button. It automatically renders and styles the image at the top of the article - so you don't have to reference the url in the body field. The "Thumbnail Image" displays in list pages and the "Main Image Credit" is displayed right under the frame of the Main Image.

Here's how the Main Image and Main Image Credit are displayed on the Article View Page.

Documentation

Loading widget...
No files to show
{{node.name}}
({{node.children.length}})
{{node.date}}
{{node.modified}}
{{node.filesize}}
{{node.filename}}