{"id":171,"date":"2011-06-05T21:58:08","date_gmt":"2011-06-05T21:58:08","guid":{"rendered":"http:\/\/www.lelieveld.info\/?p=171"},"modified":"2011-06-18T19:34:13","modified_gmt":"2011-06-18T19:34:13","slug":"some-more-drupal-7-2-testing","status":"publish","type":"post","link":"https:\/\/www.lelieveld.info\/?p=171","title":{"rendered":"Some more Drupal 7.2 testing&#8230;"},"content":{"rendered":"<p>Now Drupal 7.2 is setup, I&#8217;m looking into how to configure it to fit:<\/p>\n<ol>\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>calendar with coming events (for authenticated users only)<\/li>\n<li>share and store documents (for authenticated users only)<\/li>\n<li>share and store pictures (for authenticated users only)<\/li>\n<li>remove breadcrumb (maybe&#8230;)<\/li>\n<\/ol>\n<p><!--more--><strong>Ad 1 Extend user fields<\/strong><\/p>\n<p>Via <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 2 List of users<\/strong><\/p>\n<p>Install Ctools (http:\/\/ftp.drupal.org\/files\/projects\/ctools-7.x-1.x-dev.tar.gz). Then install Views (http:\/\/ftp.drupal.org\/files\/projects\/views-7.x-3.x-dev.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 <em>Advanced help<\/em> (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><strong>Ad 3 Calendar<\/strong><\/p>\n<p><strong>Via Google<\/strong><\/p>\n<p>The easy easy way is to just create a page, make it only visible for authenticated users and add a link in the page pointing to e.g. a Google calendar. In this case, just maintain the calendar via Google.<\/p>\n<p>Setting access to pages for authenticated users requires the <em>Content Access<\/em> module (http:\/\/ftp.drupal.org\/files\/projects\/content_access-6.x-1.2.tar.gz). When installed and enabled, make sure to enable access control per content node.<\/p>\n<p><strong>Via Drupal<\/strong><\/p>\n<p>Setup dates in the system using the<em> Date<\/em> module (\ufeffhttp:\/\/ftp.drupal.org\/files\/projects\/date-7.x-2.0-alpha3.tar.gz). Then use the <em>Calendar<\/em> module (http:\/\/ftp.drupal.org\/files\/projects\/calendar-7.x-2.0-alpha1.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. Date of type Date to the new content type.<\/p>\n<p>Note: somehow a View is not able to link to the new date field. In a previous version it worked, either use an older version of the modules or wait for it to be fixed.<\/p>\n<p><strong>Ad 4 Share and store documents<\/strong><\/p>\n<p><strong>Ad 5 Share and store pictures<\/strong><\/p>\n<p>4 and 5 seem to be related. A solution for both is the Media module (http:\/\/ftp.drupal.org\/files\/projects\/media-7.x-1.0-beta4.tar.gz) which requires the <em>Styles<\/em> module (http:\/\/ftp.drupal.org\/files\/projects\/styles-7.x-2.0-alpha8.tar.gz\ufeff).<\/p>\n<p>For<em> Styles<\/em> enable <em>Styles<\/em>, <em>File Styles<\/em> and <em>Styles UI<\/em>.<\/p>\n<p><strong>Ad 6 Remove breadcrumb<\/strong><\/p>\n<p>Edit <em>themes\/bartik\/templates\/page.tpl.php<\/em>, find the lines that print the breadcrumb and comment the lines.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Todo<\/strong><\/p>\n<p>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>).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Now Drupal 7.2 is setup, I&#8217;m looking into how to configure it to fit: extend the fields for users, such as Name, Last name, etc. list of users (for authenticated users only) calendar with coming events (for authenticated users only) share and store documents (for authenticated users only) share and store pictures (for authenticated users &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"https:\/\/www.lelieveld.info\/?p=171\">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-171","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\/171","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=171"}],"version-history":[{"count":29,"href":"https:\/\/www.lelieveld.info\/index.php?rest_route=\/wp\/v2\/posts\/171\/revisions"}],"predecessor-version":[{"id":177,"href":"https:\/\/www.lelieveld.info\/index.php?rest_route=\/wp\/v2\/posts\/171\/revisions\/177"}],"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=171"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lelieveld.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=171"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lelieveld.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=171"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}