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

From Stadm
Jump to navigationJump to search
Line 13: Line 13:
 
===node_load===
 
===node_load===
 
*get nid from url
 
*get nid from url
 
===Sending and receiving NID or other info in URL===
 
*quicktabs use
 
*% in path
 
*in the webform settings, you can use %get[nid]
 
 
==Views Bulk Operations==
 
*Checkboxes to select nodes
 
*More options (delete)
 
  
 
==Feeds==
 
==Feeds==
Line 38: Line 29:
 
==Editing Module==
 
==Editing Module==
 
*Uses hook_form_alter to change redirect and display various options for editing and changing position
 
*Uses hook_form_alter to change redirect and display various options for editing and changing position
 
==Contextual Filters==
 
*% in path
 
*By NID
 
*Validation Criteria
 
**Validator -- content or taxonomy term
 
*Chose content type
 
  
 
===Templates===
 
===Templates===

Revision as of 11:23, 5 October 2012


By Zack

Email Sending Webform

hook_form_alter

  • check page path with url($_GET['q']);
  • dsm();
  • can be inside template.php
  • change ['submitted']...

node_load

  • get nid from url

Feeds

  • Creating importer
    • Periodic Import
    • Content Type
    • Mapping
  • Import
    • delimiters

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/