unfinished

Benjamin Melançon's picture

How to run a Code Sprint

Book element

  • How to
  • Find a place.

    Electricity and internet are all we need, but it never hurts to plan on feeding the code sprinters, also.

    Find some people.

    Some veteran programmers signed up before calling a sprint helps ensure that all issues can be handled. Ideally, someone with commit access to the project or projects that will be worked on should be present, or at least committed to work remotely.

  • Explanation

  • Notes while at the Acquia D7 code sprint called by Dries.
  • Benjamin Melançon's picture

    Add a language

    Tags

  • unfinished
  • Book element

  • How to
  • [not tested, notes jotted down while helping fellow code sprinter test the translation of Forum titles]

    Enable locale module

    [new] In Drupal 7, the fastest way to add a language is to place the package of po files in the Drupal root directory and then add the language. It finds the po files automatically. (We do not go to import a language as in Drupal 6. Now we only use import for individual po files we add later.)

  • Explanation

  • It's imperative that we cover as much translation, user interface and
  • Benjamin Melançon's picture

    If declaring a custom region or feature in a theme, all defaults...

    Tags

  • unfinished
  • Book element

  • Gotcha
  • If a theme uses only default regions or feature settings, it does not need to define them in its .info file. If even one additional region is used, it must define all regions, the default ones it wants to keep and the new ones. The same holds for features. This is true for subthemes, also: If our parent theme uses only the default regions, and so doesn't define any, and so our copy of its .info file doesn't define any, we'll lose all the default regions the moment we define a region ourselves.

  • Explanation

  • #drupal-themes 18:33 rfay: Aren't a theme's regions always supposed to be in the .info file? Why does garland not have them? 18:36 stephthegeek: rfay, if it only has the default regions (header, footer, left, right), it doesn't need to declare them 18:36 rfay: stephthegeek, thanks. The only problem is when you add one to a subtheme :-) 18:37 rfay: Then it all blows sky-high 18:37 stephthegeek: rfay, yeah you need to list them all then 18:37 stephthegeek: you can't just add to it 18:37 stephthegeek: theme settings are the same way 18:37 rfay: stephthegeek, but theme settings are always listed in the parent's .info, true? So you can just copy them. 18:38 stephthegeek: rfay, no, i think they're the same way.. 18:38 stephthegeek: if you have the usual (primary, secondary, logo, etc) defaults you don't have to declare them 18:38 stephthegeek: just if you want to have one less or custom ones :) 18:38 rfay: stephthegeek, thanks for the warning :-)
  • Benjamin Melançon's picture

    Making a block of useful links for a set of users

    Book element

  • How to
  • We will commonly want some people to have a convenient block of links they are likely to need, and not show this to other people. We can do this in Drupal by giving people who should have common tasks or abilities in common a shared role, making a menu of the links we want to show, and placing the block with this menu into the region of our choice.

    Benjamin Melançon's picture

    Creating a custom administrator view of content

    Book element

  • How to
  • The generic goal is a view of content useful to administrators or other privileged users. If it were possible for this goal to be met in a generic fashion, it is more than likely Drupal (or a module) would be providing it for us already, out of the box. Indeed, Drupal core does provide a very useful list of content available at the Content or Find content links (admin/content).

  • Explanation

  • We need a Views tutorial, and this is the first view i needed.
  • Benjamin Melançon's picture

    Adding images to posts: Inserting and automatically resizing user...

    Book element

  • How to
  • Adding images to posts: Inserting and automatically resizing user-added images

    Our authors will want to add pictures, screenshots, and diagrams to the draft chapters or bonus content hosted on the web site.

    drush dl insert image_resize_filter

    FIXNOTE: At time of writing, insert did not have a recommended release and Drush could not download.

  • Subscribe to unfinished