Not too bad

Using tabs for Unique Displays

Description of Erratum

  • The method described does not work. It produces a page with tabs, all of which point to the same URL (eg /?q=content), resulting in the same content displayed no matter what tab you choose. The expected result would be for the tabs to lead to a different URL (eg /?q=content/blog) and display different content (eg the blog posts).

  • Recommended Correction

  • This tutorial http://tewson.com/content/creating-tabbed-views-drupal-6 seems to work for Drupal 7 as well.

  • broken link

    Description of Erratum

  • (near bottom of page)
    "With a debugger (see dgd7.org/ide), you can try to watch all the functions..."
    (The requested page "dgd7.org/ide" could not be found.)

  • Recommended Correction

  • fix link
    got stuck at this point in reading the chapter

  • Incorrect index in array of region names

    Description of Erratum

  • The code listings defining the array of regions (Pgs. 288, 291) have an incorrect index which causes Drupal to spit out the message
    Notice: Undefined index: highlighted in include() (line 121 of /var/www/html/drupal/sites/all/themes/dgd7/page.tpl.php).

  • Recommended Correction

  • Change regions[highlight] to regions[highlighted] in the .info file for your theme.

  • Grep Issue

    Description of Erratum

  • grep -nHR --include=*.module 'View site reports' modules

    I am using the MINGW32 Git Bash command line tool in Windows Vista. The above command produces the following errors:

    grep: invalid option -- R
    grep: unrecognized option '--include=*.module'

  • Recommended Correction

  • To correct this issue I ran:
    grep -nHr 'View site reports' modules
    (note the lowercase r).

    Hope this is helpful to somebody!

  • "Wrap field in HTML" should be "Customize field and...

    Description of Erratum

  • The paragraph describing how to modify the output of a field, incorrectly specifies "Wrap field in HTML". As of Drupal 7.9, the checkbox is labeled "Customize field and label wrapper HTML".
    Additionally, the diagram below those directions does not show the "Customize field HTML" or "Customize label HTML" checkboxes.

  • Recommended Correction

  • update text and diagram accordingly.

  • Pages

    Subscribe to Not too bad