Drupal Planet

Syndicate content
Drupal.org - aggregated feeds in category Planet Drupal
Updated: 3 hours 36 min ago

Microserve: Omega 4.x: setup and comparison

9 hours 37 sec ago
div class=field field-name-field-image field-type-image field-label-hiddendiv class=field-itemsdiv class=field-item even rel=og:image rdfs:seeAlso resource=http://www.microserveltd.co.uk/sites/default/files/styles/large/public/field/image/logo_76_0.png?itok=0OZ8E9_5img typeof=foaf:Image src=http://www.microserveltd.co.uk/sites/default/files/styles/large/public/field/image/logo_76_0.png?itok=0OZ8E9_5 width=420 height=240 alt=Omega //div/div/divdiv class=field field-name-body field-type-text-with-summary field-label-hiddendiv class=field-itemsdiv class=field-item even property=content:encoded pAbout a year ago I wrotea href=http://herbal-jazz.net/2013/07/drupal-theming-zen-vs-omega/ a post on my personal blog about theming with Zen versus theming with Omega/a, and someone pointed out that there was a new release of Omega. However, until now, I've not been able to look and see how it differs. Armed with a free week to do some personal learning and keen to finally try installing and playing with Sass for the first time, Omega 4 became my guinea pig./p pThis post serves two purposes: it's partly a comparison between Omega 3 and Omega 4, but it also documents how to create an Omega 4 subtheme and set up Sass for the first time./p h2Before we begin/h2 h3About Omega 4.x/h3 pOmega is one of the best-known themes for Drupal, with over 80,000 installations at time of writing. Version 4.x takes a huge step away from 3.x. It's not just different: it feels like a whole new piece of software. Thea href=http://drupal.org/project/omega project page/a says:/p p style=margin-left: 40px;Omega 4.x is a base theme framework aimed at themers who want to gain full control over the theme through code, rather than a user interface. If you depend on the user interface you can continue using Omega 3.x./p pNearly everything has been rewritten - the CSS has been optimized and cleaned up, partly to conform to new Drupal 8 standards, making it more future-proof; there are premade layouts available; and some functionality has been split out into extensions, while other bits have been combined into the main theme./p pThere are also some new features, including a browser width indicator (useful if you're doing responsive development in the browser). My favourite thing is the Drush integration: for 3.x you had to installa href=https://www.drupal.org/project/omega_tools Omega Tools/a to get Drush commands, but it's now all built in./p h3Differences/h3 pWhile I didn’t like the UI for rearranging components, that's probably one of the features I miss the most. In fact, there are a lot of differences in the theme settings: namely, in Omega 3, you could overlay the grid columns, but all you get in Omega 4 is a region demonstration. Everything else is now handled in code./p p align=centerimg alt=I can get this sort of thing from the block page... why do I need it permanently? height=431px; src=https://lh4.googleusercontent.com/yqVCSYbaD02w_JnKLyJIOjB7ed2Zyb-W_2rIvyVM1lGEd2LDIN7cVuvzSUIEGzqdWUYD3A5qx3OFjgJAsXiT-C6YHtuI4sgVDNg3ZYAg2H0ZopZRGDanTsYoyuppdssNGg width=624px; //p p align=centeremI can get this sort of thing from the block page... why do I need it permanently?/em/p pThat does (in theory) make it easier to create new layouts. One of my biggest criticisms of Omega 3 was that it was so difficult to change the grid, but now you cana href=https://www.drupal.org/node/1936958 create multiple layouts/a . I can see that being useful for a multi-site installation, and, if you pair it with a href=https://www.drupal.org/project/context Context/a , it could be useful for page-by-page layouts. You can also use the ones provided with Omega or its default subtheme Ohm - I've become quite a fan of Hero (above)./p pThere's no more configuration througha href=https://www.drupal.org/project/delta Delta/a (although I'm assured that's still possible, despite the project page explicitly stating that Omega 4.x should NOT be used with Omega Tools and Delta), but pleasingly, there's no more enormous and unwieldy .info file with two dozen files attached. Everything has been shifted into the backend, and the CSS is all compiled with Sass/Compass now./p pIt is worth pointing out that the huge, unwieldy .info file will return if you choose to stop serving the theme settings from a variable. This will export the settings and put them into the .info file, improving the performance./p pFor those who have delved into Sass before, you should find it easy enough to start using Omega 4 straight away. I’ve never used Sass before, so this will be a learning curve for me./p pIf you're looking for a starting point, you can try looking at the officiala href=https://www.drupal.org/node/819164 Omega theme documentation/a, but I warn you that it's not the best place to go for information about installing Ruby and other component features./p h2Installation/h2 pBefore I begin I just want to link toa href=https://www.digitalocean.com/community/tutorials/how-to-create-an-omega-4-drupal-subtheme-on-an-ubuntu-vps this awesome tutorial on creating new Omega subthemes/a by Daniel Sipos, which cleared up lots of things for me. Without that I'd probably still be trying to install Sass several days later./p pSo if you're looking for a real tutorial, go there. I'll just skim through basics. I'm not going to hold hands, but I will provide links where possible./p h3Omega itself/h3 pFirst and foremost, you'll need to download and install Omega. Whether you do it through a href=http://drush.ws/ Drush/a or by visiting the project page and downloading a zip file is up to you./p pMake sure you use thea href=https://www.drupal.org/node/1736938 latest development version/a (20th August) rather than the stable release: ita href=https://www.drupal.org/node/2232431 fixes a bug/a that meant the right extensions weren’t being found./p pWhy are we installing Omega first? Easy: when you make your subtheme in Drush, it'll tell you what version of Ruby you need to install for Sass to work./p h3Ruby/h3 pIn order to usea href=http://sass-lang.com/ Sass/a , make sure you havea href=https://www.ruby-lang.org/en/ Ruby/a installed. If you're on a Mac, it should already be there, although you might want toa href=http://rvm.io/rvm/install try installing RVM (Ruby Version Manager)/a ./p pIt's worth pointing out that if you're on a production server it'sa href=https://www.drupal.org/node/1663122 best practice not to install Sass/a unless you absolutely have to. Use Sass in your dev environment, fine, but only upload your compiled CSS files to your server./p pAlternatively, if you don't want to use Sass at all, don't bother installing Ruby and ignore the contents of the Sass directories./p h3Omega subtheme/h3 pOnce RVM is set up, create a subtheme. If you're feeling brave you cana href=http://drupal.stackexchange.com/questions/76611/omega-4-manually-installing-a-subtheme do it manually/a , but if you've got Drush installed it's so much easier just to run through the wizard with this command:/p div class=geshifilter pre class=php geshifilter-php style=font-family:monospace;$ drush omegaspan style=color: #339933;-/spanwizard/pre/div pRun that inside the site directory, follow the instructions, and enable it if you want. See? Much easier than copying and renaming files. And all on a new Drupal installation, too: I really appreciated that I didn't have to install anything to create a subtheme./p h3Gems and finishing/h3 pFinally, navigate (in your command line) to the base folder for your theme. You should get a notice:/p div class=geshifilter pre class=php geshifilter-php style=font-family:monospace;rubyspan style=color: #339933;-/span1span style=color: #339933;./span9span style=color: #339933;./span3span style=color: #339933;-/spanp547 is not installedspan style=color: #339933;./span To install span style=color: #b1b100;do/spanspan style=color: #339933;:/span span style=color: #339933;amp;/spanspan style=color: #666666; font-style: italic;#39;rvm install ruby-1.9.3-p547amp;#39;/span/pre/div pIf you do, then go ahead and install it. The Ruby version is related to the exact version of Omega you've installed, so pay close attention to the version number and run the command as it’s written./p pIn the base directory for the theme, you'll see there's a file called Gemfile. This dictates which gems should be installed for the theme to work. Just run this command:/p div class=geshifilter pre class=php geshifilter-php style=font-family:monospace;$ bundle install/pre/div pThat should fetch and download everything you need, and that's pretty much it!/p pThea href=https://www.digitalocean.com/community/tutorials/how-to-create-an-omega-4-drupal-subtheme-on-an-ubuntu-vps blog post I mentioned/a has more information about installation and some troubleshooting, so refer to that if you're stuck./p pNow you can start editing the files in the themename/sass folder. Run this in your command line:/p div class=geshifilter pre class=php geshifilter-php style=font-family:monospace;$ compass watch/pre/div pfor live updates (it will watch the SCSS files and automatically compile them when you save a change)./p h2Creating layouts/h2 pCreating a new subtheme is much easier in Omega 4 than in 3 (or even Zen), with a caveat of if you have Ruby and Sass already installed. If you've got to here and are thinking yikes, that's a whole lot of work or that's too much command line work, you might think about tryinga href=https://www.drupal.org/project/zen Zen/a ora href=https://www.drupal.org/project/sasson Sasson/a instead./p pBut if you've got this far, chances are you want to create a layout that's not a 1-2-1 grid layout. There are a couple of ways to go: you can copy one supplied by Omega/Ohm (such as Hero) and modify it, or you can create your own./p p align=centerimg alt=Layout options for Omega 4 - default plus quot;Heroquot; from Ohm height=347px; src=https://lh6.googleusercontent.com/jHVoDn_nlyG91Vd2hN0yJm71a-JD2I4SWPF1dPQ6TshALqH5y8eMmTRgycVrEiEQpSMMunBQaD3NmfsEMWVJ-aZwOEbH2QNluF-VTcvm3TsRe2AzOB2U5CHS1diBfOXHkg style=border: none; transform: rotate(0.00rad); -webkit-transform: rotate(0.00rad); width=400px; //p p align=centeremLayout options for Omega 4 - default plus Hero from Ohm/em/p pI quite like Hero, so I stuck to using that. You can see some of the basic layout options on the Appearance page. This is as close to Omega 3's user interface as you'll get./p pLuckily, there are some articles on Drupal.org about creating a new layout for Omega.a href=https://www.drupal.org/node/1936958 This first one/a explains the basics - what you'll need in order for the layout to work - whilea href=https://www.drupal.org/node/1936980 a second one/a goes into a little more detail about folder and file structure./p pThis is much more complicated than Omega 3, but at least you can change the layout and grid if you want to. You could take some inspiration from around the web to create something new - includinga href=https://gridsetapp.com/ Gridset/a - and it seems to be quite similar to creating a new subtheme. They come complete with a pseudo-info file and everything!/p pIt can be easier to make those grids if you usea href=http://susy.oddbird.net/ Susy/a anda href=http://breakpoint-sass.com/ Breakpoint/a , two Sass extensions that'll do the grunt work for you. Then it’s on to the styling!/p h2Sass/h2 pIt took me a while to get my head around how Sass works. I understood the variables and mixins - that was what I was most keen to try - but I found it hard to understand partials and compiling the files./p pActually, it was all a lot easier than I expected. You write your SCSS files then add them all to one main file with several @includes in it. Lots of people have written about their chosen directory structures; Omega gives you some folders as a starting point. Check outa href=http://alwaystwisted.com/post.php?s=2013-01-07-structuring-my-sass-101-part-1 Stu Robson's Structuring my Sass 101 post/a too./p pOne thing to bear in mind is that many people offering advice about file structures are not using Drupal (or an Omega subtheme)! You might find their advice isn't always relevant./p pFinally, it's important to consider how you can integrate your Sass files and your version control. Some suggesta href=http://blakehaswell.com/post/41093845406/stop-committing-css-to-version-control only committing the uncompiled files/a for several reasons, such as forcing other developers to use the “correct”, while others say it doesn't make much difference. Right now I'm primarily a back-end developer, so I'm not sure what the best workflow is, but I’ll be interested to find out what does and doesn’t work./p h2Wrapping it up/h2 h3So who is Omega 4.x for?/h3 pYou should consider using Omega 4.x if .../p ulli...you're comfortable with getting your hands dirty and don't mind coding a layout from scratch./li li...you like using, have used, or want to start using Sass to write your CSS./li li...you want to create a whole new layout from scratch, with a custom grid system./li li...you don't need a user interface to modify the theme settings./li li...you're making a push towards more modular,a href=http://smacss.com/ SMACSS/a -based CSS./li /ulpOtherwise, you might want to consider using Omega 3.x, or a different theme altogether./p h3Other useful links/h3 ullia href=http://css-tricks.com/musings-on-preprocessing/Musings on Preprocessing | CSS-Tricks/a/li lia href=http://alwaystwisted.com/Always Twisted/a - Sass blogging by Stu Robson/li lia href=https://www.drupal.org/node/819164Omega theming handbook/a/li lia href=https://www.drupal.org/node/2060741Omega 3.x vs. Omega 4.x - Comparing Apples and Oranges/a/li /ul/div/div/div
Categories: Drupal Feeds

