{"id":227,"date":"2011-08-09T19:47:58","date_gmt":"2011-08-09T19:47:58","guid":{"rendered":"http:\/\/www.lelieveld.info\/?p=227"},"modified":"2011-08-23T17:19:38","modified_gmt":"2011-08-23T17:19:38","slug":"setting-up-a-drupal-7-7-site","status":"publish","type":"post","link":"https:\/\/www.lelieveld.info\/?p=227","title":{"rendered":"Setting up a Drupal 7.7 site"},"content":{"rendered":"<p>First install <a title=\"Drupal\" href=\"http:\/\/drupal.org\/project\/drupal\">Drupal<\/a> 7.7 by downloading the necessary files, creating a database and uploading the files onto your server. Then when Drupal is setup, this is a way of configuring it to fit:<\/p>\n<ol>\n<li>enable clean-url&#8217;s<\/li>\n<li>extend the fields for users, such as Name, Last name, etc.<\/li>\n<li>list of users (for authenticated users only)<\/li>\n<li>custom footer message<\/li>\n<li>remove breadcrumb<\/li>\n<li>content access<\/li>\n<li>contact form<\/li>\n<li>calendar with coming events (for authenticated users only)<\/li>\n<li>publishing your calendar as iCal<\/li>\n<li>store &amp; share pictures (for authenticated users only)<\/li>\n<li>store &amp; share documents (for authenticated users only)<\/li>\n<\/ol>\n<p><img decoding=\"async\" title=\"More...\" src=\"https:\/\/www.lelieveld.info\/wp-includes\/js\/tinymce\/plugins\/wordpress\/img\/trans.gif\" alt=\"\" \/><!--more--><strong><\/strong><\/p>\n<p><strong>Ad 1 Enable clean-URL&#8217;s<br \/>\n<\/strong>Enable rewrite module by adding it to Apache, use <em>sudo a2enmod rewrite<\/em>, then edit the \/etc\/apache2\/sites-enabled\/000-default file, set AllowOverride All for \/var\/www and then restart Apache (<em>sudo \/etc\/init.d\/apache2 restart<\/em>).<strong><\/strong><\/p>\n<p>Then in the .htaccess add:<\/p>\n<ul>\n<li>php_value mbstring.encoding_translation Off<\/li>\n<li>php_value mbstring.http_input pass<\/li>\n<li>php_value mbstring.http_output pass<\/li>\n<li>php_value mbstring.encoding_translation Off<\/li>\n<li>RewriteEngine on<\/li>\n<li>RewriteBase \/<\/li>\n<li>RewriteCond %{REQUEST_FILENAME} !-f<\/li>\n<li>RewriteCond %{REQUEST_FILENAME} !-d<\/li>\n<li>RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]<\/li>\n<\/ul>\n<p><strong>Ad 2 Extend user fields<\/strong><br \/>\nVia <em>Configuration &#8211;&gt; People &#8211;&gt; Account settings<\/em> go to <em>Manage fields<\/em> and add all fields you want to have for your users.<\/p>\n<p><strong>Ad 3 List of users<\/strong><br \/>\nInstall <a title=\"CTools\" href=\"http:\/\/drupal.org\/project\/ctools\">Ctools<\/a> (http:\/\/ftp.drupal.org\/files\/projects\/ctools-7.x-1.0-rc1.tar.gz). Then install <a title=\"Views\" href=\"http:\/\/drupal.org\/project\/views\">Views<\/a> (http:\/\/ftp.drupal.org\/files\/projects\/views-7.x-3.0-rc1.tar.gz). Enable <em>Chaos tools<\/em> in the Modules page, then enable <em>Views<\/em> and at last enable <em>Views UI<\/em>.<\/p>\n<p>For more extended help on<em> Views<\/em>, install <a title=\"Advanced Help\" href=\"http:\/\/drupal.org\/project\/advanced_help\"><em>Advanced help<\/em><\/a> (http:\/\/ftp.drupal.org\/files\/projects\/advanced_help-7.x-1.0-beta1.tar.gz) and enable it.<\/p>\n<p>Create a new view based on users, add the fields created in step 1 that you want to appear, set the output to e.g. table and you&#8217;re set.<\/p>\n<p>Enable the View user profiles for Authenticated users to have your users give access to other users&#8217; profiles.<\/p>\n<p><strong>Ad 4 Custom footer message<\/strong><br \/>\nAdd a custom footer message by installing the <a title=\"Footer Message\" href=\"http:\/\/drupal.org\/project\/footer_message\">footer message<\/a> module (http:\/\/ftp.drupal.org\/files\/projects\/footer_message-7.x-1.1.tar.gz).<\/p>\n<p><strong>Ad 5 Remove breadcrumb<\/strong><br \/>\nEdit <em>themes\/bartik\/templates\/page.tpl.php<\/em>, find the lines that print the breadcrumb and comment the lines.<\/p>\n<p><strong>Ad 6 Content access<\/strong><br \/>\nTo enable access rules to content types, install the <a title=\"content access\" href=\"http:\/\/drupal.org\/project\/content_access\">content access<\/a> module (http:\/\/ftp.drupal.org\/files\/projects\/content_access-7.x-1.2-beta1.tar.gz).<\/p>\n<p><strong>Ad 7 Contact form<\/strong><br \/>\nEnable the contact form to enable people to contact you. Activate the contact form module which comes standard with Drupal. Enable the role Anonymous user to actually have it enabled and also enable a link in one of the link menus.<\/p>\n<p><strong>Ad 8 Calendar<\/strong><br \/>\nSetup dates in the system using the<em> <a title=\"Date\" href=\"http:\/\/drupal.org\/project\/date\">Date<\/a><\/em> module (http:\/\/ftp.drupal.org\/files\/projects\/date-7.x-2.x-dev.tar.gz). Then use the <a title=\"Calendar\" href=\"http:\/\/drupal.org\/project\/calendar\"><em>Calendar<\/em><\/a> module (http:\/\/ftp.drupal.org\/files\/projects\/calendar-7.x-3.x-dev.tar.gz) for creating a Google alike calendar view.<\/p>\n<p>After installing the modules, enable the <em>Date API<\/em>, then <em>Date<\/em>, then <em>Date Views <\/em>and finally the <em>Calendar<\/em> module. Create a new content type, call it e.g. <em>Event<\/em>. Add a field called e.g. Event date of type Date to the new content type.<\/p>\n<p><strong>Ad 9 Publish iCal<br \/>\n<\/strong>Enable the Calendar iCal module that came with the installation of the Calendar. In the view for the calendar, add a new one based on feed. Note that when event content is made private, the feed will only contain events when first logged in. I.e. linking the URL to Google calendar won&#8217;t work (empty).<\/p>\n<p><strong>Ad 10 Store &amp; share pictures<\/strong><br \/>\nA solution for sharing documents is the <a title=\"Media\" href=\"http:\/\/drupal.org\/project\/media\">Media<\/a> module (http:\/\/ftp.drupal.org\/files\/projects\/media-7.x-1.0-beta5.tar.gz) which requires the <a title=\"Styles\" href=\"http:\/\/drupal.org\/project\/styles\">Styles<\/a> module (http:\/\/ftp.drupal.org\/files\/projects\/styles-7.x-2.0-alpha8.tar.gz). Extra UI functionality can be added by using the <a title=\"Media browser plus\" href=\"http:\/\/drupal.org\/project\/media_browser_plus\">Media browser plus<\/a> module (http:\/\/ftp.drupal.org\/files\/projects\/media_browser_plus-7.x-1.0-beta3.tar.gz).<\/p>\n<p>For easy editing of text and inserting media, use the <a title=\"Wysiwyg\" href=\"http:\/\/drupal.org\/project\/wysiwyg\">Wysiwyg<\/a> module (http:\/\/ftp.drupal.org\/files\/projects\/wysiwyg-7.x-2.1.tar.gz). Enable it and install e.g. the <a href=\"http:\/\/ckeditor.com\/download\">CKEditor<\/a> (3.6.1).<\/p>\n<p>A nice gallery can be created using the <a title=\"Media Gallery\" href=\"http:\/\/drupal.org\/project\/media_gallery\">Media Gallery<\/a> module (http:\/\/ftp.drupal.org\/files\/projects\/media_gallery-7.x-1.0-beta6.tar.gz). The gallery requires the <a title=\"Multiform\" href=\"http:\/\/drupal.org\/project\/multiform\">Multiform<\/a> module (http:\/\/ftp.drupal.org\/files\/projects\/multiform-7.x-1.0-beta2.tar.gz). Uploading multiple files can be done using the <a title=\"Plupload\" href=\"ttp:\/\/drupal.org\/project\/plupload\">Plupload<\/a> module (http:\/\/ftp.drupal.org\/files\/projects\/plupload-7.x-1.0-beta3.tar.gz). Install the <a title=\"plupload script\" href=\"http:\/\/www.plupload.com\">plupload<\/a> script (1.4.3.2).<\/p>\n<p><strong>Ad 11 Store documents<\/strong><br \/>\nA nice solution for storing documents is the <a title=\"IMCE\" href=\"http:\/\/drupal.org\/project\/imce\">IMCE<\/a> module (http:\/\/ftp.drupal.org\/files\/projects\/imce-7.x-1.4.tar.gz) which also integrates nicely with CKEditor used above. To be able to use the integration install the API bridge: the <a title=\"imce_wysiwyg\" href=\"http:\/\/drupal.org\/project\/imce_wysiwyg\">imce_wysiwyg<\/a> module (http:\/\/ftp.drupal.org\/files\/projects\/imce_wysiwyg-7.x-1.x-dev.tar.gz).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>First install Drupal 7.7 by downloading the necessary files, creating a database and uploading the files onto your server. Then when Drupal is setup, this is a way of configuring it to fit: enable clean-url&#8217;s extend the fields for users, such as Name, Last name, etc. list of users (for authenticated users only) custom footer &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"https:\/\/www.lelieveld.info\/?p=227\">Continue reading<\/a><\/p>\n","protected":false},"author":2,"featured_media":214,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[36],"tags":[38,5],"class_list":["post-227","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-website","tag-drupal","tag-learning","item-wrap"],"_links":{"self":[{"href":"https:\/\/www.lelieveld.info\/index.php?rest_route=\/wp\/v2\/posts\/227","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lelieveld.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lelieveld.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lelieveld.info\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lelieveld.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=227"}],"version-history":[{"count":23,"href":"https:\/\/www.lelieveld.info\/index.php?rest_route=\/wp\/v2\/posts\/227\/revisions"}],"predecessor-version":[{"id":230,"href":"https:\/\/www.lelieveld.info\/index.php?rest_route=\/wp\/v2\/posts\/227\/revisions\/230"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.lelieveld.info\/index.php?rest_route=\/wp\/v2\/media\/214"}],"wp:attachment":[{"href":"https:\/\/www.lelieveld.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=227"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lelieveld.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=227"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lelieveld.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=227"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}