How to enable images for Basic Pages in Drupal 7

Within the core Drupal 7, only Articles have the ability to add images to the content by default. This can be enabled for Basic Pages also by configuring the proper setting in the admin dashboard. Below are the steps you will need to follow to turn on the ability to add images to Basic Pages Read More >

Joomla 2.5 Templates – $files = JHtml::_(stylesheet)

In this class, we are learning how to create Joomla 2.5 templates by first looking at the PHP code in the Beez2 index.php file. We have already looked at quite a bit of php code, and as we continue our review we come to the following code: $files = JHtml::_(‘stylesheet’, ‘templates/’.$this->template.’/css/general.css’, null, false, true); if Read More >

How to add a new position to a Joomla 2.5 Template

While reviewing the PHP code in the Joomla 2.5 Beez2 template, we come across the following code: <jdoc:include type=”modules” name=”position-0″ /> The code above defines a new position within a template, in this case position-0. If you want to add a new position to your template, you’ll need to use code similar to the above. Read More >

Joomla 2.5 Templates – $this->direction

The last use of $this in the Joomla 2.5 Beez2 template that will review is $this->direction. We can see it being used in the following section of code in the template’s PHP file: <html xmlns=”https://www.w3.org/1999/xhtml” xml:lang=”<?php echo $this->language; ?>” lang=”<?php echo $this->language; ?>” dir=”<?php echo $this->direction; ?>” > When we look at the result of Read More >

Joomla 2.5 Templates – $this->language

In our last few tutorials, we have covered the $this variable in Joomla 2.5 templates. We will continue focusing on $this, and this time examining the following code: <html xmlns=”https://www.w3.org/1999/xhtml” xml:lang=”<?php echo $this->language; ?>” lang=”<?php echo $this->language; ?>” dir=”<?php echo $this->direction; ?>” > The output of the above PHP code results in the following code Read More >

Joomla 2.5 Templates – $this->template

In the Joomla 2.5 Beez2 template, we see the following PHP code in the index.php file: $doc->addScript($this->baseurl.’/templates/’.$this->template.’/javascript/md_stylechanger.js’, ‘text/javascript’, true); In this tutorial, we will focus on $this->template.   What is $this->template To find out what the value is of $this->template, we will update our template’s code as follows: $doc->addScript($this->baseurl.’/templates/’.$this->template.’/javascript/md_stylechanger.js’, ‘text/javascript’, true); echo “<pre>” . $this->template Read More >

Joomla 2.5 Templates – $this->

We are continuing to review Joomla 2.5’s Beez2 template code, and we next come accross the following code: <html xmlns=”https://www.w3.org/1999/xhtml” xml:lang=”<?php echo $this->language; ?>” lang=”<?php echo $this->language; ?>” dir=”<?php echo $this->direction; ?>” > In our review thus far, we have alread seen instances of $this->, for example: $showRightColumn $this->countModules $this->params->get What is $this-> ? Technically Read More >

Joomla 2.5 Templates – JFactory::getDocument()

In our continued effort to review the PHP code in the Joomla 2.5 Beez2 template, we come across the following code: // get params $color = $this->params->get(‘templatecolor’); $logo = $this->params->get(‘logo’); $navposition = $this->params->get(‘navposition’); $app = JFactory::getApplication(); $doc = JFactory::getDocument(); Our specific focus in this article will be $doc = JFactory::getDocument(). What is getDocument? According to Read More >

Introduction to RSS Feeds in Drupal 7

Below is a short introduction to RSS Feeds, how they work, and why they are used. What is an RSS Feed? RSS (Really Simple Syndication) feeds are a way for you to let your visitors and subscribers know about changes on your site. It is most commonly used to distribute headlines, updates, or even content Read More >

How to create a new forum in Drupal 7

One of the first tasks you may want to do after enabling the forum module and configuring its basic settings is add another forum. This is because the only forum you currently have is General Discussion. In the following Drupal 7 tutorial we’re going to show you how to add another forum called Food Discussion. Read More >

Changing your Drupal 7 frontpage

By default your Drupal 7 homepage will display your latest articles, which is referred to as a content feed. If you have a specific page you’d like to set as your frontpage, regardless of its content type (such as a basic page or article), you can do so in Drupal 7. How to set the Read More >

How to turn off commenting for specific articles in Drupal 7

In our last article we showed you how to turn off comments for a specific content type in Drupal 7. We will expand upon this further in this Drupal 7 tutorial by showing you how to disable comments for individual basic pages and articles. Please note:The steps below are very similar for most comment types. Read More >

An introduction to comments in Drupal 7

By default, comments are allowed in Drupal 7. Users must first be registered and logged in, however, before they can post comments.   How do users leave comments? Once a user is logged in, at the bottom of pages that allow comments will be a comment form. Users can type in a subject and comment, Read More >

Understanding SEF URLs in Drupal 7

Drupal 7 has a built in system to “clean” URLs so they are search engine friendly. In this tutorial, we’ll explain further what search engine friendly URLS are. With most websites on the Internet being dynamically generated, the URL usually contains information about the query being used to generate the page on the server. Some Read More >

How to create a new block in Drupal 7

Now that we know the idea behind blocks in Drupal 7, we can create a new block. In the following tutorial we’ll show you how to create a new block in Drupal 7. We’ll also review the various settings that each block can be configured with. To create a new block in Drupal 7: Log Read More >

Enabling your custom menu in Drupal 7

The menu structure has been created and you have created menu item links for navigation. Now it is time to set the menu up to display on the screen. As mentioned before, this is not an additional menu, but will replace either the main or secondary menu that is on the site. Enabling the custom Read More >

How to view block regions in Drupal 7

In our last article we explained the differences between regions and blocks in Drupal 7. You should now understand that regions define the structure and layout of a theme, and blocks are pieces of content that are assigned to show up in specific regions of a theme. When assigning a block to a region, you’ll Read More >

Understanding Nodes – Blocks – Regions in Drupal 7

As you begin to learn more about Drupal 7, several terms will begin to come into play, including entities, nodes, blocks, and regions. In this article we’ll give you an overview of what each of these terms are referring to.   Entities and Nodes – Content on your website Entities Just about everything in Drupal Read More >

Creating an Article in Drupal 7

In our last few articles we have been reviewing content types in Drupal 7. At this point you should know: How articles and basic pages are different in Drupal 7 How to write a basic page in Drupal 7 The next thing we need to do now is learn how to create an article in Read More >