Drupal core announcements: This month in Drupal Documentation

Mon, 09/01/2014 - 3:29pm
pThis is the 'almost' monthly update from the a href=https://drupal.org/governance/doc-working-groupDocumentation Working Group (DocWG)/a on what has been going on in Drupal Documentation. Because this is posted in the Core group, comments for this post are disabled, but if you have comments or suggestions, please see the DocWG home page for how to contact us. Enjoy!/p h3Notable Documentation Updates/h3 ul liKåre Slettnes (kaare) contributed a great number of docs on using emacs for Drupal development: a href=https://www.drupal.org/node/2327707 title=https://www.drupal.org/node/2327707https://www.drupal.org/node/2327707/a/li liowenpm3 updated the documentation for disabling modules: a href=https://www.drupal.org/node/157632 title=https://www.drupal.org/node/157632https://www.drupal.org/node/157632/a/li liJay.Chen wrote documentation for the mmenu module. a href=https://www.drupal.org/node/2324017 title=https://www.drupal.org/node/2324017https://www.drupal.org/node/2324017/a/li lierok415 updated the Open Atrium 2 documentation: a href=https://www.drupal.org/node/2321639 title=https://www.drupal.org/node/2321639https://www.drupal.org/node/2321639/a/li liThe installation guide saw quite some updates and progress was also made on the theming documentation for Drupal 8/li liMany people updated Drupal 8 documentation about, among others, configuration management, migrate, state amp; block API/li /ul h3Thanks for contributing!/h3 pSince a href=https://groups.drupal.org/node/436958our last post from August 1/a, 223 contributors have made 657 Drupal.org documentation page revisions, including 4 people that made 20 or more edits (thank you erok415, Jay.Chen, iantresman amp; drumm) and one person that did a whopping 66 revisions (keep rocking kaare!)./p h3Report from the Working Group/h3 ul liWe are preparing a Documentation sprint at DrupalCon Amsterdam where we hope to finalize the work on the Drupal 8 help texts (to help out, see a href=https://www.drupal.org/node/1908570 title=https://www.drupal.org/node/1908570https://www.drupal.org/node/1908570/a). We will also make a start with creating or updating docs for the D8 core modules. We'll be using documentation issue tag docsprint to tag issues that we think will be good for sprints, over the next two months especially./li liAfter an initial period of setting up the DocWG, we have now opened up the monthly meeting of the Documentation Working Group to anyone who would like to attend. a href=https://groups.drupal.org/user/6005Let me know/a if you want to join the meeting./li /ul h3Documentation Priorities/h3 pThe a href=https://www.drupal.org/documentation/prioritiesCurrent documentation priorities page/a is always a good place to look to figure out what to work on, and has been updated recently./p pIf you're new to contributing to documentation, these projects may seem a bit overwhelming -- so why not try out a a href=https://drupal.org/contributor-tasks/writersNew contributor task/a to get started?/p
Categories: Drupal Feeds

KnackForge: Adding a clear button to Drupal form API text field

Mon, 09/01/2014 - 7:02am
div class=field field-name-body field-type-text-with-summary field-label-hiddendiv class=field-itemsdiv class=field-item even property=content:encodedpWe wanted to have a quick clear button for any text field (similar to address bar of browsers in mobile and tablet devices). Snapshot below might explain it much better. In this you are seeing email search field in newsletter filter form./p p style=text-align: center;img alt= class=media-image height=193 width=601 typeof=foaf:Image src=/sites/default/files/selection_032.png //p pWhile I was in search for creating this, I found HTML5 is as the way to go. One can simply create that by using search input type. The proper HTML tag for the same is below,/p/div/div/div
Categories: Drupal Feeds

Web Omelette: PHP: Using the usort / uasort functions

