Download pptx - eComma

Transcript
Page 1: eComma

eComma drupal moduleCurrently available for drupal 6

Nathalie Steinfeld Childre COERLL

University of Texas at Austin

Page 2: eComma

http://www.quitano.com/article/learn-drupal

Page 3: eComma

MODULE DEPENDENCIES• cck• panels • page_manager• taxonomy • community_tags• Tagadelic• comment_delete• views_bonus_export• og (organic groups)• userplus

Page 5: eComma

ECOMMA RENDERED TEXT DISPLAY

Page 6: eComma

JAVASCRIPT TEXT RANGES

ecomma.js

$(".ecomma_line").mouseup(function() {if (window.getSelection){

sel = window.getSelection();text = window.getSelection().toString();

}else{

// IE.sel = document.selection.createRange();text = document.selection.createRange().toString();

}

if (sel.getRangeAt){range = sel.getRangeAt(0);

}else if (document.createRange){// Safari.range = document.createRange();range.setStart(sel.anchorNode, sel.anchorOffset);range.setEnd(sel.focusNode, sel.focusOffset);

}else{ie = true;

}

Page 7: eComma

RENDERED ECOMMA TEXT

HTML code of displayed rendered eComma text output from ecomma.module

Page 8: eComma

RENDERED ECOMMA TEXT

HTML code of displayed rendered eComma text output from ecomma.module

Page 9: eComma

RENDERED ECOMMA TEXT

HTML code of displayed rendered eComma text output from ecomma.module

Page 10: eComma

http://uberhumor.com

Page 11: eComma

PANEL DISPLAY

Page 12: eComma

PAGE MANAGER

Page 13: eComma

PANEL

Page 14: eComma

CUSTOM PANEL TEMPLATES & LAYOUTS

eomma.module

function ecomma_ctools_plugin_directory($module, $plugin) { return "includes/plugin/$plugin";}

Page 15: eComma

CUSTOM PANEL BLOCKS

Word Cloud with highlight links

Page 16: eComma

CUSTOM PANEL BLOCKS

Comment display panel with highlight buttons

Comment delete module

views_bonus_exportmodule

Page 17: eComma

CUSTOM PANEL BLOCKS

Comment display panel with highlight buttons

Views_bonus_export:• Export xml • Display views feed in google

spreadsheet

Page 18: eComma

CUSTOM PANEL BLOCKS

Tag display with highlight button and links (green on hover)

Page 19: eComma

CUSTOM PANEL BLOCKS

Annotation input draggable dialogue window

Page 20: eComma

CUSTOM PANEL BLOCKS

Comment Cloud

ecomma.moduleJQuery plugindrupal_add_js(drupal_get_path('module', 'ecomma') .'/js/jimpl_cloud.js');

Page 21: eComma

CUSTOM PANEL BLOCKS

User Annotation list and (totals)

Page 22: eComma

COLLABORATIVE TEXTS FOR CLASSES WITH OG

Organic Groups

Group

Node

Page 23: eComma

SUPERUSER MODULE

Page 24: eComma

DRUPAL DB TABLES CREATED ON INSTALLecomma_range

Page 25: eComma

DRUPAL DB TABLES CREATED ON INSTALLEcomma_field_enabled

Page 26: eComma

DRUPAL ECOMMA VOCABULARY ON INSTALL

ecomma.install

$vid_existing = db_result(db_query("SELECT vid FROM {vocabulary} WHERE name='ecomma'"));

if(!$vid_existing):$vocab = array(

'name' => 'ecomma','description' => $t('To use with

ecomma.'),'help' => 0,'relations' => 0,'hierarchy' => 0,'multiple' => 0,'required' => 0,'tags' => 1,'module' => 'taxonomy','weight' => 0,'nodes' => array('ecomma_node' =>

'ecomma_node'),);

Page 27: eComma

CCK TEXT FIELD IN ECOMMA CONTENT TYPE

Page 28: eComma

HOOK_MENU WITH AJAX

function ecomma_menu() {

$items['tag_range/%/%/%/%'] = array( 'title' => 'Annotation range', 'description' => 'Insert term annotation data.', 'page callback' => 'ecomma_tag_range_function', 'page arguments' => array(1,2,3,4), 'access arguments' => array('access content'), 'type' => MENU_CALLBACK, );

Page 29: eComma
Page 30: eComma
Page 31: eComma
Page 32: eComma
Page 33: eComma

[email protected]

[email protected]

http://www.coerll.utexas.edu

http://sites.la.utexas.edu/ecomma

http://www.coerll.utexas.edu/coerll/projects/ecomma

http://www.coerll.utexas.edu/ecomma

Photo: NASA/Bill Ingalls