{"id":630,"date":"2013-06-18T14:25:10","date_gmt":"2013-06-18T21:25:10","guid":{"rendered":"http:\/\/pln.lanecc.net\/webteam\/?p=630"},"modified":"2014-09-26T20:54:51","modified_gmt":"2014-09-26T20:54:51","slug":"changes-in-drupal-land","status":"publish","type":"post","link":"https:\/\/blogs.lanecc.edu\/webteam\/2013\/06\/18\/changes-in-drupal-land\/","title":{"rendered":"Changes in Drupal Land"},"content":{"rendered":"<p>There&#8217;s a couple changes happening in Drupal that you might want to be aware of:<\/p>\n<h2>Google Analytics Modifications<\/h2>\n<p>Currently, we&#8217;re using the old style Google Analytics embed code, and adding it directly via our template in html.tpl.php. This works, but it isn&#8217;t optimal. For a long time we&#8217;ve known that there&#8217;s a couple users that use the website in a way that doesn&#8217;t reflect real visitors: the Lane Web Team.<\/p>\n<p>To take me as an example, yesterday I looked for old links to www2 urls, and found them on sixty different pages. I directly navigated to each of those pages, stayed on them for about fifteen seconds, loaded the edit window, made a change, saved the page, and left, directly navigating to another page. The statistics for that day are now ever so slightly skewed toward a person that appears to change pages at random, staying on them for almost no time at all, and who appears to come from nowhere. I&#8217;m making it harder to understand what people do on our website, and how we can serve their needs. And it isn&#8217;t just me &#8211; the whole webteam could tell a similar story.<\/p>\n<p>So, this weekend 9\/20\/14, we&#8217;ll be installing the <a href=\"https:\/\/drupal.org\/project\/Google_Analytics\">Google Analytics module<\/a>. With it, the tracking code will automatically be disabled for our administrative roles, who together represent a disproportionate number of visits. How does this impact you? Soon it will look like our traffic numbers went down &#8211; probably about 2% &#8211; just because we&#8217;re not tracking those three roles. So, if you get an analytics report mailed to you, don&#8217;t be too alarmed if the numbers go down, just adapt to the new baseline. And remember, you can always <a href=\"mailto:webmaster@lanecc.edu\">contact us<\/a> if you&#8217;d like help thinking through your analytics numbers.<\/p>\n<h2>Friendlier URLs<\/h2>\n<p>By default, Drupal uses ugly URLs. The contact page is technically something like lanecc.edu\/index.php?q=node\/106. We&#8217;re using a couple of modules (Path Alias, part Drupal Core, and <a href=\"https:\/\/drupal.org\/project\/pathologic\">Pathologic<\/a>) to make those urls look friendlier, like lanecc.edu\/contact. But, ever notice what happens when you try to edit a page? You get another ugly url, like lanecc.edu\/node\/106\/edit. This weekend, we&#8217;re also going to try to fix those, using the <a href=\"https:\/\/drupal.org\/project\/path_alias_xt\">Extended Path Alias module<\/a>. All of those pages that previously had a node number in them will now have a nice, aliased URL, like lanecc.edu\/contact\/edit.<\/p>\n<p>I&#8217;m sure that doesn&#8217;t seem\u00a0very exciting. But it is, because when someone submits a webform, they were previously taken to a confirmation page with an alias like lanecc.edu\/node\/86\/submission\/75309. Because that url starts with \/node, Drupal isn&#8217;t able to figure out which menus to include, meaning the person that just submitted your webform is effectively no longer on your part of the website.<\/p>\n<p>Of course, by replacing all those technical looking URLs with friendly ones, that makes it harder for you to tell us the node number, or to paste a node number into the link dialog when editing a page. So we&#8217;re also going to make it easier to find those node numbers &#8211; starting next week, just look to the right side of your screen while logged in and you&#8217;ll find a little black tab with the node number written on it.<\/p>\n<p><strong>EDIT (7\/9)<\/strong> &#8211; Unfortunately, we had to roll this one back. With this enabled, \/it\/somepage.html would actually go to \/it\/, meaning no 404 was served. We&#8217;re still looking for a solution at this time.<\/p>\n<h2>Print Styles<\/h2>\n<p>This one is actually live right now! We&#8217;ve added a print style sheet to the pages, which attempts to make webpages more useful when printed out on paper. It&#8217;ll probably work best in Firefox or Chrome, but when you print:<\/p>\n<ul>\n<li>The left menu will be hidden<\/li>\n<li>The header of the page will be hidden, except for the department title (if present)<\/li>\n<li>The megamenu will be hidden<\/li>\n<li>The footer will be hidden, except on the landing pages<\/li>\n<li>Links will have their urls added to them, so that if you stumble across a link in a printed page that you&#8217;re interested in, you can at least type that link into a browser manually.<\/li>\n<\/ul>\n<p>If you notice any bugs (There&#8217;s a LOT of printers on this campus, and its impossible for me to test all of them), please <a href=\"mailto:webmaster@lanecc.edu\">let me know<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There&#8217;s a couple changes happening in Drupal that you might want to be aware of: Google Analytics Modifications Currently, we&#8217;re using the old style Google Analytics embed code, and adding it directly via our template in html.tpl.php. This works, but it isn&#8217;t optimal. For a long time we&#8217;ve known that there&#8217;s a couple users that &hellip; <a href=\"https:\/\/blogs.lanecc.edu\/webteam\/2013\/06\/18\/changes-in-drupal-land\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Changes in Drupal Land&#8221;<\/span><\/a><\/p>\n","protected":false},"author":43,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":"","_wpscppro_dont_share_socialmedia":false,"_wpscppro_custom_social_share_image":0,"_facebook_share_type":"","_twitter_share_type":"","_linkedin_share_type":"","_pinterest_share_type":"","_linkedin_share_type_page":"","_instagram_share_type":"","_medium_share_type":"","_threads_share_type":"","_google_business_share_type":"","_selected_social_profile":[],"_wpsp_enable_custom_social_template":false,"_wpsp_social_scheduling":{"enabled":false,"datetime":null,"platforms":[],"status":"template_only","dateOption":"today","timeOption":"now","customDays":"","customHours":"","customDate":"","customTime":"","schedulingType":"absolute"},"_wpsp_active_default_template":true},"categories":[3],"tags":[25,17],"class_list":["post-630","post","type-post","status-publish","format-standard","hentry","category-drupal","tag-drupal","tag-stats"],"_links":{"self":[{"href":"https:\/\/blogs.lanecc.edu\/webteam\/wp-json\/wp\/v2\/posts\/630","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.lanecc.edu\/webteam\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.lanecc.edu\/webteam\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.lanecc.edu\/webteam\/wp-json\/wp\/v2\/users\/43"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.lanecc.edu\/webteam\/wp-json\/wp\/v2\/comments?post=630"}],"version-history":[{"count":2,"href":"https:\/\/blogs.lanecc.edu\/webteam\/wp-json\/wp\/v2\/posts\/630\/revisions"}],"predecessor-version":[{"id":783,"href":"https:\/\/blogs.lanecc.edu\/webteam\/wp-json\/wp\/v2\/posts\/630\/revisions\/783"}],"wp:attachment":[{"href":"https:\/\/blogs.lanecc.edu\/webteam\/wp-json\/wp\/v2\/media?parent=630"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.lanecc.edu\/webteam\/wp-json\/wp\/v2\/categories?post=630"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.lanecc.edu\/webteam\/wp-json\/wp\/v2\/tags?post=630"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}