modules

Next and Previous Links for Views Listing in Drupal

Question: 
How to implement Next and Previous Links for Views Listing

Custom Pagers Module

Custom Pagers module allows administrators to define context-sensitive previous/next pagers for any node type. The list of nodes to be cycled through is generated by a user-selectable view, and each pager can be displayed above or below the node body or in a sidebar block. This makes it possible to duplicate the paging functions of forum.module and book.module, as well as more complex stuff like comic strip navigation. Requires token.module and views.module.

http://drupal.org/project/custom_pagers

Automatically set parent menu item

Question: 
How to automatically set the parent menu item when creating new pages

When creating a menu page it can be very helpful to automatically set the parent item subject to the content type. For example, all new case studies should always reside under the parent menu item "Case Studies".

To achieve this use the Auto Menu module.

Once the module has been enabled it is configured under the "workflow" options that reside under each content type.

Restrict Parent Menu Options

Question: 
How to restrict parent menu options to relevant items when adding a new page

When a content author adds a node they are typically required to select a parent item.

However, the default display of parent menu options shows items that are irrelevant and confusing.

Therefore, it is more user friendly to show only the menu items of relevance. This can be achieved by only displaying a specific menu and its items through use of the module Menu Settings per Content Type.

Import Meta Tags into French Mirror Company Shop

Question: 
How to Import Meta Tags into French Mirror Company Shop

A custom module has been written to import meta tags after using the contributed Node Import module.

It is called "csv Meta Tags" and resides under modules/custom/csv_meta_tags.

As of 9th April 2010 it needs further work as still refers to Calendar but believe functionally the import is working.

Migrate webform data to another database

Question: 
How to migrate webform data

The webform module creates the following tables:

  • webform
  • webform_component
  • webform_roles
  • webform_submissions
  • webform_submitted_data

Therefore to migrate backup these tables and then import them into the other database using the backup and migrate module.

Note:

1. A new row is created within webform_submissions for each new submission. The field 'sid' is a unique field which is incremented for each new submission.

Make http:// goto http://www and get rid of trailing slashes

Question: 
How to make http:// goto http://www and get rid of trailing slashes

Update the .htaccess file as described below.

# To redirect all users to access the site WITH the 'www.' prefix,
# (http://example.com/... will be redirected to http://www.example.com/...)
# adapt and uncomment the following:
RewriteCond %{HTTP_HOST} ^villa-la-herradura\.com$ [NC]
RewriteRule ^(.*)$ http://www.villa-la-herradura.com/$1 [L,R=301]

#get rid of trailing slashes
RewriteCond %{HTTP_HOST} ^(www.)?villa-la-herradura\.com$ [NC]
RewriteRule ^(.+)/$ http://%{HTTP_HOST}/$1 [R=301,L]

XML Sitemap

Question: 
How to set-up an XML sitemap / site map

This module make the process nice and easy:

http://drupal.org/project/xmlsitemap

Key Drupal Modules

Question: 
What are the key drupal Modules

1. Menu Attributes

2. Menu Breadcrumb

3. CCK

4. Views

Update Drupal Modules

Question: 
How to update Drupal modules

This describes the process to update Drupal modules.

1. Goto the modules directory.

cd /var/www/html/drupal/shop/sites/all/modules/contrib

2. Download the required module.

wget http://ftp.drupal.org/files/projects/webform-6.x-2.9.tar.gz

3. Extract the tar file.

tar -xvf

This will overwrite the previous version.

4. Run Drupal Update.

http://beamish/drupal/shop/update.php

The update will report on success and any problems that may need attention.

Automatically create seo friendly URLs

Question: 
How to automatically create seo friendly URLs

The module pathauto allows the automatic creation of seo friendly URLs.