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

From Stadm
Jump to navigationJump to search
 
(22 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
By Zack
 
By Zack
  
==Rewriting Results In Views==
+
==Email Sending Webform==
*Turn off linking to node
 
*can use tokens such as [title], [body] to link or rewrite
 
**review available tokens in replacement patterns
 
 
 
==Calendar==
 
*View for calendar should be built from template
 
==Webform==
 
*Create content
 
*Using content and before in styling
 
===hook_mod_alter===
 
*check page path with url($_GET['q']);
 
*get_defined_vars
 
*template.php
 
*change ['submitted']...
 
  
 
===node_load===
 
===node_load===
*get nid from url
+
*node_load function takes the nid and returns the node object, which can be displayed using dsm($node);
 +
*get nid from GET data
  
===Sending and receiving NID or other info in URL===
+
==Feeds==
*quicktabs use
+
*To set up a feed or upload a database you need to set up an "importer" in "Structure->Feeds importer->Add Importer."
*% in path
+
*You can configure the importer to reimport periodically
*in the webform settings, you can use %get[nid]
+
*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.
  
==Profile Styling==
+
==Rewriting Results In Views==
*Style settings in view
+
*Configure by clicking on the field in the view configuration.
**wrapper and element type
+
*Turn off linking to node
*global.css
+
*can use tokens such as [title], [body] to link or rewrite
**page name is in the body class
+
**review available tokens in replacement patterns section below the rewriting boxes.
 +
*Add wrappers and classes to fields using the styling rewrite.
  
===Templates===
+
==Editing Module on CCBER and ERI Drupal Sites==
*Copy from base theme
+
*Allows users to edit nodes and content from views that are contained within paneled pages
*Changing header in branding
+
*Uses hook_form_alter to change redirect and create buttons for editing and changing node position
**Image map
 
*Clear cache
 
  
==Views Bulk Operations==
+
==Calendar==
*Checkboxes to select nodes
+
*To create a calendar view you need to create it from the template.
*More options (delete)
+
*Use contextual filter date
 
 
==Contextual Filters==
 
*% in path
 
*By NID
 
*Validation Criteria
 
**Validator -- content or taxonomy term
 
*Chose content type
 
 
 
==Feeds==
 
*Creating importer
 
**Periodic Import
 
**Content Type
 
**Mapping
 
*Import
 
  
 
==Gallery==
 
==Gallery==
Line 61: Line 34:
 
*HTML list
 
*HTML list
 
*Format slideshow of fields
 
*Format slideshow of fields
 +
**Arrange body below image and hide title
 +
**Text styled in global.css
 +
*Global:Randomize sorting
 +
 +
==Browser Emulator==
 +
http://browserling.com/

Latest revision as of 11:26, 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

  • Configure by clicking on the field in the view configuration.
  • Turn off linking to node
  • can use tokens such as [title], [body] to link or rewrite
    • review available tokens in replacement patterns section below the rewriting boxes.
  • Add wrappers and classes to fields using the styling rewrite.

Editing Module on CCBER and ERI Drupal Sites

  • Allows users to edit nodes and content from views that are contained within paneled pages
  • Uses hook_form_alter to change redirect and create buttons for editing and changing node position

Calendar

  • To create a calendar view you need to create it from the template.
  • Use contextual filter date

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/