<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>PHP Codester</title>
	<atom:link href="http://www.phpcodester.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.phpcodester.com</link>
	<description>PHP, Trixbox, osCommerce, SEO, and Drupal Problems Solved</description>
	<lastBuildDate>Tue, 28 Feb 2012 13:45:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Working with Taxonomy in Drupal 7</title>
		<link>http://www.phpcodester.com/2011/12/working-taxonomy-drupal-7/</link>
		<comments>http://www.phpcodester.com/2011/12/working-taxonomy-drupal-7/#comments</comments>
		<pubDate>Tue, 13 Dec 2011 21:04:34 +0000</pubDate>
		<dc:creator>Brad</dc:creator>
				<category><![CDATA[Shopping Cart Scripts]]></category>

		<guid isPermaLink="false">http://www.phpcodester.com/?p=474</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[]]></content:encoded>
			<wfw:commentRss>http://www.phpcodester.com/2011/12/working-taxonomy-drupal-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Managing and Adding Content Types in Drupal 7</title>
		<link>http://www.phpcodester.com/2011/12/content-types-in-drupal-7/</link>
		<comments>http://www.phpcodester.com/2011/12/content-types-in-drupal-7/#comments</comments>
		<pubDate>Tue, 13 Dec 2011 21:02:05 +0000</pubDate>
		<dc:creator>Brad</dc:creator>
				<category><![CDATA[Navigating Drupal 7]]></category>
		<category><![CDATA[Drupal 7]]></category>

		<guid isPermaLink="false">http://www.phpcodester.com/?p=470</guid>
		<description><![CDATA[The content type administration area is found under Structure &#62; Content Types in Drupal 7. This administration area gives you the ability to add new content types and define the behavior of content types. Here, you can decide how you &#8230; <a href="http://www.phpcodester.com/2011/12/content-types-in-drupal-7/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>The content type administration area is found under Structure &gt; Content Types in Drupal 7. This administration area gives you the ability to add new content types and define the behavior of content types. Here, you can decide how you want your new articles, blog posts, pages to behave by default, as opposed to having to change the options every time when <a title="Adding Content in Drupal 7" href="http://www.phpcodester.com/2011/05/adding-content-in-drupal-7/">adding new content</a>. After entering the content type administration menu, it will look something like this:</p>
<p><a href="http://www.phpcodester.com/wp-content/uploads/2011/06/drupal_content_type_mainmenu.png"><img class="aligncenter size-full wp-image-479" title="Drupal Content Type Main Menu" src="http://www.phpcodester.com/wp-content/uploads/2011/06/drupal_content_type_mainmenu.png" alt="Drupal Content Type Main Menu" width="794" height="240" /></a></p>
<h2>Add a Content Type</h2>
<p>To add a content type, click on the link that says &#8220;+ Add Content Type&#8221;. This will take you into the &#8220;New Content Type&#8221; area. This area looks like this:</p>
<p><a href="http://www.phpcodester.com/wp-content/uploads/2011/06/drupal_add_content_type.png"><img class="aligncenter size-large wp-image-481" title="Drupal Add Content Type Form" src="http://www.phpcodester.com/wp-content/uploads/2011/06/drupal_add_content_type-1024x670.png" alt="Drupal Add Content Type Form" width="620" height="405" /></a>Let&#8217;s go through each item, line by line.</p>
<ul>
<li>Name &#8211; The name of the content type that will appear in the administration menu when <a title="Adding Content in Drupal 7" href="http://www.phpcodester.com/2011/05/adding-content-in-drupal-7/">adding content</a>. Your users never see this. Some of the default names for content types are &#8220;Article&#8221; and &#8220;Basic Page&#8221;. You can be as creative or plain as you want here.</li>
<li>Description &#8211; Specify to your authors what kind of content is expected here. Describe it thoroughly enough so that there is no confusion. This field is also only seen by administrators.</li>
<li>Submission form settings &#8211; These options modify the &#8220;Add Content&#8221; page when users input content.
<ul>
<li>Title field label &#8211; This is what appears for the author prompting him for a title for the content piece.</li>
<li>Preview before submitting &#8211; Whether the user may, can&#8217;t or must see a preview of the post before submitting.</li>
<li>Explanation or submission guidelines &#8211; Special instructions given to the author at the very top of the &#8220;Add Content&#8221; page.</li>
</ul>
</li>
<li>Publishing Options &#8211; lkjlkj<a href="http://www.phpcodester.com/wp-content/uploads/2011/06/drupal_content_type_publishing_options.png"><img class="aligncenter size-full wp-image-482" title="Drupal Publishing Options" src="http://www.phpcodester.com/wp-content/uploads/2011/06/drupal_content_type_publishing_options.png" alt="Drupal Publishing Options" width="638" height="201" /></a></li>
</ul>
<h2>Edit a Content Type</h2>
<p>Lorem Ipsum.</p>
<h2>Manage Fields</h2>
<p>Lorem Ipsum.</p>
<h2>Manage Display</h2>
<p>Lorem Ipsum</p>
<h2>Delete a Content Type</h2>
]]></content:encoded>
			<wfw:commentRss>http://www.phpcodester.com/2011/12/content-types-in-drupal-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Managing Users and Permissions in Drupal 7</title>
		<link>http://www.phpcodester.com/2011/07/managing-users-and-permissions-in-drupal-7/</link>
		<comments>http://www.phpcodester.com/2011/07/managing-users-and-permissions-in-drupal-7/#comments</comments>
		<pubDate>Tue, 12 Jul 2011 21:02:31 +0000</pubDate>
		<dc:creator>Brad</dc:creator>
				<category><![CDATA[Drupal 7 Tutorial]]></category>
		<category><![CDATA[Miscellaneous Drupal Stuff]]></category>
		<category><![CDATA[Navigating Drupal 7]]></category>
		<category><![CDATA[Drupal 7]]></category>

		<guid isPermaLink="false">http://www.phpcodester.com/?p=393</guid>
		<description><![CDATA[Drupal has a powerful user management system and allows you to set up many different types of users for all sorts of purposes. Leveraging Drupal&#8217;s user management and permissions system can allow the Drupal 7 administrator to set up very &#8230; <a href="http://www.phpcodester.com/2011/07/managing-users-and-permissions-in-drupal-7/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Drupal has a powerful user management system and allows you to set up many different types of users for all sorts of purposes. Leveraging Drupal&#8217;s user management and permissions system can allow the Drupal 7 administrator to set up very complex enterprise quality sites and set up a system that complies with any company&#8217;s bureaucracy.</p>
<p>User management takes place in the &#8220;People&#8221; tab in the administrator toolbar. Initially loading this screen looks like the image below.</p>
<p><a href="http://www.phpcodester.com/wp-content/uploads/2011/07/people-menu-drupal-7.png"><img class="aligncenter size-large wp-image-490" title="Managing Permission in Drupal" src="http://www.phpcodester.com/wp-content/uploads/2011/07/people-menu-drupal-7-1024x639.png" alt="The People Menu in Drupal 7" width="620" height="386" /></a></p>
<p>The screen shows you how you can filter your users by specific roles, permissions or status (we&#8217;ll get into what these mean later). You will also find options to add users and a tab for setting user permissions.</p>
<p>The user list shows some useful information and options at a glance. You can see a user&#8217;s name, status (whether they are active or blocked), how long they&#8217;ve been a member of the site, the last time they accessed the site and options to edit the user.</p>
<h2>Roles and Permissions</h2>
<p>Before we get into how to add and edit users, it&#8217;s best if we understand roles and permissions.</p>
<h3>Roles</h3>
<p>Think of roles as a &#8220;permissions group&#8221;. By default, Drupal has three roles:</p>
<ul>
<li><strong>Anonymous User</strong> &#8211; This is typically a user without an account</li>
<li><strong>Authenticated User</strong> &#8211; A user that has created an account</li>
<li><strong>Administrator</strong> &#8211; A site administrator</li>
</ul>
<div>Each role can have unique permissions that are set for all users within that role. This becomes very useful especially if you have a site where certain users need to approve content.</div>
<h4>Adding Roles</h4>
<div>You can add other roles to Drupal if you would like. In order to add a role, first go to the <strong>People</strong> menu, click on the <strong>Permissions</strong> tab, then click the <strong>Roles</strong> button. If you&#8217;re having trouble, have a look at the graphic below.</div>
<div><a href="http://www.phpcodester.com/wp-content/uploads/2011/07/add-role-drupal-7.png"><img class="aligncenter size-large wp-image-493" title="Adding a Role in Drupal 7" src="http://www.phpcodester.com/wp-content/uploads/2011/07/add-role-drupal-7-1024x516.png" alt="Adding a Role in Drupal 7" width="620" height="312" /></a>To add a role, type in a name for your role, for example, &#8220;moderator&#8221;. Make the role&#8217;s name something descriptive that defines what this type of user&#8217;s job should be. Once you have defined your new role, you can set specific permissions that make sense for that user type.</div>
<h3>Permissions</h3>
<p>Permissions define the different tasks that certain roles can perform. This can be highly customized and may take some time to go through all of the options. To get to the permissions screen, make sure you are in the People section of the administration area. Then click on the tab that says Permissions. Here, it will show you all of your roles in the top of the permissions list. Each permission has a title, description and checkbox for each role.</p>
<p><a href="http://www.phpcodester.com/wp-content/uploads/2011/07/drupal-permissions.png"><img class="aligncenter size-large wp-image-495" title="Drupal Permissions" src="http://www.phpcodester.com/wp-content/uploads/2011/07/drupal-permissions-1024x400.png" alt="Drupal Permissions" width="620" height="242" /></a></p>
<p>Set each permission according to the abilities you would like to give that specific role. If you are having problems with certain functionalities on your site not appearing, most likely you have an issue in this section of the site. It doesn&#8217;t make sense to go through all of the permissions you can set in this tutorial. These are pretty well explained in their title and description. Also, every module you add to Drupal normally modifies this area.</p>
<h2>Adding Users</h2>
<p>If you need to manually add a user, one way to do it is through the administration interface. Again, in the <strong>People</strong> section, you will need to be under the<strong> List</strong> tab. This is the default view when you click on <strong>People</strong>. There is a link in this screen that says <strong>+ Add user</strong>. Click this link, and you will be given the opportunity to create a new user. This screen allows you to set information about this user and is more or less like your typical registration screen on any website with a couple of notable exceptions. You can set a status for the new user. A status is either blocked or active. You can also set what role(s) a user has in this screen.</p>
<p><a href="http://www.phpcodester.com/wp-content/uploads/2011/07/add-new-user-drupal.png"><img class="aligncenter size-large wp-image-497" title="Adding a New User in Drupal 7" src="http://www.phpcodester.com/wp-content/uploads/2011/07/add-new-user-drupal-1024x799.png" alt="Adding a New User in Drupal 7" width="620" height="483" /></a></p>
<p><span class="Apple-style-span" style="font-size: 20px; font-weight: bold;">Editing Users</span></p>
<h2><span class="Apple-style-span" style="font-size: 13px; font-weight: normal;">You can edit a user by looking at the list view of the users under the <strong>People</strong> section of the administration menu. Find the user you would like to edit and click the <strong>edit</strong> link under the operations column. This brings up a screen very similar to the one used to add new users, with a couple of exceptions. Here, there are normally a couple more options, like adding a picture. </span></h2>
<h2><span class="Apple-style-span" style="font-size: 13px; font-weight: normal;">All of the user options can be managed in the <strong>Configuration</strong> section of Drupal under <strong>Configuration</strong> &gt;&gt; <strong>People</strong> &gt;&gt; <strong>Account Settings</strong>. Here, you can set what fields a user can enter and specify other user management behaviors. This area defines some of the settings like the size of a users picture, what happens to a user&#8217;s data if they are deleted, and the content of auto-generated emails.</span></h2>
]]></content:encoded>
			<wfw:commentRss>http://www.phpcodester.com/2011/07/managing-users-and-permissions-in-drupal-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Random Categories View for Drupal 7 Ubercart</title>
		<link>http://www.phpcodester.com/2011/06/random-categories-view-for-drupal-7-ubercart/</link>
		<comments>http://www.phpcodester.com/2011/06/random-categories-view-for-drupal-7-ubercart/#comments</comments>
		<pubDate>Tue, 14 Jun 2011 15:37:22 +0000</pubDate>
		<dc:creator>Brad</dc:creator>
				<category><![CDATA[Shopping Cart Scripts]]></category>

		<guid isPermaLink="false">http://www.phpcodester.com/?p=485</guid>
		<description><![CDATA[This is a view for Ubercart with Drupal 7 for displaying random categories from your product database. This is great if you just want to list some of your categories on the front page. It installs pretty simple. You need &#8230; <a href="http://www.phpcodester.com/2011/06/random-categories-view-for-drupal-7-ubercart/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This is a view for Ubercart with Drupal 7 for displaying random categories from your product database. This is great if you just want to list some of your categories on the front page. It installs pretty simple. You need to have Views and Views UI modules enabled for this to work.</p>
<p>First you should download my Views code that I&#8217;ve exported for you.</p>
<a class="downloadlink" href="http://www.phpcodester.com/wp-content/plugins/download-monitor/download.php?id=7" title="Version1.0 downloaded 626 times" >Front Page Category View for Ubercart (626)</a>
<p>From here you need to go to the administration area and click Structure &gt; Views. At the top of the screen, you will see a button that says &#8220;Import View from Code&#8221;. This is where you need to paste the contents of the text file you just downloaded. Give it a meaningful name. I named mine front_page, but you can name yours whatever you want. It won&#8217;t work yet.</p>
<p>After you have loaded your new view, find it in the list of views you have installed and click the &#8220;edit&#8221; button. This is the screen you should get, minus my drawings&#8230;.</p>
<p><a href="http://www.phpcodester.com/wp-content/uploads/2011/06/ubercart_views.png"><img class="aligncenter size-large wp-image-487" title="Installing the front page views module for ubercart in drupal 7" src="http://www.phpcodester.com/wp-content/uploads/2011/06/ubercart_views-1024x623.png" alt="Installing the front page views module for ubercart in drupal 7" width="620" height="377" /></a></p>
<p>When you first get to this area, click Pages (red circle on the top right) and then insert the page you have designated as your front page in the area at the bottom left (the other red circle).</p>
<p>That&#8217;s it, it should be up and working!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpcodester.com/2011/06/random-categories-view-for-drupal-7-ubercart/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Managing Drupal 7&#8242;s Structure</title>
		<link>http://www.phpcodester.com/2011/06/managing-drupal-7s-structure/</link>
		<comments>http://www.phpcodester.com/2011/06/managing-drupal-7s-structure/#comments</comments>
		<pubDate>Wed, 01 Jun 2011 17:30:37 +0000</pubDate>
		<dc:creator>Brad</dc:creator>
				<category><![CDATA[Navigating Drupal 7]]></category>
		<category><![CDATA[Drupal 7]]></category>

		<guid isPermaLink="false">http://www.phpcodester.com/?p=389</guid>
		<description><![CDATA[This is an article in a multipart series on setting up Drupal 7. If you&#8217;re just looking for how to manage Drupal 7&#8242;s structure, you&#8217;re in the right place. If you&#8217;re trying to learn about Drupal 7 in general, you&#8217;re &#8230; <a href="http://www.phpcodester.com/2011/06/managing-drupal-7s-structure/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This is an article in a multipart series on <a title="Setting up a Site in Drupal 7" href="http://www.phpcodester.com/2011/05/setting-up-a-site-in-drupal-7/">setting up Drupal 7</a>. If you&#8217;re just looking for how to manage Drupal 7&#8242;s structure, you&#8217;re in the right place. If you&#8217;re trying to learn about Drupal 7 in general, you&#8217;re best to start at the <a title="Setting up a Site in Drupal 7" href="http://www.phpcodester.com/2011/05/setting-up-a-site-in-drupal-7/">beginning of the tutorial</a>.</p>
<p>By clicking on &#8220;Structure&#8221; at the top of the Drupal 7 administration menu (by logging in as an administrator, the menu on the top of the screen), you will find your way into the structure configuration of Drupal. This article will go through each item one by one and explain the details of the configurations you can make to them.</p>
<p>There are several items here that you can configure. Since they all require a bit of knowledge, its all just too big for one post. I have broken this section up into several posts to make it easier to read.</p>
<p><a title="Using and Customizing Blocks in Drupal 7" href="http://www.phpcodester.com/2011/06/using-and-customizing-blocks-in-drupal-7/">Blocks &#8211; Manage your Drupal blocks</a>. Put them into the regions where you want them and even create custom blocks. Understand what blocks are in Drupal and be able to fully understand them.</p>
<p><a href="http://www.phpcodester.com/2011/06/content-types-in-drupal-7/">Content Types &#8211; Modify your content settings</a>. Learn how to change the default settings on your content types, create custom content types, and add fields to existing content types.</p>
<p><a href="http://www.phpcodester.com/2011/06/adding-menus-in-drupal-7/ ">Menus &#8211; Change your menus or add new custom menus</a>. Learn about how menus work in Drupal. Reorganize, rename and generally edit and configure your menus.</p>
<p><a href="http://www.phpcodester.com/2011/06/working-taxonomy-drupal-7/">Taxonomy &#8211; Your site&#8217;s hierarchy</a>. Create tags, breadcrumbs, and classifications in your Drupal site. Understand the relationship between parent and child tags and what a vocabulary is.</p>
<p>The structure area is also a place where modules will put their configuration. For example, if you have installed the views module, it&#8217;s configuration will be here in the structure area. Anything that affects the layout of the site is found in this area. Don&#8217;t be fooled by the existence of an &#8220;Appearance&#8221; menu. &#8220;Structure&#8221; is your place to make layout changes to your site. &#8220;Appearance&#8221; is more or less for picking a theme and setting theme specific options.</p>
<p>Look at the articles above. Each gives a detailed description of its area of the structure menu. After studying those articles, you should become an expert on Drupal Structure.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpcodester.com/2011/06/managing-drupal-7s-structure/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Using and Customizing Blocks in Drupal 7</title>
		<link>http://www.energywebdevelopment.com/using-and-customizing-blocks-in-drupal-7</link>
		<comments>http://www.energywebdevelopment.com/using-and-customizing-blocks-in-drupal-7#comments</comments>
		<pubDate>Wed, 01 Jun 2011 17:15:25 +0000</pubDate>
		<dc:creator>Brad</dc:creator>
				<category><![CDATA[Shopping Cart Scripts]]></category>

		<guid isPermaLink="false">http://www.phpcodester.com/?p=467</guid>
		<description><![CDATA[Drupal layout is based on Blocks. First, it will help to define what a block is! A block is a functional piece of content within Drupal. Everything that visitors see is in a block and each block can be given &#8230; <a href="http://www.energywebdevelopment.com/using-and-customizing-blocks-in-drupal-7">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h2><span style="font-size: 13px; font-weight: normal;">Drupal layout is based on Blocks. First, it will help to define what a block is!</span></h2>
<blockquote><p>A block is a functional piece of content within Drupal. Everything that visitors see is in a block and each block can be given its own area (called regions) on the website.</p></blockquote>
<p>Block region locations are set within the theme. We will get to <a href="http://www.phpcodester.com/2011/05/theming-drupal-7-with-zen/">changing block locations</a> later, when we cover <a href="http://www.phpcodester.com/2011/05/theming-drupal-7-with-zen/">Drupal 7 theming</a>. For now will focus on enabling and disabling blocks and moving them between regions. Ok, so, by now you have probably clicked on the &#8220;Structure&#8221; button at the top of the screen and, if you&#8217;re like me and get ahead of yourself, you&#8217;ve also clicked on the link that says &#8220;Blocks&#8221;. If you haven&#8217;t, do so now. Here is what you should see (without my red comments):</p>
<p><a href="http://www.phpcodester.com/wp-content/uploads/2011/06/drupal_blocks_tutorial.png"><img title="Drupal 7 Blocks Tutorial with Markup" src="http://www.phpcodester.com/wp-content/uploads/2011/06/drupal_blocks_tutorial-1024x594.png" alt="Drupal 7 Blocks Tutorial with Markup" width="620" height="359" /></a></p>
<h3>Changing Block Layout Based on the Theme</h3>
<p>Let&#8217;s start from the top of this picture and move our way down. Remember we said that regions are locations within a theme, well, it just so happens that each theme can have different definitions of where a region should be, and you can have different definitions of which region your block should be in based on your theme. If you look in the top right corner of you screen, you will see tabs for each of your enabled themes. In this case, &#8220;Bartik&#8221; and &#8220;Seven&#8221; are enabled. The active theme (in this case, the one in white) is the one for which the block layout is being changed. Your changes here do not affect the other theme (Seven in this example).</p>
<h3>Getting a Graphic of the Block Regions for your Theme</h3>
<p>Most Drupal 7 themes come with a demonstration of the block regions that shows you the names of the different regions according to that theme. This is, of course, if the developer wasn&#8217;t lazy and left it out. You can normally get a feel for where the regions are located based on their names. For example, &#8220;Header&#8221; is going to be at the top of the page in 99% of themes. Clicking on the &#8220;Demonstrate block regions (Theme)&#8221; will bring up a graphic similar to the one below. Use this as your guide when placing your blocks.</p>
<p><a href="http://www.phpcodester.com/wp-content/uploads/2011/06/drupal_block_regions.png"><img title="Drupal 7 Block Regions Graphic" src="http://www.phpcodester.com/wp-content/uploads/2011/06/drupal_block_regions-1024x596.png" alt="Drupal 7 Block Regions Graphic" width="620" height="360" /></a></p>
<h3>Moving those Blocks around</h3>
<p>There are two ways to move around the blocks on this screen. The easiest way is with the drag and drop method. There is a four-way arrow next to the name of each block, grab it with your mouse and move the block under the desired heading. That&#8217;s all there is to it, you&#8217;ve moved a block.</p>
<p>If, for some reason, you don&#8217;t have javascript enabled or just don&#8217;t like drag and drop, you can use the drop down menus next to the block names to change their region.</p>
<p><strong>Caution: Sometimes moving a block to another region can make it look really bad, some additional theming may be necessary.</strong></p>
<p>When you are finished moving around your blocks, make sure you click the &#8220;Save Blocks&#8221; button at the bottom of the screen.</p>
<p><strong>Warning: If you forget to click the &#8220;Save Blocks&#8221; button at the bottom of the screen, you WILL lose all of your changes.</strong></p>
<h3><strong>Adding a Custom Block</strong></h3>
<p>First, click the &#8220;Add Block&#8221; link near the top of the page. This will bring up a new page that is very similar to <a title="Adding Content in Drupal 7" href="http://www.phpcodester.com/2011/05/adding-content-in-drupal-7/">Drupal&#8217;s page for adding new content</a>.</p>
<p><a href="http://www.phpcodester.com/wp-content/uploads/2011/06/drupal_custom_block.png"><img title="Adding a Custom Block in Drupal 7" src="http://www.phpcodester.com/wp-content/uploads/2011/06/drupal_custom_block-1009x1024.png" alt="Adding a Custom Block in Drupal 7" width="620" height="629" /></a></p>
<p>Let&#8217;s go through each field, one by one:</p>
<ul>
<li><strong>Block Description &#8211; </strong>What you will see in the block layout page to describe the block. If you are a developer, make this something very clear for your users. If you&#8217;re not a developer, still make it very clear so that you will know what your block is for 3 months from now when you forgot writing it.</li>
<li><strong>Block Title -</strong> The default title for the block (this can be overridden later on in the appearance settings). Make this something you would like to be displayed to the public as a title above the block.</li>
<li><strong>Block Body -</strong> The meat of your block. This can be any <strong>text format</strong>, but will most likely be Full HTML or PHP Code (you need to have the PHP Filter module enabled in order to use PHP Code as a text format). If you use PHP Code to make a block, you need to start and end your function with the &lt;?php and ?&gt; tags respectively. When using PHP Code, think of the Block Body as a function, and whatever you return will be displayed. If you have more questions about this, leave a comment and I&#8217;ll help you out.</li>
<li><strong>Region Settings &#8211; </strong>The region of the page where the block will appear. You can always change this later on using the procedure in the last section.</li>
<li><strong>Visibility Settings &#8211; </strong>This is where you can specify <em>when</em>your blocks can appear. These are the default options:
<ul>
<li><strong>Pages &#8211; </strong>Two option here for default behavior. (1) The block appears on every page except the ones you list or (2) the block appears only on the pages you specify. You specify pages by typing the path to the page without your domain name. For example, if you have a page at http://www.example.com/node/1234, you would type in node/1234 in the textbox to specify that page.<a href="http://www.phpcodester.com/wp-content/uploads/2011/06/drupal_new_block_pages.png"><img title="Drupal New Block - Page Restrictions" src="http://www.phpcodester.com/wp-content/uploads/2011/06/drupal_new_block_pages.png" alt="Drupal New Block - Page Restrictions" width="721" height="278" /></a></li>
<li><strong>Content types -</strong> Restrict your block to certain content types. For example, if you have a &#8220;Recent News&#8221; block that you made that only should appear on pages with articles and not on basic pages, check the box that says &#8220;Article&#8221; and it will only appear on article nodes. Note: if you don&#8217;t check anything here, your block will appear in all content types.<a href="http://www.phpcodester.com/wp-content/uploads/2011/06/drupal_new_block_content_type.png"><img title="Drupal New Block - Content Type Restrictions" src="http://www.phpcodester.com/wp-content/uploads/2011/06/drupal_new_block_content_type.png" alt="Drupal New Block - Content Type Restrictions" width="721" height="167" /></a></li>
<li><strong>Roles -</strong> Restrict the block to people with certain <a href="http://www.phpcodester.com/2011/05/managing-users-and-permissions-in-drupal-7/">permissions</a>. This is great if, for example, you have a site with &#8220;members only&#8221; areas. Only authenticated users will be able to view a block if you have only the &#8220;authenticated user&#8221; button selected. Another good example of restricting a block is if you are an administrator and want to see who&#8217;s online and their IP addresses. You could use a <a title="Drupal 7 Block for Who’s Online with Guests" href="http://www.phpcodester.com/2011/04/drupal-7-block-for-whos-online-with-guests/">who&#8217;s online block</a> and limit its use to only administrators. Again, if you leave all of these unchecked, anyone user role can see your block.<a href="http://www.phpcodester.com/wp-content/uploads/2011/06/drupal_new_block_roles.png"><img title="Drupal New Block - Role Restrictions" src="http://www.phpcodester.com/wp-content/uploads/2011/06/drupal_new_block_roles.png" alt="Drupal New Block - Role Restriction" width="719" height="179" /></a></li>
<li><strong>Users -</strong> Let users decide whether they want the block to appear or not&#8230;or don&#8217;t. These are your choices here.<a href="http://www.phpcodester.com/wp-content/uploads/2011/06/drupal_new_block_users.png"><img title="Drupal New Block - User Customization" src="http://www.phpcodester.com/wp-content/uploads/2011/06/drupal_new_block_users.png" alt="Drupal New Block - User Customization" width="724" height="168" /></a></li>
</ul>
</li>
</ul>
<p>Remember, in order to change any of these items below, you <strong>must</strong> click &#8220;Save Block&#8221;. This article is part of a large <a title="Setting up a Site in Drupal 7" href="http://www.phpcodester.com/2011/05/setting-up-a-site-in-drupal-7/">Drupal 7 Tutorial</a> and a subarticle about <a href="http://www.phpcodester.com/2011/06/managing-drupal-7s-structure/">Drupal&#8217;s Structure Menu</a>. Check out those posts for more valuable information!</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.energywebdevelopment.com/using-and-customizing-blocks-in-drupal-7/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Easily Backup your Drupal Site</title>
		<link>http://www.phpcodester.com/2011/05/easily-backup-your-drupal-site/</link>
		<comments>http://www.phpcodester.com/2011/05/easily-backup-your-drupal-site/#comments</comments>
		<pubDate>Tue, 31 May 2011 21:02:24 +0000</pubDate>
		<dc:creator>Brad</dc:creator>
				<category><![CDATA[Drupal 7 Tutorial]]></category>
		<category><![CDATA[Miscellaneous Drupal Stuff]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[Drupal 7]]></category>
		<category><![CDATA[Hosting]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[phpmyadmin]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[ubercart]]></category>

		<guid isPermaLink="false">http://www.phpcodester.com/?p=440</guid>
		<description><![CDATA[Its always a good idea to back up your data on a regular basis. This guide will walk you through how to make sure you always have your Drupal data backed up so that you do not suffer a catastrophe &#8230; <a href="http://www.phpcodester.com/2011/05/easily-backup-your-drupal-site/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Its always a good idea to back up your data on a regular basis. This guide will walk you through how to make sure you always have your Drupal data backed up so that you do not suffer a catastrophe to your website. It can also be used as a guide to restore or move your Drupal site.</p>
<p>There are two parts to Drupal&#8217;s data that you need to back up. We will look at both the file system and the database. This is where your valuable data is hiding.</p>
<h2>Backing up the Database</h2>
<p>Most webhosting comes with a program called phpMyAdmin. This is by far the easiest way to do a backup. The login to phpMyAdmin varies widely by webhost, so I really can&#8217;t give instructions on how to get there, but if you can get to phpMyAdmin, then follow these instructions.</p>
<p>When you log in to phpMyAdmin, you will see two frames. The frame on the left shows your databases, and the right shows some actions you can take on your server. Find your database on the left hand side. Click on it. The illustration below shows where you can select the database on the left.</p>
<p><a href="http://www.phpcodester.com/wp-content/uploads/2011/05/drupal_phpmyadmin1.png"><img class="aligncenter size-large wp-image-443" title="PhpMyAdmin Database Selection" src="http://www.phpcodester.com/wp-content/uploads/2011/05/drupal_phpmyadmin1-1024x334.png" alt="PhpMyAdmin Database Selection Drupal" width="620" height="202" /></a></p>
<p>When you&#8217;ve selected your database, you need to click the &#8220;Export&#8221; button in the right hand frame, as shown above. This will take you to the PhpMyAdmin export screen. Which looks like this:</p>
<p><a href="http://www.phpcodester.com/wp-content/uploads/2011/05/drupal_phpmyadmin_export.png"><img class="aligncenter size-large wp-image-444" title="Database Export in PhpMyAdmin to Backup Drupal" src="http://www.phpcodester.com/wp-content/uploads/2011/05/drupal_phpmyadmin_export-1024x810.png" alt="Database Export in PhpMyAdmin to Backup Drupal" width="620" height="490" /></a></p>
<p>You don&#8217;t need to change any of these options except for &#8220;Compression&#8221;. You want to use some sort of compression, I like gzip, but you can use zip if you like. The compression keeps you from downloading a gigantic text file. After you click &#8220;Go&#8221; in the bottom right hand corner, your browser will download a file that contains your database backup. Keep this in a safe place, its your backup.</p>
<h3>Database Backup without PhpMyAdmin</h3>
<p>If you need to backup your database without using PhpMyAdmin, you can do so by using your webhost&#8217;s SSH server. You will need a tool like <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/" target="_blank">PuTTY</a> (Windows), or the terminal console (Linux/Mac). These directions are almost the same for both methods, except the first step.</p>
<p>Step 1 (on terminal consoles only), type in the following, replacing with your information:</p>
<pre class="brush:bash">ssh username@yourdomain.com</pre>
<p>It will prompt you for your password, tell it your webhosting password.</p>
<p>Step 1 (PuTTY), log in to your webserver using SSH and your username and password.</p>
<p>Step 2, dump (backup to a file) your database. Type in the following command, again, replacing my sample data with your real data:</p>
<pre class="brush:bash">mysqldump --user=XXXXXXXX --password=XXXXXXX --databases DB_NAME &gt; /PATH/TO/DUMPFILE.SQL</pre>
<p>You need to use your MySQL username and password for this command. This will save your file to wherever you told it to save by replacing /PATH/TO/DUMPFILE.SQL with a real path. You now want to compress this new file and remove the original. Run the following series of commands:</p>
<pre class="brush:bash">tar cvzf /PATH/TO/mybackup.tar.gz /PATH/TO/DUMPFILE.SQL
rm /PATH/TO/DUMPFILE.SQL</pre>
<p>This compresses the data into a new file called mybackup.tar.gz and deletes the old (large) .SQL file. Now, use FTP or a file navigator provided by your webhost to navigate to the path you set in &#8220;/PATH/TO&#8221; and then download mybackup.tar.gz. This is your backed up database.</p>
<p>You should probably run a database backup every day, or at least once a week. This is where the bulk of your content and information is.</p>
<h2>Backing Up Drupal&#8217;s Files</h2>
<p>Using your favorite FTP client, sign in to where you keep your website&#8217;s files. Drupal&#8217;s core files are really only going to change when you do an update, so you don&#8217;t really need to download the whole site except when you make updates. The site is going to be located in your public_html or www folder on a Linux server. You should download this entire folder when you make updates.</p>
<p>All of your customized information (themes, modules, uploaded media, etc) is located in the sites folder. In your web root folder, you will want to download the entire sites folder. This folder can be MASSIVE if you have a lot of media on your site, such as an e-commerce website or video hosting service. You can get away with downloading this folder a little less often than your database. I would recommend weekly and at least monthly.</p>
<h2>Restoring your Database</h2>
<p>To restore your database, the procedure is very similar to backing it up. You need to log in to PhpMyAdmin like before and then find your database. This is where things change a little bit. Instead of clicking &#8220;Export&#8221; at the top, you should click &#8220;Import&#8221;. Don&#8217;t change any of the settings. Click where it says &#8220;Choose File&#8221; and then pick your backup when the dialog pops up.</p>
<p>If the script times out, don&#8217;t worry, just run it again and it will pick from where it left off. If not, it should at least tell you where it failed and what query it was on, you have the option to skip a number of queries at the beginning when you upload the file.</p>
<p><a href="http://www.phpcodester.com/wp-content/uploads/2011/05/drupal_phpmyadmin_import.png"><img class="aligncenter size-full wp-image-447" title="Using PhpMyAdmin to Import a Backup into Drupal" src="http://www.phpcodester.com/wp-content/uploads/2011/05/drupal_phpmyadmin_import.png" alt="Using PhpMyAdmin to Import a Backup into Drupal" width="702" height="576" /></a></p>
<h3>Database Restore without PhpMyAdmin</h3>
<p>If you don&#8217;t have PhpMyAdmin with your webhost, don&#8217;t despair. Here are the instructions to do it using SSH.</p>
<p>First, put your backup file on your webserver using FTP in a spot where you can find it. We will call this /PATH/TO/mybackup.tar.gz</p>
<p>Then, log in to your SSH server using the method above for a Database Backup. When you are logged in, you need to use the following command to restore the database from your backup.</p>
<p><strong>WARNING: This will erase any data you have in your database and replace it with your backup data.</strong></p>
<pre class="brush:bash">cd /PATH/TO
tar -xvf mybackup.tar.gz
mysql -u root -p[database_password] [database_name] &lt; DUMPFILE.sql</pre>
<p>Again, you need to replace this with your specific information. This procedure will restore you database to its condition at the time of your backup.</p>
<h2>Restoring your Files</h2>
<p>Using an FTP client, upload the files in your backup to their appropriate location (where you backed them up from).</p>
<h2>Moving a Drupal Site</h2>
<p>If you are using this procedure to move a site from one server to another, you need to run the backup and restore instructions above, but restore to the new server. After doing this, you will find that your site probably doesn&#8217;t work. You need to edit the /sites/default/settings.php file to put in your new database login information. After doing this, you should have been able to move your website to a different server with no problems.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpcodester.com/2011/05/easily-backup-your-drupal-site/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Adding Content in Drupal 7</title>
		<link>http://www.phpcodester.com/2011/05/adding-content-in-drupal-7/</link>
		<comments>http://www.phpcodester.com/2011/05/adding-content-in-drupal-7/#comments</comments>
		<pubDate>Fri, 27 May 2011 23:01:20 +0000</pubDate>
		<dc:creator>Brad</dc:creator>
				<category><![CDATA[Navigating Drupal 7]]></category>
		<category><![CDATA[Drupal 7]]></category>

		<guid isPermaLink="false">http://www.phpcodester.com/?p=382</guid>
		<description><![CDATA[At first, adding content in Drupal can seem overwhelming, don&#8217;t worry, it&#8217;s not once you read this guide. First it makes sense to cover the different content types available to Drupal 7. They are definitely not limited to this list, &#8230; <a href="http://www.phpcodester.com/2011/05/adding-content-in-drupal-7/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>At first, adding content in Drupal can seem overwhelming, don&#8217;t worry, it&#8217;s not once you read this guide. First it makes sense to cover the different content types available to Drupal 7. They are definitely not limited to this list, but these are the main ones:</p>
<table>
<tbody>
<tr>
<th>Article</th>
<td>This is a short term (although enduring) type of content. This is more for time sensitive information than the other content types. A news organization would be a good example of a site that would regularly use this content type.</td>
</tr>
<tr>
<th>Basic Page</th>
<td>These are used for your &#8220;static&#8221; pages, those pages that don&#8217;t change very often and are not time sensitive. For most informational websites, this will be the primary content type.</td>
</tr>
<tr>
<th>Blog Entry</th>
<td>Just what it sounds like, its a weblog entry. You can set these up so that your users can maintain their own blog, or you can use it to maintain a blog on your site, or as a site that is exclusively a blog. These have all of the bells and whistles your typical blog would have.</td>
</tr>
<tr>
<th>Poll</th>
<td>These are those silly polls that ask you a question about something and display all of the responses of other visitors</td>
</tr>
<tr>
<th>Product</th>
<td>If you are using Ubercart, this is a product in your webstore.</td>
</tr>
</tbody>
</table>
<h2>Content Overview</h2>
<p>This may look familiar if you read my post on the <a href="http://www.phpcodester.com/2011/05/working-with-drupal-7s-main-menu-navigation/">Drupal navigation menu</a>. Click on the content menu at the top of the screen. First let&#8217;s look at the layout of the screen and what everything means. I have numbered everything for simplicity. We will go over each area in order.</p>
<p><a href="http://www.phpcodester.com/wp-content/uploads/2011/05/drupal_content.png"><img class="aligncenter size-large wp-image-421" title="Drupal Content Menu" src="http://www.phpcodester.com/wp-content/uploads/2011/05/drupal_content-1024x474.png" alt="Drupal Content Menu" width="620" height="286" /></a></p>
<ol>
<li><strong>Top Menu -</strong> Your top menu probably looks different than the one above. This is because installing modules will add to this window. My example site is a fully operational, production site. The top menu gives you an opportunity to manage your modules and also completely different content types (content or media like pictures and videos). By default, you are in the &#8220;Content&#8221; section of the top menu. If you would like to manage comments that your users have made, you can click on the &#8220;Comments&#8221; menu, and many of the ideas are the same as what is presented here.</li>
<li><strong>Add Content &#8211; </strong>Click this link to add content, just like it says. This will bring up a completely different screen for adding and editing content. We will get to this in detail a little bit later.</li>
<li><strong>Filter Content &#8211; </strong>This is where you can filter the content types that appear in your content list (5). You can filter by status, type, and language. We&#8217;ll talk about what all of this means in a little bit.</li>
<li><strong>Bulk Updates -</strong>You can change properties of your content quickly by doing a bulk update. Just click the checkboxes in your content list (5) and then apply a change from the bulk update drop down list. The bulk update allows you to do a number of things:
<ul>
<li><strong>Publish Selected Content &#8211; </strong>If you have written content and saved it as a draft, you can publish it to your website by &#8220;Publishing&#8221; the content. Visitors to your webpage will then be able to see the content.</li>
<li><strong>Unpublish Selected Content &#8211; </strong>This will take a piece of content and return it to draft mode. It does not delete the item, but it does take it down from your website.</li>
<li><strong>Promote Selected Content to Front Page &#8211; </strong><br />
If you have a front page that shows the latest content, this will put that item on your front page.</li>
<li><strong>Demote Selected Content from Front Page &#8211; </strong>This takes it off the front page.</li>
<li><strong>Make Selected Content Sticky &#8211; </strong>Sticky items are those that like to &#8220;stick&#8221; to the top whenever they are in a list. Sticky is more or less another way of saying &#8220;give this content priority over other content&#8221;.</li>
<li><strong>Make Selected Content Not Sticky &#8211; </strong>This removes that sticky status.</li>
<li><strong>Delete Selected Content &#8211; </strong>If you are using Ubercart, this is a product in your webstore.</li>
</ul>
</li>
<li><strong>Node List -</strong> I have been calling this a content list up until now. Let&#8217;s first define what a node is.<br />
<blockquote><p>A node is any piece of content in Drupal 7. It&#8217;s an all encompassing term for article, basic page, poll, product, etc.</p></blockquote>
<p>The node list might be a little overwhelming at first, but let&#8217;s break it down into its parts.</p>
<ul>
<li><strong>Title &#8211; </strong>This is the title of the post. It is what will be displayed on the top of the screen and also in your browser bar. Make sure you make powerful titles for your posts so that people can find them.</li>
<li><strong>Type &#8211; </strong>These are the content types we discussed at the very beginning of the post.</li>
<li><strong>Author &#8211; </strong>This is the user that wrote the node.</li>
<li><strong>Status &#8211; </strong>The status of the node: published, sticky, promoted to front page, etc.</li>
<li><strong>Updated &#8211; </strong>The last time anyone has made changes to the node.</li>
<li><strong>Language -</strong> The language of the article (defined by the author). This could also be &#8220;undefined&#8221;. You really only need to pay attention to this on a multilingual site.</li>
<li><strong>Operations &#8211; </strong>Edit brings up the &#8220;edit post&#8221; screen (very similar to adding a post), delete removes the post and deletes it forever (Note: if you just unpublish posts, you never have to delete them. Unless you have a good reason, you should probably never delete your posts).</li>
</ul>
</li>
</ol>
<h2>Adding and Editing Content</h2>
<p>Let&#8217;s start with an overview of the &#8220;Add Content&#8221; area of your Drupal 7. You will get here by first clicking on the top navigation menu &#8220;Content&#8221; then clicking on &#8220;<strong>+ </strong>Add Content&#8221;. Drupal will then ask you what type of content you would like to add. You can choose anything you&#8217;d like, but I&#8217;ll walk you through adding a basic page. So, click on the &#8220;Basic Page&#8221; link. Also, if you click on the edit button in the node list, it will bring up this page, it will just have your current content in it.</p>
<p><a href="http://www.phpcodester.com/wp-content/uploads/2011/05/drupal_basic_page.png"><img class="aligncenter size-large wp-image-427" title="drupal_basic_page" src="http://www.phpcodester.com/wp-content/uploads/2011/05/drupal_basic_page-1024x723.png" alt="" width="620" height="437" /></a></p>
<ol>
<li><strong>Title &#8211; </strong>The title of your post. This will be displayed as the heading of your post and in the browser bar. Pick this carefully. Good titles determine whether someone will be able to find your page or not.</li>
<li><strong>Body -</strong> The meat of your page. This is where your actual content goes. If I was writing this article in Drupal, this text you are reading would have been in the body section. You write this text in HTML. If you or your users don&#8217;t know HTML, see my post on installing a <a href="http://www.phpcodester.com/2011/05/adding-a-wysiwyg-editor-to-drupal-7/">WYSIWYG editor for Drupal</a>.</li>
<li><strong>Text Format -</strong> There are typically three types of inputs here (but you can add more when <a href="http://www.phpcodester.com/2011/05/configuring-your-drupal-7-site/">configuring your site</a>). The types are &#8220;Full HTML&#8221;, &#8220;Filtered HTML&#8221; and &#8220;Plain Text&#8221;. These determine what HTML tags you can use in your node. Typically for a regular node, you&#8217;ll want to use &#8220;Full HTML&#8221;. The others are for filtering user input so nefarious users can&#8217;t turn your site into spam. For example, comments might use &#8220;Plain Text&#8221; or &#8220;Filtered HTML&#8221;. The amount of restriction between input types depends on your setting in your site configuration.</li>
<li><strong>Special Settings -</strong> See Below.</li>
<li><strong>Save and Preview Buttons -</strong> Press save to save your changes and commit to your changes. Press preview to see what they look like without committing.</li>
</ol>
<h3>Special Settings</h3>
<p>Section 4 above, special setting are all the nitty-gritty details about your post. You can alter the behavior of your node by modifying these special special settings.</p>
<h4>Menu Settings</h4>
<p>Is this content super important? You may want to put it in a menu then. This allows you to be able to automatically place your content in a menu heading and create the menu right here on the spot. Here&#8217;s how you do it:</p>
<p><a href="http://www.phpcodester.com/wp-content/uploads/2011/05/drupal_menu_settings.png"><img class="aligncenter size-full wp-image-431" title="Drupal Menu Settings" src="http://www.phpcodester.com/wp-content/uploads/2011/05/drupal_menu_settings.png" alt="Setting the menu setting in drupal 7 content" width="744" height="386" /></a></p>
<p>First, you have to click &#8220;Provide a menu link&#8221;, when you do this, thanks to the magic of javascript, you will have a plethora of options appear. They are pretty self explanatory, but I&#8217;ll explain them anyway.</p>
<p>The <strong>menu link title</strong> is what will appear in the menu. You probably want to keep this short and sweet, but that&#8217;s up to you. The <strong>description</strong> is what will appear when someone puts their mouse over top of your new menu. They don&#8217;t have to click anything, it just gives them an idea of what their about to click on. <strong>Parent item</strong> specifies the parent of your menu. Leave this blank if your new menu is NOT a submenu of something else. This is mainly for making submenus. <strong>Weight</strong> specifies the order that the menu items come in. Its really hard to set this from here because you normally don&#8217;t know the weights of the other menu items. You are better off managing menu weights in the <a href="http://www.phpcodester.com/2011/05/managing-drupal-7s-structure/">structure area of Drupal 7</a>.</p>
<p>When you save your new node, the menus will be automatically created. If your node isn&#8217;t published and you don&#8217;t see your menu, don&#8217;t be alarmed. Drupal is only going to display menus that have content.</p>
<h4>Revision Information</h4>
<p>This section allows you to take notes about changes to the content. This is good for larger websites where many people are working on the content. Update this with the changes you are making and why, then other users can see what you were up to and what you were thinking when changing the node.</p>
<h4>URL Path Alias</h4>
<p>Huh? The uniform resource locator (URL) path alias is fancy name for &#8220;better web address&#8221;. Drupal will typically make your web address something like http://www.example.com/node/12342342. This isn&#8217;t very descriptive or easy to remember. In order to change that into something more descriptive, write a machine-readable name in the text box. For example, if your node is about Monarch Butterflies, you could make your URL Path Alias monarch-butterflies and the new path would be http://www.example.com/monarch-butterflies. Much easier to remember!</p>
<h4>Comment Settings</h4>
<p>Do you want to allow users to leave comments? &#8220;Open&#8221; for yes, &#8220;Closed&#8221; for no. That simple.</p>
<p><a href="http://www.phpcodester.com/wp-content/uploads/2011/05/drupal_comment_settings1.png"><img class="aligncenter size-full wp-image-435" title="Drupal Comment Settings" src="http://www.phpcodester.com/wp-content/uploads/2011/05/drupal_comment_settings1.png" alt="Drupal Node Comment Settings" width="692" height="308" /></a></p>
<h4>Authoring Information</h4>
<p>The name of the author and the date the article was written. If you want to assign someone else as the author or fudge the date of a post, this is the place to do it.</p>
<h4>Publishing Information</h4>
<p>These are the settings we talked about earlier when we discussed bulk updates. This is where we specify the publishing options for a single node.</p>
<p><a href="http://www.phpcodester.com/wp-content/uploads/2011/05/drupal_publishing_options.png"><img class="aligncenter size-full wp-image-436" title="Drupal Publishing Options" src="http://www.phpcodester.com/wp-content/uploads/2011/05/drupal_publishing_options.png" alt="Drupal Node Publishing Options" width="456" height="311" /></a>If the <strong>Published</strong> box is checked, the node will be visible to the public.</p>
<p>The <strong>Promoted to the front page</strong> option will put the new node on the front page if you haven&#8217;t specified a specific node to be your front page. We will discuss a static front page later when we talk about <a href="http://www.phpcodester.com/2011/05/configuring-your-drupal-7-site/">configuring Drupal</a>. If you have a static front page, this button doesn&#8217;t do anything.</p>
<p>The <strong>Sticky at the top of lists</strong> checkbox will give this node priority in searches and lists. It will appear at the top of any list of nodes in the site. Please note though, if you have a lot of &#8220;Sticky&#8221; nodes, then this may not be as close to the top as you&#8217;d like. Make some of the other nodes &#8220;Not Sticky&#8221; and then you will get that priority back.</p>
<p>This is all there is to it. When you&#8217;re happy with your content, click Save, and if you&#8217;ve chosen to publish it, it will be up on your site. Congratulations!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpcodester.com/2011/05/adding-content-in-drupal-7/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Customizing the Drupal 7 Dashboard</title>
		<link>http://www.phpcodester.com/2011/05/customizing-the-drupal-7-dashboard/</link>
		<comments>http://www.phpcodester.com/2011/05/customizing-the-drupal-7-dashboard/#comments</comments>
		<pubDate>Thu, 26 May 2011 15:00:27 +0000</pubDate>
		<dc:creator>Brad</dc:creator>
				<category><![CDATA[Navigating Drupal 7]]></category>
		<category><![CDATA[Drupal 7]]></category>

		<guid isPermaLink="false">http://www.phpcodester.com/?p=387</guid>
		<description><![CDATA[The Drupal Dashboard is an area of your site only available to you and your other administrators. It provides a quick overview of what is happening on your site. It is managed in a way that is very similar to &#8230; <a href="http://www.phpcodester.com/2011/05/customizing-the-drupal-7-dashboard/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>The Drupal Dashboard is an area of your site only available to you and your other administrators. It provides a quick overview of what is happening on your site. It is managed in a way that is very similar to the <a href="http://www.phpcodester.com/2011/05/managing-drupal-7s-structure/">block structure of your user-visible site</a>. It&#8217;s best to start with a picture of what the dashboard is:</p>
<p><a href="http://www.phpcodester.com/wp-content/uploads/2011/05/drupal_dashboard.png"><img class="aligncenter size-large wp-image-411" title="Drupal's Default Dashboard" src="http://www.phpcodester.com/wp-content/uploads/2011/05/drupal_dashboard-1024x460.png" alt="Drupal default dashboard" width="620" height="278" /></a></p>
<p>Note that this (default) dashboard has the &#8220;Recent content&#8221;, &#8220;Search form&#8221;, and &#8220;Who&#8217;s new&#8221; <em>blocks</em> enabled.</p>
<blockquote><p>Blocks are Drupal 7&#8242;s functional units. They all do a specific task, largely independent from the other blocks.</p></blockquote>
<p>Let&#8217;s say that you would like to have other blocks in your dashboard besides the defaults. There is a way to do this. Click on the link that says &#8220;<strong>+</strong> Customize dashboard&#8221;. You will see an area on the top of your dashboard that looks like this:</p>
<p><a href="http://www.phpcodester.com/wp-content/uploads/2011/05/drupal_edit_dashboard1.png"><img class="aligncenter size-full wp-image-412" title="Drupal Dashboard Customization Step 1" src="http://www.phpcodester.com/wp-content/uploads/2011/05/drupal_edit_dashboard1.png" alt="customizing the drupal 7 dashboard" width="843" height="333" /></a><a href="http://www.phpcodester.com/wp-content/uploads/2011/05/drupal_edit_dashboard1.png"><br />
</a>Each of those dark areas are additional blocks that you can add to your dashboard. Just grab on with your mouse and drag it to the area of the dashboard where you would like to see it, and ouila, you&#8217;ve just expanded your Drupal administrators dashboard. You can also move existing blocks around this way.</p>
<p>Can&#8217;t find the block you&#8217;d like in the list they gave you? Want something different than the 4 choices of additional dashboard blocks? Don&#8217;t worry, you can add them. After opening up the customization drop down, click the link that says &#8220;Add other blocks&#8221;. This will take you to an entirely other area with lots of options. Your new area looks like this:</p>
<p><a href="http://www.phpcodester.com/wp-content/uploads/2011/05/drupal_edit_dashboard2.png"><img class="aligncenter size-large wp-image-413" title="Drupal 7 Dashboard Edit, Part 2" src="http://www.phpcodester.com/wp-content/uploads/2011/05/drupal_edit_dashboard2-1024x636.png" alt="Drupal 7 Dashboard Edit, Part 2" width="620" height="385" /></a></p>
<p>Here you can add non-default items to your dashboard. There are three <em>regions</em> in the dashboard.</p>
<blockquote><p>A region in Drupal is a layout area where you put blocks. For example, a sidebar or a header are regions of your webpage.</p></blockquote>
<p>The three regions in the dashboard are:</p>
<ul>
<li><strong>Dashboard (main)</strong> This is the large region of your dashboard. In the default theme it is on the left and takes up about 2/3 the width of the dashboard.</li>
<li><strong>Dashboard (sidebar)</strong> The other 1/3 of the width of the dashboard. This is the sidebar. It is on the right in the default theme.</li>
<li><strong>Dashboard (inactive) </strong> Remember the dark blocks we were able to drag and drop? These were in the Dashboard (inactive) region.</li>
<li><strong>- None &#8211; </strong> Not really a region, but it is what appears when a block is not assigned to a region.</li>
</ul>
<p>If you would like to place a nonstandard block in one of the three regions, just change the drop-down box in the column &#8220;Region&#8221; to the location where you would like to see your block. You can also drag and drop the blocks around to the different regions.</p>
<p><strong>Caution: Make sure you hit the &#8220;Save Blocks&#8221; button at the bottom of the screen before proceeding, or you will lose all of your changes.</strong></p>
<p>Each block also has a configure button to change settings within the block itself. Every block has unique configurable settings that you can change and tweak. This is covered more extensively in my <a href="http://www.phpcodester.com/2011/05/managing-drupal-7s-structure/">post on Drupal 7&#8242;s structure</a>. The only thing you need to know that isn&#8217;t covered in that post is that your default theme for the dashboard is &#8220;Seven (administration theme)&#8221;.</p>
<p>This pretty much covers the dashboard. Like I promised, there&#8217;s not a whole lot to it and it is pretty simple. If you still have questions, chances are, someone else has the same question. Post a comment with any questions and I will be happy to help you out.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpcodester.com/2011/05/customizing-the-drupal-7-dashboard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Working with Drupal 7&#8242;s Main Menu Navigation</title>
		<link>http://www.phpcodester.com/2011/05/working-with-drupal-7s-main-menu-navigation/</link>
		<comments>http://www.phpcodester.com/2011/05/working-with-drupal-7s-main-menu-navigation/#comments</comments>
		<pubDate>Thu, 26 May 2011 05:03:11 +0000</pubDate>
		<dc:creator>Brad</dc:creator>
				<category><![CDATA[Navigating Drupal 7]]></category>
		<category><![CDATA[Drupal 7]]></category>

		<guid isPermaLink="false">http://www.phpcodester.com/?p=386</guid>
		<description><![CDATA[&#160; At first glance, Drupal 7 can seem daunting, but it&#8217;s not as bad as you think. The design of Drupal makes it so that you have to do no changes to the source code to accomplish your goals in &#8230; <a href="http://www.phpcodester.com/2011/05/working-with-drupal-7s-main-menu-navigation/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p>
<p>At first glance, Drupal 7 can seem daunting, but it&#8217;s not as bad as you think. The design of Drupal makes it so that you have to do no changes to the source code to accomplish your goals in the system. This has the downside that it can have seemingly over complex menus and options. It&#8217;s really a trade off, easy interface vs flexible software. This guide seeks to make using Drupal easier for the beginning user.</p>
<p>First, before starting, you need to access the administrative area of the website. Unlike other content management systems (CMS), Drupal&#8217;s administration panel is highly integrated with the site. In the default installation, there is a login block installed. Sign in with the username and password you created when <a href="http://www.phpcodester.com/2011/05/installing-drupal-7/">installing Drupal 7</a>.</p>
<p>The sections in a default Drupal configuration are:</p>
<ul>
<li><a href="http://www.phpcodester.com/2011/05/customizing-the-drupal-7-dashboard">Dashboard</a></li>
<li><a href="http://www.phpcodester.com/2011/05/adding-content-in-drupal-7/">Content</a></li>
<li><a href="ttp://www.phpcodester.com/2011/05/managing-drupal-7s-structure/">Structure</a></li>
<li><a href="http://www.phpcodester.com/2011/05/theming-drupal-7-with-zen/">Appearance</a></li>
<li><a href="http://www.phpcodester.com/2011/05/managing-users-and-permissions-in-drupal-7/">People</a></li>
<li><a href="http://www.phpcodester.com/2011/05/adding-modules-in-drupal-7/">Modules</a></li>
<li><a href="http://www.phpcodester.com/2011/05/configuring-your-drupal-7-site/">Configuration</a></li>
<li><a href="http://www.phpcodester.com/2011/05/running-reports-in-drupal-7/">Reports</a></li>
</ul>
<p>There is also a shortcuts menu below this one. With the default installation this shows:</p>
<ul>
<li>Add Content</li>
<li>Find Content</li>
</ul>
<p>Rather than describing in detail, each of these menus, the menu area will be briefly described with a link to a detailed page about the administration area.</p>
<h2>Drupal&#8217;s Dashboard</h2>
<p>The <a href="http://www.phpcodester.com/2011/05/customizing-the-drupal-7-dashboard">Drupal 7 dashboard</a> is an area where you can put links and widgets to your favorite, most used areas of the site. I hardly ever use the dashboard, but think of it as your desktop. By default, this area displays recently added content, recent users, and a search bar for the site.</p>
<h2>Content Menu</h2>
<p>The <a href="http://www.phpcodester.com/2011/05/adding-content-in-drupal-7/">content menu</a> is the heart of the Drupal interface. After you have your site up and running, this is the area that you will use on a daily basis and most of the other areas will be largely ignored.</p>
<p>Content is considered the articles, pages, blog posts, polls, products (if you are using Ubercart or Commerce modules), etc. that are the key to your site. Content types are not limited to those I just mentioned, many modules add their own content types, these types should cover it for most people though.</p>
<h3>Basic Content Types</h3>
<table>
<tbody>
<tr>
<th>Article</th>
<td>This is a short term (although enduring) type of content. This is more for time sensitive information than the other content types. A news organization would be a good example of a site that would regularly use this content type.</td>
</tr>
<tr>
<th>Basic Page</th>
<td>These are used for your &#8220;static&#8221; pages, those pages that don&#8217;t change very often and are not time sensitive. For most informational websites, this will be the primary content type.</td>
</tr>
<tr>
<th>Blog Entry</th>
<td>Just what it sounds like, its a weblog entry. You can set these up so that your users can maintain their own blog, or you can use it to maintain a blog on your site, or as a site that is exclusively a blog. These have all of the bells and whistles your typical blog would have.</td>
</tr>
<tr>
<th>Poll</th>
<td>These are those silly polls that ask you a question about something and display all of the responses of other visitors</td>
</tr>
<tr>
<th>Product</th>
<td>If you are using Ubercart, this is a product in your webstore.</td>
</tr>
</tbody>
</table>
<p>This content area shows a nice interface of current content and some simple filters. It provides mechanisms to make bulk updates to your content. This is also where you go to add, edit and delete site content.</p>
<h2>Structure Menu</h2>
<p>The structure menu houses the key areas for managing the navigation and secondary appearance of your website. What is secondary appearance? This is all the non-critical, but important, information you see on the typical website. Some examples are the user login, search box, recent content menus. You will access this area from time to time in a fully configured and setup website in order to add menu items and taxonomy data.</p>
<h3>Basic Structure Types</h3>
<table>
<tbody>
<tr>
<th>Blocks</th>
<td>Called &#8220;widgets&#8221; by some people, blocks are the minipages within your webpage. You can find blocks for search, user login, recent blog posts, and pretty much anything you can think of (with the right extension module).</td>
</tr>
<tr>
<th>Content Types</th>
<td>This is the management area for the default setting for the various content types in your site (discussed in the last section).</td>
</tr>
<tr>
<th>Menus</th>
<td>Menus are the various menus that appear all around the site. Your primary menus are the main menu, user menu and navigation. Further menus can be added here and put into blocks. This is discussed further in the page on <a href="ttp://www.phpcodester.com/2011/05/managing-drupal-7s-structure/">managing Drupal&#8217;s structure</a>.</td>
</tr>
<tr>
<th>Taxonomy</th>
<td>Taxonomy defines the categorization of your content. It is also the basis for the <a href="http://en.wikipedia.org/wiki/Breadcrumb_(navigation)">breadcrumbs</a> on your site.</td>
</tr>
</tbody>
</table>
<p>You can manage all of these &#8220;structure types&#8221; within the structure menu. Some of the items you can do here include moving around the location and disabling blocks, defining special properties for  certain types of content, creating your main menus, and defining your categorization. This is all discussed further in my post on <a href="ttp://www.phpcodester.com/2011/05/managing-drupal-7s-structure/">Drupal structure</a>.</p>
<h2>Appearance Menu</h2>
<p>The appearance menu&#8217;s name is somewhat deceiving. Most changes to appearance occur in the structure menu. The appearance menu houses <a href="http://www.phpcodester.com/2011/05/theming-drupal-7-with-zen/">Drupal 7&#8242;s theming engine</a>. Basically the only thing you can do here is change what them you are using and load in new themes. If the theme you are using has specific options, such as different colors, you can find them here. Don&#8217;t be deceived by the title of this menu. If you want to do some serious customization of the site appearance, you will have to<a href="http://www.phpcodester.com/2011/05/theming-drupal-7-with-zen/"> dig into the cascading style sheets (CSS) </a>and make changes there.</p>
<h2>People Menu</h2>
<p>People is just another word for users. This is where you manage your website users, administrators, authors, etc. You can see who has signed up for your site and any personal information they have trusted you with. You can block users from the site or crown them as an administrator. This is also where you come to manage user types and permissions. In Drupal you are not limited to an anonymous user, authenticated user and an admin user. You can add all kinds of users. For example, say you have content authors and editors. You can add an author role and an editor role and only allow authors to write articles while an editor can write and publish articles. The possibilities are endless. For more details on how to do this, see my post on <a href="http://www.phpcodester.com/2011/05/managing-users-and-permissions-in-drupal-7/">managing permissions and users</a>.</p>
<h2>Modules Menu</h2>
<p>This is where you add, install, enable and configure additional functionality to Drupal. Modules are extensions to the Drupal core that can do a lot of really neat things, such as interface with Google Analytics or even go so far as to <a title="Install Ubercart in Drupal 7" href="http://www.phpcodester.com/2011/05/install-ubercart-in-drupal-7/">add a shopping cart to Drupal 7</a>. Please see my post on installing and managing modules for more details.</p>
<h2>Configuration Menu</h2>
<p>In the configuration menu, you can manage your entire sites configuration and many module configurations. There is way too much detail to get into in this post, but my post on <a href="http://www.phpcodester.com/2011/05/configuring-your-drupal-7-site/">managing your Drupal 7 configuration</a> goes into detail on each of the settings in the configuration menu in a default installation.</p>
<h2>Reports Menu</h2>
<p>The <a href="http://www.phpcodester.com/2011/05/running-reports-in-drupal-7/">reports section</a> gives you details about how your site is running. Here you can view your logs, see if your site is up to date, see who&#8217;s been accessing your site and look at traffic, and also see what errors have been occurring on the site. These can be a great resource to check up on your site to see how it is doing. The reports are not, however, a substitute for a good analytics package.</p>
<p>This pretty much sums up the purpose of administration menu section in Drupal and gives you a preview of what you can do. Read the other articles in the series to really get a feel for Drupal 7 and its power. This tutorial is a work in progress, if some of the links are broken, its probably because I haven&#8217;t written the article yet. Drop some comments if you have any questions for me.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpcodester.com/2011/05/working-with-drupal-7s-main-menu-navigation/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