Mon, 09/01/2014 - 5:19am
div class=field field-name-body field-type-text-with-summary field-label-hiddendiv class=field-itemsdiv class=field-item evenpHave you ever had to sort an array in PHP? There are a bunch of functions available, the most common being a href=http://us1.php.net/manual/en/function.sort.phpsort()/a. This function does a default sorting of the values in your array. So if you have numbers or want to do alphabetical sorting, codesort()/code will get the job done./p pBut what if you require a more complex sorting logic? Let's say you have an array of names that need to be sorted in a specific order. I don't know, because your client says so. Let me show you how./p pLet's say your DB returns a list of names in an array:/p precode$names = array(Christian, Daniel, Adrian); /code/pre pAnd your client says they need to be arranged in the following order: emAdrian, Christian, Daniel/em. You can use the a href=http://us1.php.net/manual/en/function.usort.phpusort()/a function together with a comparator function you write yourself. How does this system work?/p pAs a second argument of the codeusort()/code function, we pass in the name of our custom comparator function. The way this gets processed is that all the values in the array that needs sorting are passed to this function 2 at the time (usually you'll see them as code$a/code and code$b/code). This is done to determine which one takes precedence over which. The comparator has to return 0 if the 2 values are considered equal, a negative integer if the first value is emless/em than the second value or a positive integer if the second value is emless/em than the first. What emless/em means is up to you to determine. So let's put this in practice with our example:/p precodefunction _name_comparer($a, $b) { $correct_order = array(Adrian, Christian, Daniel); $a_key = array_search($a, $correct_order); $b_key = array_search($b, $correct_order); if ($a_key == $b_key) { return 0; } return ($a_key lt; $b_key) ? -1 : 1; } usort($names, _name_comparer); /code/pre pdiv id=block-inject-2 class=block-inject block-inject-2/divdiv class=clearfix/divpSo what happens in my comparator function? First, I create an array that contains the proper order of the names. This means that each value has an integer key that can be easily compared (and that I store in the code$a_key/code and code$b_key/code variables). After comparing these, I return 0, a negative or positive integer. The result is that the code$names/code array gets resorted in the order they appear in the code$correct_order/code local variable I created. And that's it./p pIf the code$names/code variable is associative and you need to maintain the keys as they were, you can use the a href=http://us1.php.net/manual/en/function.uasort.phpuasort()/a function:/p precode$names = array( christian =gt; Christian, daniel =gt; Daniel, adrian =gt; Adrian, ); usort($names, _name_comparer); /code/pre pThe comparator function can stay the same, but the codeuasort()/code function will take into account and maintain the index association of your values./p pAnd that's it. Hope this helps./p /div/div/divdiv class=sharethis-buttonsdiv class=sharethis-wrapperspan st_url=http://www.webomelette.com/php-using-usort-uasort-functions st_title=PHP: Using the usort / uasort functions class=st_facebook/span span st_url=http://www.webomelette.com/php-using-usort-uasort-functions st_title=PHP: Using the usort / uasort functions class=st_twitter st_via=drupalexp/span span st_url=http://www.webomelette.com/php-using-usort-uasort-functions st_title=PHP: Using the usort / uasort functions class=st_googleplus/span script type='text/javascript'var switchTo5x = true;/scriptscript type='text/javascript' src='http://w.sharethis.com/button/buttons.js'/scriptscript type='text/javascript'stLight.options({publisher:dr-8de6c3c4-3462-9715-caaf-ce2c161a50c});/script/div/div
Categories: Drupal Feeds

Joachim's blog: Graphing relationships between entity types

