Difference between revisions of "Show And Tell 2012-8-20 (Drupal)"

From Stadm
Jump to navigationJump to search
Line 10: Line 10:
  
 
==Feeds==
 
==Feeds==
**To set up a feed or upload a database you need to set up an "importer" in "Structure->Feeds importer->Add Importer."
+
*To set up a feed or upload a database you need to set up an "importer" in "Structure->Feeds importer->Add Importer."
**You can configure the importer to reimport periodically
+
*You can configure the importer to reimport periodically
**Specify the content type that you want to feed into and map the fields to specify where each column should go.
+
*Specify the content type that you want to feed into and map the fields to specify where each column should go.
**There are several delimiters available including semicolons, tabs and commas regardless of filetype.
+
*There are several delimiters available including semicolons, tabs and commas regardless of filetype.
  
 
==Rewriting Results In Views==
 
==Rewriting Results In Views==

Revision as of 12:21, 9 November 2012


By Zack

Email Sending Webform

node_load

  • node_load function takes the nid and returns the node object, which can be displayed using dsm($node);
  • get nid from GET data

Feeds

  • To set up a feed or upload a database you need to set up an "importer" in "Structure->Feeds importer->Add Importer."
  • You can configure the importer to reimport periodically
  • Specify the content type that you want to feed into and map the fields to specify where each column should go.
  • There are several delimiters available including semicolons, tabs and commas regardless of filetype.

Rewriting Results In Views

  • Turn off linking to node
  • can use tokens such as [title], [body] to link or rewrite
    • review available tokens in replacement patterns

Editing Module

  • Uses hook_form_alter to change redirect and display various options for editing and changing position

Templates

  • Copy from base theme
  • Changing header in branding
    • Image map
  • Clear cache

Profile Styling

  • Style settings in view
    • wrapper and element type
  • global.css
    • page name is in the body class

Calendar

  • View for calendar should be built from template
  • Date Contextual Filter

Gallery

  • Cant use pager
  • HTML list
  • Format slideshow of fields
    • Arrange body below image and hide title
    • Text styled in global.css
  • Global:Randomize sorting

Browser Emulator

http://browserling.com/