drupal Installation

Quelle holen

wget "http://drupal.org/files/projects/drupal-4.7.0-beta2.tar.gz"
tar xzf drupal-4*beta2.tar.gz
mv drupal*beta2 html
cd html
mkdir -p files
chmod 777 files
touch favicon.ico
touch robots.txt

Datenbank anlegen/anpassen

# mysql -u root -p
mysql> CREATE DATABASE drupal;
Query OK, 1 row affected (0.01 sec)
 
mysql> GRANT ALL PRIVILEGES ON drupal.* TO drupal@localhost identified BY 'password';
Query OK, 0 rows affected (0.02 sec)
 
mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.00 sec)
 
mysql> quit
mysql -u drupal -p drupal < database/database.mysql

sites/default/settings.php

$db_url  ="mysql://dbuser:dbpass@dbhost/database";
$base_url="http://cms.zyklopaedie.de/"

Start

Benutzerregistrierung

Der Benutzer mit der #1 hat Admin Rechte.

Lokalisierung

Die enthaltene .po - Datei ist zu extrahieren und unter administer->localization zu importieren.

URLs

Unter Einstellungen → General Settings kann man “Clean-URLs” einstellen, so dass ein Rewrite via .htaccess ermöglicht wird.

Module

archive

In der Datei ./modules/archive.module ist die Zeile 243 anzupassen, damit die Suche in den Archiven funktioniert. Ansonsten springt er nur zwischen 2000 und 2005.

$years = drupal_map_assoc(range(2004, 2007));

google Sitemap

wget "http://drupal.org/files/projects/gsitemap-4.7.0.tar.gz"

gsitemap.module nach ./modules extrahieren und anschließend unter Home → administer → settings folgende Einstellungen vornehmen:

Priority Settings

This number will be added to the priority of each node that is promoted to the front page.

This number will be multiplied with the ratio of the number of comments on the node over the number of comments on the node with the most comments, i.e., this number will be added to the priority of the node with the most comments.
You can enter -1 in any of the following fields to prevent nodes of that type from appearing in the sitemap.

This number will be added to the priority of nodes of type page.

This number will be added to the priority of nodes of type story.

Die Sitemap ist dann unter gsitemap abrufbar.

google adsense

This information is published here as a companion to Drupal’s contributed Adsense module. Please note that if you have not signed up for Google Adsense program, I can get a referral if you sign up via clicking the button below. This does not cost you anything, as it is Google that pays the referral fee.

<?php
if (module_exist("adsense"))
{
 print adsense_display("120x600", 2, 4);
}
?>

flexinode

Flexinode is a module that allows non-programmers to create new node types (flexible content types) in Drupal when their needs are modest. Users can define the fields in the node edit form for their content type, and can either view the nodes as presented by the module or modify the presentation in their theme.

Installation

cd modules
tar xzf flexinode-4.7.0.tar.gz
cd flexinode
mysql -u drupal -p drupal < flexinode.mysql

Anpassungen

Unter Home » administer » settings » flexinode kann man einstellen, wieviele Beiträge erlaubt sein sollen.

Unter Home » administer » content » content types kann man eigene Flexinodes konfigurieren.

add content type
Hier besteht u. a. die Möglichkeit für den neuen Inhaltstypen einen Namen und einen Beschreibungs- und Hilfetext zu vergeben. Nach dem Speichern der Eingabe findet man sich auf der content types Seite wieder und bekommt eine Übersicht aller verfügbaren Formularfelder, die dem vorher erstellten Inhaltstypen zugeordnet werden können.

Die aktuelle Flexinode-Version umfasst folgende Formularfelder.

  • e-mail address
  • MP3
  • URL
  • color picker
  • image gallery
  • table
  • file
  • text field
  • dropdown menu
  • date/time
  • image
  • text area
  • Checkbox

Um ein gewünschtes Feld dem vorher angelegten Inhaltstypen zuzuordnen, reicht ein Klick auf den Namen aus. Abhängig davon welches Formularfeld ausgesucht wurde, stehen verschiedene Option zur Konfiguration zur Verfügung. Bei einem normalen Textfeld (add text area) beispielsweise, kann ein Name (field label), ein Beschreibungstext und ein (Default) Wert / Text vergeben werden. Weiterhin kann die Größe des Feldes bestimmt und weitere Anzeigeoptionen verteilt werden.

Ist alles zur eigenen Zufriedenheit konfiguriert, findet sich unter Inhalt erzeugen » Name des angelegten Flexinodes ein neuer Node-Typ, der sofort eingesetzt werden kann.

amazontools

cd amazontools
mysql -u drupal -p drupal < amazon.sql
cp 

amazon_items

cp *class.inc ../../includes/
mysql -u drupal -p drupal < amazon_items.sql

4. Go to administer > modules and enable the amazon_items module 5. Go to administer > settings > amazon_items and fill in your affiliate ID

 and display preferences

6. Go to administer > content > configure > default workflow and put a check

 in the "amazon item" column for each node type that will accept Amazon
 products

7. Go to administer > users > configure > permissions and apply the “access

 amazon items" permission to at least one role

css

mysql -u drupal -p drupal < css.mysql

4-Activate css.module as usual (administer→modules) 5-Set access control to fit your needs (administer→access control)

weitere Module

wget "http://drupal.org/files/projects/adsense-4.6.0.tar.gz"
wget "http://drupal.org/files/projects/amazon_items-4.6.0.tar.gz"
wget "http://drupal.org/files/projects/amazontools-4.6.0.tar.gz"
wget "http://drupal.org/files/projects/banner-4.6.0.tar.gz"
wget "http://drupal.org/files/projects/codefilter-4.6.0.tar.gz"
wget "http://drupal.org/files/projects/comic-4.6.0.tar.gz"
wget "http://drupal.org/files/projects/css-4.6.0.tar.gz"
wget "http://drupal.org/files/projects/download_counter-4.6.0.tar.gz"
wget "http://drupal.org/files/projects/emailpage-4.6.0.tar.gz"
wget "http://drupal.org/files/projects/fckeditor-4.6.0.tar.gz"
wget "http://drupal.org/files/projects/flexinode-4.6.0.tar.gz"
wget "http://drupal.org/files/projects/gallery-4.6.0.tar.gz"
wget "http://drupal.org/files/projects/gmap-4.6.0.tar.gz"
wget "http://drupal.org/files/projects/gsitemap-4.6.0.tar.gz"
wget "http://drupal.org/files/projects/jobsearch-4.6.0.tar.gz"
wget "http://drupal.org/files/projects/keyword_links-4.6.0.tar.gz"
wget "http://drupal.org/files/projects/legal-4.6.0.tar.gz"
wget "http://drupal.org/files/projects/pathauto-4.6.0.tar.gz"
wget "http://drupal.org/files/projects/paypal_framework-4.6.0.tar.gz"
wget "http://drupal.org/files/projects/paypal_subscription-4.6.0.tar.gz"
wget "http://drupal.org/files/projects/pdfview-4.6.0.tar.gz"
wget "http://drupal.org/files/projects/print-4.6.0.tar.gz"
wget "http://www.kerneltrap.org/jeremy/drupal/spam/spam-2.0.12.tar.gz"
wget "http://drupal.org/files/projects/statistics_filter-4.6.0.tar.gz"
wget "http://drupal.org/files/projects/theme_editor-4.6.0.tar.gz"
 
wissen/gpl/drupal/installation.txt · Zuletzt geändert: 05.09.2010 20:31
 
Recent changes RSS feed Donate Valid XHTML 1.0 Valid CSS Recent cached RSS feed cacert-signed web site: inhalt.serviert.de