Sun, 08/31/2014 - 4:00pm
div class=field field-name-body field-type-text-with-summary field-label-hiddendiv class=field-itemsdiv class=field-item even property=content:encodedpAnother thing that was developed as a result of my big Commerce project (see a href=http://www.noreiko.com/blog/ripple-effectmy previous blog post for the run-down of the various modules this contributed back to Drupal/a) was a bit of code for generating a graph that represents the relationships between entity types./p pFor a site with a lot of entityreference fields it's a good idea to draw diagrams before you get started, to figure out how everything ties together. But it's also nice to have a diagram that's based on what you've built, so you can compare it, and refer back to it (not to mention that it's a lot easier to read than my handwriting)./p pThe code for this never got released; I tried various graph engines that work with a href=https://www.drupal.org/project/graphapiGraph API/a, but none of them produced quite what I was hoping for. It just sat in my local copy of Field Tools for the last couple of years (I didn't even make a git branch for it, that shows how rough it was!). Then yesterday I came across the a href=http://sigmajs.org/Sigma.js graph library/a, and that inspired me to dig out the code and finish it off./p pTo give the complete picture, I've added support for the relationships that are formed between entity types by their schema fields: things like the uid property on a node. These are easily picked out of hook_schema()'s foreign keys array./p pIn the end, I found Sigma.js wasn't the right fit: it looks very pretty, but it expects you to dictate the position of the nodes in the canvass, which for a generated graph doesn't really work. There is a plugin for it that allows the graph to be force-directed, but that was starting to be too fiddly. Instead though, I found a href=http://getspringy.com/Springy/a, that while maybe not quite as versatile, automatically lays out the graph nodes out of the box. It didn't take too long to write a href=https://www.drupal.org/sandbox/joachim/2330333a library module for using Springy with Graph API/a./p pHere's the result:/p pimg src=http://www.noreiko.com/sites/default/files/article/image/field-tools-graph-springy_0.png width=785 height=487 alt=Graph showing relationships between entity types on a development Drupa site //p pBecause this uses Graph API, it'll work with any graph engine, not just Springy. So I'll be interested to see what people who are more familiar with graphing can make it do. To get something that looks like the above for your site, it's simple: install the 7.x-1.x-dev release of a href=http://drupal.org/project/field_toolsField Tools/a, install a href=https://www.drupal.org/project/graphapiGraph API/a, install a href=https://www.drupal.org/sandbox/joachim/2330333the Springy module/a, and follow the instructions in the README of that last module for installing the Springy Javascript library./p pThe next stage of development for this tool is figuring out a nice way of showing entity bundles. After all, entityreference fields are on specific bundles, and may point to only certain bundles. However, they sometimes point to all bundles of an entity type. And meanwhile, schema properties are always on all bundles and point to all bundles. How do we represent that without the graph turning into a total mess? I'm pondering adding a form that lets you pick which entity types should be shown as separate bundles, but it's starting to get complicated. If you have any thoughts on this, or other ways to improve this feature, please share them with me in the Field Tools issue queue!/p /div/div/div
Categories: Drupal Feeds

MariqueCalcus: Drupal 8 in action

Sun, 08/31/2014 - 10:05am
pstrongDrupal 8/strong, strongPlugins/strong, strongGuzzle/strong, strongCMI/strong, strongCaching/strong... If those buzzwords trigger your interest, you should keep reading this article. We will cover those topics as we are building one of our a href=https://www.drupal.org/project/ibpcatalog target=_blankstrongfirst Drupal 8 modules/strong/a. Recently one of our clients requested a solution to integrate a custom feed called IBP Catalog. The IBP Catalog is a filterable XML feed, which enable to easily collect web component like banners, documents or even audio files. Those components are selected by the broker through a dedicated website./p a href='http://www.mariquecalcus.com/blogs/drupal-8-in-action-part-1'Read More.../a
Categories: Drupal Feeds

Doug Vann: Drupal is a community AND there happens to be a piece of software by the same name

Sun, 08/31/2014 - 7:09am
div class=field field-name-body field-type-text-with-summary field-label-hiddendiv class=field-itemsdiv class=field-item evenp class=p1img alt=Druplicon Logo class=image-thumbnail inline src=http://dougvann.com/sites/default/files/styles/thumbnail/public/inline-images/drupal-planet.png style=float: left; title= width=100 height=100 /This is part one in a series of blog posts about the Drupal Community. There is NO SHORTAGE of posts on this topic, but I wanted to take the time to tell my story of how I got here and what the Drupal community means to me.br /br /If you have ever attended one of my private or public trainings then chances are good that you have heard me utter the phrase that titles this blog post. You can also hear me saying this on a recent Podcast I did with the good folks at LightSky.com: a href=http://www.lightsky.com/podcasts/drupal-communityhttp://www.lightsky.com/podcasts/drupal-community/a/pp class=p1Here is that quote again in longer form:/ph3 class=p1ldquo;Drupal is a community and there happens to be a piece of software by the exact same name, and that can be confusing for some.rdquo;/h3p class=p1If you read that statement slow enough, or maybe a few times, I believe you will agree that this is a VERY loaded statement, a provocative one even. How does it make you feel when you read it? Do you instantly agree? Do you instantly disagree? Do you wonder if it is hyperbole or sensationalism at some level? I think all these reactions, and more, are well within the realm of expected, and acceptable, responses.br /br /You see, my early exposure to ldquo;Drupalrdquo; started with a rather humongous dose of the Drupal Community. Therefore, it stands to reason that I know it well, love it dearly, and engage and describe it as often as I do. But it wasnrsquo;t just my early exposures that set me on a path of life long Drupal Community advocacy. It was the opportunities for continued exposures that were afforded to me by the very members of the community. It fed me, equipped me, and empowered me which, in turn, motivated me to energetically continue on in my role as an active Drupal Community member./pp class=p1bHow it started:/bbr /For the LONGER version of this story, go listen to my a href=http://drupaleasy.com/podcast/2010/02/drupaleasy-podcast-28-doug-vann2009 DrupalEasy Podcast Interview/a.br /Suffice to say that I discovered Drupal in December of 2007 and after becoming convinced that Drupal ROCKED I discovered that there was a training in Portland Oregon. This outfit with a real funny name was doing a 5 day training on module development for Drupal 5. What was that funny named company? Well, it was a href=http://lullabot.comLullabot/a, of course! :-) There I met MANY of the people who I count as good friends, partners, and colleagues to this day.br /Let me keep this simple with a visual timeline of just how much Drupal Community interaction I had right out of the gate:/pulli class=p12007ulli class=p1December nbsp; nbsp; nbsp; nbsp; nbsp; nbsp;| Discover Drupal/li/ul/lili class=p12008ulli class=p1Jan, Portland nbsp; nbsp; nbsp; nbsp;| 5 days of Drupal5 Module Development Training with Lullabot amp; 2 dozen other [soon to be] friends./lili class=p1Jan, Indianapolis nbsp; | I start the local Indy Drupal Users Group. Why? Because in Portland, Addi Berry told me to!/lili class=p1Feb, Los Angeles nbsp; | 5 days of Drupal5 Theme Development Training with Lullabot amp; some of my new friends from Portland PLUS some brand new friends./lili class=p1Mar, Boston nbsp; nbsp; nbsp; nbsp; nbsp;| 4 days at DrupalCon with 850 Drupalers, so many of which I already knew from the 2 Lullabot classes/lili class=p1May, Minneapolisnbsp; | 5 days of Drupal6 Module/Theming training AGAIN with Lullabot amp; many familiar faces amp; new ones./lili class=p1June, Toronto nbsp; nbsp; nbsp; | 5 days of Drupal6 Intensive Training AGAIN with Lullabot amp; many familiar faces amp; new ones./lili class=p1July, Chicago nbsp; nbsp; nbsp; nbsp;| 2 days helping to man the Drupal booth at HostingCon. Kieran Lal had put out a request for people to take shifts. I showed up and never left the booth. I was an animal doing everything I could to educate ppl on how awesome I thought Drupal was. I COULD NOT [would not?] shut up. I impressed the local Chicago Users Group members and they asked me if I would come speak at their first ever DrupalCamp Chicago. I AGREED! [Still didnrsquo;t understand what a DrupalCamp was!?!?!]/lili class=p1Oct, Chicago nbsp; nbsp; nbsp; nbsp; | DrupalCamp Chicago is my 1st ever DrupalCamp! I wound up delivering over 8 sessions and leading a couple BoFs as I discovered my new title, King Of The N00bs!/lili class=p1Nov, Indianapolisnbsp; | I become aware of an event called IndyBANG [Indy Business amp; Arts Networking Get-together] I pay for booth space, print up a huge banner, and enjoyed some local entertainment, beverages, and got to tell my own city about this awesome thing called Drupal!/li/ul/lili class=p12009ulli class=p1May, Chicagonbsp; nbsp; nbsp; nbsp; | My First PAID Gig! I am invited to deliver a workshop at the 1st annual CMS Expo in Evanston IL. Local community leader Matthew Lechleider and I wow a good sized crowd for a 1/2 day Drupal intro workshop. I end up meeting many ppl who will play important, longterm roles in my professional life.nbsp;/li/ul/li/ulp class=p1You get the idea! right? :-)br /So if you do the math, My first 90 days in Drupal included 80hrs of lullabot workshops, and the first ldquo;solordquo; DrupalCon in North America. Thatrsquo;s pretty intense! It only stands to reason that my perspective on Drupal is one that is Community driven. When I think of Drupal, I think of the Drupal community./pp class=p1Other upcoming topics include:/pulli class=p1Why it#39;s important to distinguish the Drupal Communuity as its own entity and appreciate its value and power./lili class=p1How companies have leveraged the Drupal Community and how they#39;ve achieved measurable ROI from doing so.nbsp;/lili class=p1How the Drupal Community is a quot;Value Addedquot; consideration in the sales process and why the Drupal Community matters when businesses consider which CMS to use for their organization./lili class=p1The evolution of DrupalCamps across the years. Many things have changed!/lili class=p1Other topics? Leave a comment on this post if you have an idea for a future blog post! :-)/li/ul/div/div/divdiv class=field field-name-field-blogtype field-type-taxonomy-term-reference field-label-hiddendiv class=field-itemsdiv class=field-item evena href=/category/blog-type/drupal-planetDrupal Planet/a/div/div/divdiv id=disqus_threadnoscriptpa href=http://dougvann.disqus.com/?url=http%3A%2F%2Fdougvann.com%2Fblog%2Fdrupal-community-and-there-happens-be-piece-software-same-nameView the discussion thread./a/p/noscript/div
Categories: Drupal Feeds

Mediacurrent: Highlights from Drupalcamp Asheville

Fri, 08/29/2014 - 2:58pm
img typeof=foaf:Image src=http://www.mediacurrent.com/sites/default/files/styles/thumb_blog_spotlight/public/drupalcampasheville.png?itok=gnj_3Pq5 width=200 height=152 alt=Drupalcamp Asheville title=Drupalcamp Asheville / pspan style=line-height: 1.538em;On August 22nd and 23rd, members of the Mediacurrent team attended the 4th annual a href=http://drupalasheville.com/Drupalcamp Asheville/a. With over 100 attendees convening at the Crowne Plaza Resort, our team experienced quality sessions, code sprints, and meaningful one-on-one coversations. Below are their highlights of the weekend./span/p
Categories: Drupal Feeds

Doug Vann: A Few Days Left To Vote For Ten SxSw 2015 Drupal Session Submissions

Fri, 08/29/2014 - 10:54am
div class=field field-name-body field-type-text-with-summary field-label-hiddendiv class=field-itemsdiv class=field-item evendivdiv style=float:right;img alt= class=inline src=http://dougvann.com/sites/default/files/inline-images/Vote-Session-15-.jpeg style=width: 200px; height: 113px; float: right; margin-left: 50px; margin-right: 50px; title= width=200 height=113 /Vote for my session: a href=http://panelpicker.sxsw.com/vote/38353Web Content Publishing with Drupal Eight/abr /[You must be signed in to vote, registration is free]/div/divdiv style=clear:both;Mark Your Calendar: The 2015 Dates for SXSW Interactive are March 13-17 in Austin TX, the same place we just had Drupalcon 2014./divdivRead more at the official SxSwi site: a href=http://sxsw.com/interactive/news/2014/mark-your-calendar-2015-dates-sxsw-interactive-are-march-13-17http://sxsw.com/interactive/news/2014/mark-your-calendar-2015-dates-sxsw.../a/divdivnbsp;/divdivLast year I was invited by the SxSw organizers to deliver a 2.5hr Advanced Drupal Workshop. This year I encouraged many ppl to submit sessions and quite a few did. Now it#39;s time to vote! For 2015 there are TEN submissions which either include Drupal or are entirely about Drupal.nbsp;br /br /In order to vote, you must create an account on the Panel Picker Website:nbsp;a href=http://panelpicker.sxsw.com/http://panelpicker.sxsw.com//abr /Voting is free, even if you#39;re not sure wether or not you will make it to Austin for SxSw Interactive.br /br /Here#39;s a list of SxSw Interactive submitted sessions that are Drupal related, some more than others./divdivimg alt= class=image-medium inline src=http://dougvann.com/sites/default/files/styles/medium/public/inline-images/SXSWi_Logo.png style=float: right; margin-right: 20px; title= width=220 height=119 //divol style=margin-left:12px;liThe Drupal 8 Console Scaffolding Module Generator Solonbsp;/liliWeb Content Publishing with Drupal Eight Workshopnbsp;/liliLarge Drupal Site Builds Workshopnbsp;/liliDrupal 8 Modules for PHP Devs: Now with Symfony! Workshopnbsp;/liliIntroduction to Drupal 8 Theming with Twig Workshopnbsp;/liliWinning Lifecycle Technology Adoption Strategies Solonbsp;/liliThere is a CMS for everything... but content. Solonbsp;/liliManaging Communities: Tales from Open Source Panelnbsp;/liliInterconnected: The Future of the Experience Web Solonbsp;/liliContent Personalization for Web Teams of All Sizes -/li/olpSee all sessions at:nbsp;a href=http://panelpicker.sxsw.com/vote#sthash.O5Ix4fBG.dpuf target=_blankhttp://panelpicker.sxsw.com/vote#sthash.O5Ix4fBG.dpuf/abr /Search for the word quot;DRUPALquot; and you#39;ll see links to the 10 sessions listed above./p/div/div/divdiv class=field field-name-field-blogtype field-type-taxonomy-term-reference field-label-hiddendiv class=field-itemsdiv class=field-item evena href=/category/blog-type/drupal-planetDrupal Planet/a/div/div/divdiv id=disqus_threadnoscriptpa href=http://dougvann.disqus.com/?url=http%3A%2F%2Fdougvann.com%2Fblog%2Ffew-days-left-vote-ten-sxsw-2015-drupal-session-submissionsView the discussion thread./a/p/noscript/div
Categories: Drupal Feeds

Pronovix: Field Permission Patterns: a Drupal module for configuring custom field permissions

Fri, 08/29/2014 - 10:04am
pIf you ever had to configure custom field permissions in a project that had a ton of custom content types with a bunch of different fields, you probably ended up wishing for a tool that would make this process less boring and error-prone. This is why I wrote Field Permission Patterns, a module that takes the hassle out of configuring custom fields. In this post I tell you more about the usage and configuration options of strongField Permission/strong and strongField Permission Patterns/strong./p
Categories: Drupal Feeds

Zivtech: Simple Custom Page Layout With Panelizer

Fri, 08/29/2014 - 9:39am
div class=field field-name-body field-type-text-with-summary field-label-hiddendiv class=field-itemsdiv class=field-item even pUsing blocks to lay out content on your Drupal site can be a tedious and inflexible process. a href=https://www.drupal.org/project/panels target=_blankPanels/a improves this process by providing a simple way to display dynamic content based on relationships, contexts, and conditions without the user needing to learn to Drupal theming. If this sounds a bit like the a href=http://www.drupal.org/project/views target=_blankViews/a module, it's because both Views and Panels were written by a href=https://www.drupal.org/u/merlinofchaos target=_blankEarl Miles/a./p pPanels has come a long way since its inception, and has several helper modules that take it beyond what it can do with its seamless integration with Views. Those include a href=https://www.drupal.org/project/panelizer target=_blankPanelizer/a, a href=https://www.drupal.org/project/panels_everywhere target=_blankPanels Everywhere/a, and one that our own a href=https://www.zivtech.com/about/staff/jody-hamilton target=_blankJody Hamilton/a wrote more recently called a href=https://www.drupal.org/project/page_manager_templates target=_blankPage Manager Templates/a. Page Manager is actually a module within Chaos Tools, a dependency of both Panels and Views now, that does most of the magic that we see on the front end of the Panels module. Because of its integration with many other modules and its overall power by itself, the Panels module is one of the most useful modules to have installed on your Drupal website. Views is finally making it into Drupal Core in Drupal 8, so maybe we will see Panels in Drupal 9!/p pWhether you are looking to create a simple 1 column layout, or a fully responsive multi-column layout, Panels has all of the tools needed to get it done. Panels layouts are easy to create, and can actually be exported and re-used across different sites. You can export the whole panel as well if you like. Here at Zivtech, we use a module called a href=https://www.drupal.org/project/features target=_blankFeatures/a to export all sorts of settings, including Panels, Views, and content types to ensure all of our work is in code and can be committed to our git version control system. Panels can make your job easier as a Drupal site builder and allow you to display content without editing your theme much. You can even add additional CSS classes and IDs to give your panels the CSS selectors you need to get the page looking just right./p pBeyond the layout flexibility and ability to display content dynamically, Panels also has robust access and visibility settings. You can easily set up whole pages or parts of pages to display or not based on user permissions, the user viewing, and many other conditions. This gives the flexibility to build the robust, responsive, and dynamic content and page layouts that we build here at Zivtech. This post is really just the tip of the iceberg for what Panels can do for your Drupal website. Want to learn more about Panels? Check out our upcoming a href=https://www.zivtech.com/event/drupal-training-layout-and-site-building-panels target=_blankPanels Training/a on a href=http://zivtech.ticketleap.com/drupal-training-panels/ target=_blankSeptember 17, 2014/a./p /div/div/divdiv class=field field-name-taxonomy-vocabulary-2 field-type-taxonomy-term-reference field-label-inline clearfixdiv class=field-labelTerms:nbsp;/divdiv class=field-itemsdiv class=field-item evena href=/terms/panelspanels/a/divdiv class=field-item odda href=/terms/panelizerpanelizer/a/divdiv class=field-item evena href=/terms/drupal-trainingdrupal training/a/divdiv class=field-item odda href=/terms/drupal-planetDrupal Planet/a/div/div/div
Categories: Drupal Feeds

Code Karate: Drupal 7 Node Expire module

Fri, 08/29/2014 - 8:58am
div class=field field-name-field-episode-number field-type-number-integer field-label-abovediv class=field-labelEpisode Number:nbsp;/divdiv class=field-itemsdiv class=field-item even165/div/div/divdiv class=field field-name-field-ddod-video field-type-file field-label-hiddendiv class=field-itemsdiv class=field-item evenimg src=http://codekarate.com/sites/default/files/styles/large/public/media-youtube/Yi0eavIgV1M.jpg?itok=bTJuMQQb alt=Drupal 7 Node Expire module - Daily Dose of Drupal episode 165 //div/div/divdiv class=field field-name-body field-type-text-with-summary field-label-hiddendiv class=field-itemsdiv class=field-item evenpThe Drupal 7 a href=http://drupal.org/project/node_expire rel=nofollowNode Expire module/a allows you to use the power of the Rules module to perform actions on nodes at a specific point in time (when the node expires). This is useful for things such as unpublishing your content after a certain amount of time, or removing your content from the front page after it's been published for a week. You can also create rules actions to send an email at a specific time to serve as a reminder to do something related to a node on your Drupal site./p/div/div/divdiv class=field field-name-taxonomy-vocabulary-1 field-type-taxonomy-term-reference field-label-abovediv class=field-labelTags:nbsp;/divdiv class=field-itemsdiv class=field-item evena href=/category/tags/drupalDrupal/a/divdiv class=field-item odda href=/category/tags/drupal/drupal-7Drupal 7/a/divdiv class=field-item evena href=/category/tags/drupal-planetDrupal Planet/a/div/div/div
Categories: Drupal Feeds

Drupal Commerce: Commerce 2.x Stories - Internationalization

Fri, 08/29/2014 - 8:00am
div class=field field-name-body field-type-text-with-summary field-label-hiddendiv class=field-itemsdiv class=field-item even property=content:encodedpWelcome to the first article in the “Commerce 2.x Stories” series. As Commerce 2.x development heats up, we’ll be covering interesting developments, ideas, and contributors./p pOur first topic of interest is internationalization and localization. This involves tasks from translating UIs and content to representing numbers, currencies, and dates in a locale specific manner. It’s also a current pain point with Drupal 7 / Commerce 1.x - especially as it relates to currency management./p pa href=https://drupalcommerce.org/blog/15916/commerce-2x-stories-internationalizationRead on to see what we're doing to improve it.../a/p /div/div/div
Categories: Drupal Feeds

Mark Shropshire: Drupal Camp Asheville 2014

Fri, 08/29/2014 - 7:06am
div class=field field-name-body field-type-text-with-summary field-label-hidden view-mode-rssdiv class=field-itemsdiv class=field-item even property=content:encodedpI had a great time at this year's a href=http://drupalasheville.comDrupal Camp Asheville/a. This year's camp was held at the beautiful a href=http://ashevillecp.comCrowne Plaza Resort/a on Saturday, August 23rd. Amenities included coffee, breakfast foods, a ping-pong table, and a great lunch (surprisingly good for a conferenc center). Thanks to a href=https://www.drupal.org/u/mrconnertonMatthew Connerton/a, the a href=http://www.meetup.com/asheville-drupal-user-group/Asheville Drupal User Group/a, and all of the a href=http://drupalasheville.com/camp/2014/sponsorssponsors/a, presenters, and attendees for making this a great camp! !--break-- I attended a few sessions and hung out in the hallways chatting with long time Drupal friends and meeting new ones. I really enjoyed the presentations I attended:/p ul lia href=http://drupalasheville.com/drupal-camp-asheville-2014/sessions/drupal-speed-clinicDrupal Speed Clinic/a by a href=https://www.drupal.org/u/mherchelmherchel/a. I attended a previous version of this talk at Drupalcamp Atlanta, but it is great to pick up on the changes and new bits that Mike has picked up since then./li lia href=http://drupalasheville.com/drupal-camp-asheville-2014/sessions/developing-configuration-management-drupal-7Developing with Configuration Management on Drupal 7/a by a href=https://www.drupal.org/user/49344rszrama/a. Now that I am working on a project at a href=https://knowclassic.comClassic/a using the a href=https://www.drupal.org/project/configurationConfiguration Management/a module, I was happy to get some great tips and tricks from a very experienced developer./li lia href=http://drupalasheville.com/drupal-camp-asheville-2014/sessions/casperjs-and-drupalCasper.js and Drupal/a by a href=https://www.drupal.org/user/209141kostajh/a. Having worked a bit with Behat, it was interesting to learn about some very creative uses of Casper.js with Drupal. One of these included scraping content from an existing site to migrate content to Drupal. Casper.js is just plain fast too!/li /ul pI am looking forward to having the presentation videos posted to the a href=http://drupalasheville.comDrupal Camp Asheville/a website so I can catch up on the ones I missed./p pI had the pleasure of presenting a href=http://drupalasheville.com/drupal-camp-asheville-2014/sessions/digital-signage-drupal-and-meteorjsDigital Signage with Drupal and Metoer/a. A good number of session attendees were interested in a href=https://meteor.comMeteor/a, so I am glad to spend a bit of time talking about what Meteor is all about and how it works. The session was well attended and the questions from the attendees really made it a lot of fun!/p pCheck out the slide deck below. I have also attached a PDF version so links in the presentation can be followed./p script async class=speakerdeck-embed data-id=9f5a3ba011970132168932d3f2247bb6 data-ratio=1.33333333333333 src=//speakerdeck.com/assets/embed.js/script /div/div/divsection class=field field-name-taxonomy-vocabulary-1 field-type-taxonomy-term-reference field-label-above view-mode-rssh2 class=field-labelBlog Category:nbsp;/h2ul class=field-itemsli class=field-item evena href=/taxonomy/term/13 typeof=skos:Concept property=rdfs:label skos:prefLabel datatype=Drupal/a/li/ul/sectiondiv class=field field-name-upload field-type-file field-label-hidden view-mode-rssdiv class=field-itemsdiv class=field-item eventable class=sticky-enabled theadtrthAttachment/ththSize/th /tr/thead tbody tr class=oddtdspan class=fileimg class=file-icon alt= title=application/pdf src=/modules/file/icons/application-pdf.png / a href=http://mark.shropshires.net/sites/default/files/Digital%20Signage%20with%20Drupal%20and%20Meteor.pdf type=application/pdf; length=5027779Digital Signage with Drupal and Meteor.pdf/a/span/tdtd4.79 MB/td /tr /tbody /table /div/div/div
Categories: Drupal Feeds

Deeson Online: Part 1: Apache Solr - Creating Custom Fields

Fri, 08/29/2014 - 4:04am
div class=field field-name-body field-type-text-with-summary field-label-hiddendiv class=field-itemsdiv class=field-item even property=content:encodedpThis is the first of two blog posts. In this one I will show you how to create a custom search index in Apache Solr. Part 2 will go into how you can then manually set the field bias of your custom field so that you can control it through the settings with the Apache Solr module./p h2Creating a custom field/h2 pAdding custom fields to Apache Solr is often something that you can end up needing to do for a project. The Apache solr module makes this easy to do with: hook_apachesolr_index_document_build()./p pspan class=geshifiltercode class=php geshifilter-phpspan style=color: #009933; font-style: italic;/** * Implements hook_apachesolr_index_document_build(). *//span span style=color: #000000; font-weight: bold;function/span MY_MODULE_apachesolr_index_document_buildspan style=color: #009900;#40;/spanApacheSolrDocument span style=color: #000088;$document/spanspan style=color: #339933;,/span span style=color: #000088;$entity/spanspan style=color: #009900;#41;/span span style=color: #009900;#123;/span span style=color: #000088;$document/spanspan style=color: #339933;-amp;/spangtspan style=color: #339933;;/spanaddFieldspan style=color: #009900;#40;/spanspan style=color: #339933;amp;/spanspan style=color: #666666; font-style: italic;#39;ss_my_fieldamp;#39;, amp;#39;amp;#39;); } /span/code/span/p pWhen defining the field you will notice that this is prefixed with strong'ss_'/strong which is very important as it tells Apache Solr what type of field it is./p pThis prefix can be two or three characters long, with the first character defining the data type of field (e.g. string (s), boolean (b), date (d) etc.) and the last character defines if it is a single (s) or multi-valued (m) field./p pIf you have a look at the emschema.xml/em file that comes with the ApacheSolr module you will see a section that details the standard prefixes for field indexes. Here is a snippet from the file:/p pspan class=geshifiltercode class=php geshifilter-phpspan style=color: #339933;lt;!--/span We span style=color: #000000; font-weight: bold;use/span long span style=color: #b1b100;for/span integer since span style=color: #cc66cc;64/span bit ints are now common in PHPspan style=color: #339933;./span span style=color: #339933;--gt;lt;/spandynamicfield indexedspan style=color: #339933;=/spanspan style=color: #0000ff;quot;truequot;/span multivaluedspan style=color: #339933;=/spanspan style=color: #0000ff;quot;falsequot;/span namespan style=color: #339933;=/spanspan style=color: #0000ff;quot;is_*quot;/span storedspan style=color: #339933;=/spanspan style=color: #0000ff;quot;truequot;/span typespan style=color: #339933;=/spanspan style=color: #0000ff;quot;longquot;/spanspan style=color: #339933;gt;/span span style=color: #339933;lt;/spandynamicfield indexedspan style=color: #339933;=/spanspan style=color: #0000ff;quot;truequot;/span multivaluedspan style=color: #339933;=/spanspan style=color: #0000ff;quot;truequot;/span namespan style=color: #339933;=/spanspan style=color: #0000ff;quot;im_*quot;/span storedspan style=color: #339933;=/spanspan style=color: #0000ff;quot;truequot;/span typespan style=color: #339933;=/spanspan style=color: #0000ff;quot;longquot;/spanspan style=color: #339933;gt;/span span style=color: #339933;lt;!--/span a href=http://www.php.net/listspan style=color: #990000;List/span/a of floats can be saved in a regular float field span style=color: #339933;--gt;lt;/spandynamicfield indexedspan style=color: #339933;=/spanspan style=color: #0000ff;quot;truequot;/span multivaluedspan style=color: #339933;=/spanspan style=color: #0000ff;quot;falsequot;/span namespan style=color: #339933;=/spanspan style=color: #0000ff;quot;fs_*quot;/span storedspan style=color: #339933;=/spanspan style=color: #0000ff;quot;truequot;/span typespan style=color: #339933;=/spanspan style=color: #0000ff;quot;floatquot;/spanspan style=color: #339933;gt;/span span style=color: #339933;lt;/spandynamicfield indexedspan style=color: #339933;=/spanspan style=color: #0000ff;quot;truequot;/span multivaluedspan style=color: #339933;=/spanspan style=color: #0000ff;quot;truequot;/span namespan style=color: #339933;=/spanspan style=color: #0000ff;quot;fm_*quot;/span storedspan style=color: #339933;=/spanspan style=color: #0000ff;quot;truequot;/span typespan style=color: #339933;=/spanspan style=color: #0000ff;quot;floatquot;/spanspan style=color: #339933;gt;/span span style=color: #339933;lt;//spandynamicfieldspan style=color: #339933;gt;lt;//spandynamicfieldspan style=color: #339933;gt;lt;//spandynamicfieldspan style=color: #339933;gt;lt;//spandynamicfieldspan style=color: #339933;gt;/span/code/span/p pHaving defined your new index you will need to tell Apache Solr about it. To do this all you have to do is do a full re-index of your content which will register your custom field with Solr. You can check that your field has been index correctly by checking the Solrs search index report - /admin/reports/apachesolr./p pHaving now indexed your new field you can now alter the query to make sure of this new field using hook_apachesolr_query_alter()./p pspan class=geshifiltercode class=php geshifilter-phpspan style=color: #009933; font-style: italic;/** * Implements hook_apachesolr_query_alter(). *//span span style=color: #000000; font-weight: bold;function/span MY_MODULE_apachesolr_query_alterspan style=color: #009900;#40;/spanDrupalSolrQueryInterface span style=color: #000088;$query/spanspan style=color: #009900;#41;/span span style=color: #009900;#123;/span span style=color: #000088;$query/spanspan style=color: #339933;-amp;/spangtspan style=color: #339933;;/spanaddParamspan style=color: #009900;#40;/spanspan style=color: #339933;amp;/spanspan style=color: #666666; font-style: italic;#39;sortamp;#39;, amp;#39;ss_my_field ascamp;#39;); } /span/code/span/p pYou will now see that this is changing the results of your search based upon you new field./p pNow you've created your customer field, my next post will show you how you can define it so that you can manually set the field bias within the Apache Solr admin section when a search is performed./p pInterested to get feedback on part one though - so share your comments below!/p /div/div/divdiv class=field field-name-node-link field-type-ds field-label-hiddendiv class=field-itemsdiv class=field-item evena href=/labs/part-1-apache-solr-creating-custom-fieldsRead more/a/div/div/divdiv class=field field-name-title field-type-ds field-label-hiddendiv class=field-itemsdiv class=field-item even property=dc:titleh2Part 1: Apache Solr - Creating Custom Fields/h2/div/div/divdiv class=field field-name-meta field-type-ds field-label-hiddendiv class=field-itemsdiv class=field-item evenBy a href=/category/author/mike-davisMike Davis/a | 29th August 2014/div/div/div
Categories: Drupal Feeds

Forum One: Introducing the Gesso Theme

Thu, 08/28/2014 - 2:31pm
pa style=display: block; float: right; margin: 0 0 1.22222em 1.22222em; max-width: 40%; border: 0; href=https://drupal.org/project/gesso target=_blankimg style=border: 1px solid #f1f1f1; display: block; src=http://forumone.com/wp-content/uploads/2014/08/gesso-logo-250x186.jpg alt=Gesso theme on drupal.org //a For the past year Forum One has been using a Drupal starter theme created in-house to make theming more flexible, consistent, and easier to maintain. This theme is now available on drupal.org! Gesso (pronounced emJEH-so/em) is an art term for the white paint mixture used to prepare a canvas or sculpture for painting. Likewise, the a href=https://drupal.org/project/gesso target=_blankGesso theme/a prepares Drupal’s markup and styles to give us a clean starting point./p pGesso is a responsive, a href=http://sass-lang.com/Sass/a-based theme developed with accessible, standards-compliant HTML5 markup. It follows a mobile-first, future-friendly approach to coding responsive websites. Gesso also removes much of the cruft that we previously tended to override on each project and standardizes common components./p pA word of caution: this theme is geared towards advanced themers. If you want to be able to manipulate the theme’s design, markup, or layout via a nice GUI, Gesso is not the theme for you. We built this theme to make it easy to customize within the Drupal theming layer, without getting in your way./p pGesso is not a stand-alone product. It depends on several Drupal modules and Sass tools: a href=https://drupal.org/project/maagic target=_blankMagic/a, a href=https://drupal.org/project/html5_tools target=_blankHTML5 Tools/a, a href=http://compass-style.org/ target=_blankCompass/a, a href=http://github.com/Team-Sass/breakpoint target=_blankBreakpoint/a, and a href=github.com/Team-Sass/Singularity target=_blankSingularity.gs/a. It also integrates well with optional Drupal modules such as a href=https://drupal.org/project/dsDisplay Suite/a, a href=https://drupal.org/project/panelsPanels/a, a href=https://drupal.org/project/blockify target=_blankBlockify/a, a href=https://drupal.org/project/clean_markup target=_blankClean Markup/a, and a href=https://drupal.org/project/modernizr target=_blankModernizr/a./p pTo be clear, Gesso wasn’t created in a vacuum. We got a ton of great ideas by diving deep into the code of other Drupal themes, such as:/p ul lia href=https://drupal.org/project/adaptivetheme target=_blankAdaptiveTheme/a/li lia href=https://drupal.org/project/aether target=_blankAether/a/li lia href=http://drupal.org/project/aurora target=_blankAurora/a/li lia href=https://drupal.org/project/basic target=_blankBasic/a/li lia href=https://drupal.org/project/center target=_blankCenter/a/li lia href=https://drupal.org/project/mojo target=_blankMojo/a/li lia href=https://drupal.org/project/motherhips target=_blankMothership/a/li lia href=https://drupal.org/project/omega target=_blankOmega 4.x/a/li lia href=https://drupal.org/project/prototype target=_blankPrototype/a/li lia href=https://drupal.org/project/radix target=_blankRadix/a/li lia href=https://drupal.org/project/zen target=_blankZen/a/li /ul pIf you want to develop a deeper understanding of Drupal theming, I encourage you to check out the code within these themes./p pThe biggest differentiator between Gesso and other themes is the altered Drupal markup, which makes it easier to follow the a href=https://www.drupal.org/node/1887918 target=_blankDrupal 8 CSS architecture guidelines/a. This theme leverages a href=https://smacss.com/ target=_blankSMACSS/a with a modified a href=http://bem.info/method/ target=_blankBEM/a naming convention to organize styles. This encourages a component-based approach to theming through the creation of discrete, reusable UI elements./p pIn follow-up articles we’ll cover Gesso in more depth, including Sass organization, site building, and theme settings. Please join us in the a href=https://www.drupal.org/project/issues/gesso target=_blankissue queue/a if you have questions or ideas on how to improve it./p
Categories: Drupal Feeds

LightSky: The Drupal Community

Thu, 08/28/2014 - 1:12pm
div class=field field-name-field-audio field-type-file field-label-hiddendiv class=field-itemsdiv class=field-item evendiv class=mediaelement-audioaudio src=http://www.lightsky.com/sites/default/files/podcasts/time_to_live_episode_5.mp3 class=mediaelement-formatter-identifier-1409264246-0 controls=controls /audiodiv class=mediaelement-download-linka href=http://www.lightsky.com/sites/default/files/podcasts/time_to_live_episode_5.mp3Download/a/div/div/div/div/divdiv class=field field-name-body field-type-text-with-summary field-label-hiddendiv class=field-itemsdiv class=field-item even property=content:encodedpIn this episode of Time to Live we have Doug Vann as our guest.  Doug is the President of Synaptic Blue, a Drupal consulting firm, and is extremely active in the Drupal community.  We discuss a variety of aspects of the Drupal community and how it benefits individuals and companies to get involved in the community./p h2 Participants/h2 pMichael Hodge Jr - President/Owner at LightSky - a href=http://twitter.com/m_hodge@m_hodge/a/p pBruce Clingan - Director of Business Development at LightSky - a href=http://twitter.com/astrocling@astrocling/a/p pDoug Vann - President of Synaptic Blue - a href=http://twitter.com/dougvann@dougvann/a/p h2 Comments/Questions/h2 pWe are doing this podcast for our visitors. If you have any ideas for how we can improve our podcasts, or ideas for future topics please let us know. You can either reach us via a href=mailto:time2live@lightsky.comemail/a, a href=http://twitter.com/lightsky_designtwitter/a or in the comments below./p /div/div/div
Categories: Drupal Feeds

Drupal Association News: Drupal.org team week notes #29

Thu, 08/28/2014 - 11:48am
div class=field field-name-body field-type-text-with-summary field-label-hiddendiv class=field-itemsdiv class=field-item evenpimg class=left src=https://association.drupal.org/files/do.png //p h2Better credit for organizations on Drupal.org/h2 pWe a href=https://drupal.org/news/supporting-organizations-credit-on-profilesadded a feature to projects on Drupal.org to help highlight the contributions made by supporting organizations/a. Maintainers of distributions, modules, and themes can give credit to organizations that have materially contributed to projects on Drupal.org using the new “Supporting Organizations field./p pIf you are a project maintainer, take a moment to give some credit to the organizations that have helped build the Drupal ecosystem./p h2Drupal Jobs launch/h2 pWe’re proud to announce the launch of a href=https://jobs.drupal.org/Drupal Jobs/a, a career site dedicated completely to Drupal. The Drupal job market is hot and we hope this new tool will help match the right talent with the right positions./p pFor job seekers, you can start searching for positions by location, position, skill level and more. You can create a profile with your job preferences and salary requirements, and even choose whether you wish to be contacted by employers and recruiters. All for free./p pFor employers and recruiters there are a variety of packages available, giving them the opportunity to highlight their company with a branded page and feature select postings in newsletters and social media. The great thing is that proceeds from postings are invested back into Drupal.org and its subsites (including Drupal Jobs) and community programs./p h2Upcoming deployments/h2 pWe are slowly moving towards implementing the new layout for user profiles on Drupal.org. In the coming weeks we will be migrating profile fields to user fields bit by bit. Profile layout will be changing along the way and might look messy at times during migration./p pNext week we are planning to deploy software and infrastructure changes to support a href=https://www.drupal.org/news/introducing-drupalorg-tos-and-privacy-policythe new Drupal.org Terms of Service and Privacy Policy/a. We are going to implement a checkbox on user profiles, so that users could accept the ToS and Privacy Policy, as well as a few other changes./p h2Previous deployments/h2 pSome of the deployments, which happened in the previous two weeks, include:/p ullia href=https://www.drupal.org/node/2098117Upgrade to fasttoggle 7.x-1.5 - 'Unpublish' quicklinks on all issue comments disappear once clicked on one/a/li lia href=https://www.drupal.org/node/2125029Wrong 'open issues' count on user project page/a/li lia href=https://www.drupal.org/node/2228139Remove table spacing JS/a/li lia href=https://www.drupal.org/node/956062Add distinctive color to css a:visited on D.O/a was reverted/li lia href=https://www.drupal.org/node/1028950Fix packaging scripts to checkout from sane/stable Git URLs instead of hard-coding the local filesystem/a/li lia href=https://www.drupal.org/node/2320141Comment render caching should include comment status in hash/a/li lia href=https://www.drupal.org/node/968994Multiple Values for listings of current companies and organizations/a/li lia href=https://www.drupal.org/node/2322651Sandbox releases found/a/li lia href=https://www.drupal.org/node/2324335Update the Docs management page/a/li lia href=https://www.drupal.org/node/2320925Update tabs for Documentation section/a/li lia href=https://www.drupal.org/node/2207117Clean up infrastructure issue queue/a/li lia href=https://www.drupal.org/node/2322261Migrate Work-related profile fields/a/li lia href=https://www.drupal.org/node/2325219Bring company logos back on user profiles/a/li lia href=https://www.drupal.org/node/2292795Update organization page sidebar for D7/a/li /ulpThanks to a href=https://www.drupal.org/u/steven-jonesSteven Jones/a, a href=https://www.drupal.org/u/malleziemallezie/a, a href=https://www.drupal.org/u/lewisnymanLewisNyman/a, a href=https://www.drupal.org/u/fizkfizk/a and a href=https://www.drupal.org/u/jhodgdonjhodgdon/a for working with us on the issues listed above and making those deployments possible./p h2Drupal.org infrastructure news/h2 pThe load balancers are being rebuilt with a new operating system and configuration. These rebuilds bring decreased latency and increased security to our *.drupal.org sites. Since the beginning of August our average latency has decreased from ~1000ms to ~400ms./p pimg src=https://assoc.drupal.org/files/screen.png //p pMore statistics are available from a href=http://status.devdrupal.org/433372/2014/08status.devdrupal.org/a./p pDrupal.org web servers have also been upgraded to a 3.14 kernel with the latest grsecurity patch./p pThere has also been a a href=https://www.drupal.org/node/2228897review of cache values on drupal.org/a sites./p p---br / As always, we’d like to say thanks to all volunteers who are working with us and to the Drupal Association a href=https://drupal.org/supportersSupporters/a, who made it possible for us to work on these projects. /p pCross-posting from a href=https://groups.drupal.org/node/440383g.d.o/drupalorg/a./p pFollow us on Twitter for regular updates: a href=https://twitter.com/drupal_org@drupal_org/a, a href=https://twitter.com/drupal_infra@drupal_infra/a/p /div/div/divdiv class=field field-name-taxonomy-vocabulary-4 field-type-taxonomy-term-reference field-label-abovediv class=field-labelPersonal blog tags:nbsp;/divdiv class=field-itemsdiv class=field-item evena href=/taxonomy/term/588week notes/a/div/div/div
Categories: Drupal Feeds

DrupalCon Amsterdam: Get a status update on Drupal 8 Contribution Modules at DrupalCon Amsterdam

Thu, 08/28/2014 - 4:33am
div class=field field--name-body field--type-text-with-summary field--label-hiddendiv class=field__itemsdiv class=field__item evenpDrupal 8 is slowly approaching. As we all know, the real power in version upgrades lies in the contribution modules. Most of the maintainers are already working on their Drupal 8 ports, but what is their status?/p pWhile we would like to give every one of these maintainers their own full session to discuss their modules, they are unfortunately only so many slots available. Not to mention it would take a long time for you to attend all of these talks on top of the various other conference sessions!/p pTherefore, in order to update the community on the major modules, I have coordinated a double session where each maintainer will present their module’s status. The presentations will be short and focused, freeing you up to enjoy other great conference content./p pWe will hear about the following modules:/p ulliWebform (by quicksketch) /liliRules (by dasjo) /liliDisplay Suite (by aspilicious) /liliMedia (by daveried/slashrsm) /liliSearch API (by drunken monkey) /liliCommerce (by bojanz) /liliRedirect, Global Redirect, Token, Pathauto (by berdir) /liliPanels (by populist) /liliSimplenews (by miro_dietiker/ifux) /li/ulpThe session will take place on Tuesday, September 30th from 14:15 - 16:45 (this is two session slots) in the Keynote Auditorium (Wunderkraut Room)./p pa href=https://amsterdam2014.drupal.org/session/drupal-8-contrib-module-update class=button-linkMore information/a/p pJoin us to learn directly from the maintainers what to expect of their Drupal 8 Modules!/p p--br / Michael Schmid (Schnitzel)br / DrupalCon Amsterdam Site Building Track Chair/p /div/div/div
Categories: Drupal Feeds

LevelTen Interactive: Become a ColourLover

Thu, 08/28/2014 - 12:00am
img typeof=foaf:Image src=http://getlevelten.com/sites/default/files/styles/600x300/public/content/blog/images/colourlover-01.png?itok=oVlMzZVX width=600 height=300 alt=become a colour lover / pspan style=font-size: 16px;It’s easy to underestimate the impact of web design on business. The look and feel of a site not only communicates the personality of an organization, but it impacts the company’s perceived credibility. Great design provides the right visual experience for the target audience to meet goals and objectives./span... a href=/blog/gretchen-voelker/become-colourlover class=more-linkRead more/a/p
Categories: Drupal Feeds