|
|
Want to know more about Packt's Article Network? Interested in contributing your article ideas? Please visit our FAQ for more information. See More BROWSE
All Titles WordPress Web Services SOA BPEL Web Graphics & Video Web Development RAW Portugues, Espanol, Italiano, French PHP/MySQL Oracle Open Source Networking & Telephony Moodle Microsoft & .NET Linux Servers jQuery Joomla! JBoss Java e-Learning e-Commerce Dynamics Drupal CRM Cookbook Content Management Beginner Guides Architecture and Analysis AJAX Future Titles Recently Published Titles Drupal provides an environment where a single person can do the job of creating, editing, approving, and publishing. This works well with a small site and a low volume of content. However, where large sites and larger quantities of content prevail, there is often a team involved. In this article, we will learn about some of the terminologies that Drupal provides for supporting team work, such as:
See More |
Making Content Findable in Drupal 6
What you will learnIn this article, you will learn about:
What you will doIn this article, you will:
Understanding TaxonomyOne way to find content on a site is by using a search function, but this can be considered as a hit-or-miss approach. Searching for an article on 'canines' won't return an article about dogs, unless it contains the word 'canines'. Certainly, navigation provides a way to navigate the site, but unless your site has only a small amount of content, the navigation can only be general in nature. Too much navigation is annoying. There are far too many sites with two or three sets of top navigation, plus left and bottom navigation. It's just too much to take in and still feel relaxed. Site maps offer additional navigation assistance, but they're usually not fun to read, and are more like a Table of Contents, where you have to know what you're looking for. So, what's the answer?—Tags! A Tag is simply a word or a phrase that is used as a descriptive link to content. In Drupal, a collective set of terms, from which terms or tags are associated with content, is called a Vocabulary. One or more Vocabularies comprise a Taxonomy. This a good place to begin, so let's create a Vocabulary. Activity 1: Creating a Taxonomy VocabularyIn this activity, we will be adding two terms to our Vocabulary. We shall also learn how to assign a Taxonomy to Node Content that has been created.
Taxonomy isn't listed in my admin menu If a new Node Content type is created that will use tags, then edit the vocabulary and select the checkbox.
AJAX (Asynchronous JavaScript + XML) is a method of using existing technologies to retrieve data in the background. What it means to a web site visitor is that data can be retrieved and presented on the page being viewed, without having to reload the page.
Drupal 6 Content Administration
Tag CloudsIn computer terminology, a Cloud is a gathering of loosely-related items with something in common. An example of such a phenomenon is a playground at a fast-food restaurant where several highways intersect. The kids aren't necessarily tied by ethnicity, nationality, age, sex, citizenship, home town, destination, nor 'herd'. The two commonalities are that they're all kids and all Homo Sapiens (although, they might seem like they are from Alpha Centauri). A Tag Cloud is a grouping of terms that don't necessarily have any relationship to each other with regards to their meaning or context. The only factor that typically links the terms is that they are all related to the content on the same web site. Tag Clouds are normally represented as a rectangular region in which the terms appear as different typefaces and font-sizes, so that each term stands out from its neighbor. We're going to use two types of Drupal Tag Clouds, which means that two different modules will be used in order to show us different examples. The first one is called Tagadelic, and the other, Cumulus. The only difference between the two is that Cumulus presents the tags as a flash movie. Putting one's mouse over the cloud causes the tags to start moving within the cloud as if it were in 3D and they were hailstones. The words actually appear to move away (get smaller) and cycle around as they draw closer again. The Cumulus module depends on the presence of the Tagadelic module, both are add-on modules. Even though both are present, the Tagadelic module's output doesn't need to be enabled on the page, unless you want it to be shown. We're going to use one of each Cloud type. Each Tag Cloud module creates a Block for its Tag Cloud. For now, both modules have been configured and assigned to the right-hand column. These modules, as well as the tags, can be seen in the following screenshot.
We named the Tagadelic tag cloud, Index, and the Cumulus tag cloud as Cumulus Tag Cloud. Both of them present the tags as links. We'll click on the link for meditation, and the result is shown in the following screenshot.
My Tags Don't Show Up The whole idea of the Tag Clouds is that a site visitor, without knowing much, or knowing little-to-nothing about your site's content, can scan the tags for a subject that they are interested in, and click on it. Path AliasesEvery web page that you visit has an address, or URL, that is listed in the address bar of your web browser. If you've paid attention to the URLs in your web browser, then you've probably seen quite a few that look as though they span a paragraph in length. This doesn't affect the visitor's ability to get to the page. After all, clicking on a link is clicking a link, regardless of its size. However, if the person tries to remember the link, or needs to write it down, then it gets ugly. Beyond that, it's nice to have URLs that are actually meaningful for the search engine 'spiders' that crawl the Web and index everything. This begs the question, "where do the URLs come from?" The answer, with regards to Drupal, is that they are created by the software, and they're not pretty. Here is the URL for the Soul Reading page that we just looked at. http://mydomain.com/node/15 Not very helpful at all, is it? Fortunately, we can make this link much nicer to look at, and much more meaningful. Drupal comes with a Path module. The term 'path' refers to the portion of the URL that follows the domain name: node/15 in the example above. The Path module allows us to create an alias path. The original path will still exist and be usable (Drupal will continue to use it internally), but the path that is presented to the site visitor (and the search engines) will be the alias. Let's create an alias for one of our articles. Activity 2: Creating a Path AliasWe'll edit Music for Your Spleen. Beneath the Comment settings link is a link to the URL path settings option. If it's not present, then the Path module needs to be installed and/or enabled. Click on the link to open the dialog.
In the text box provided, we'll simply enter spleen, and then Save the Story. Now, the URL for the page is as seen in the address bar of the browser in the following screenshot.
SearchingAside from the navigational aids, one of the landmarks that site visitors always expect to see is the search box. It's very frustrating when a site's navigation doesn't offer a path to where you want to go, and there's no search box to be found. Activity 3: Enabling the Search functionalityThe Search module is included with Drupal. All that we need to do is to turn it on, and tell Drupal where we want it to appear.
Searching and advanced searching are actions that are controlled by permissions, so the search box and/or the advanced search link may not be visible to every user role.
My searches yield no results SummaryIn this article we learned about:
These topics have been learnt with the help of activities in which we:
Drupal 6 Content Administration
About the AuthorJ. Ayen Green J. Ayen Green is a software and web site developer, writer, and poet. He and his wife, Sofía-Aileen, make their home in New York City. Books from Packt |
|
| ||||||||