Creating a tool

From WormBaseWiki
Revision as of 23:16, 22 July 2013 by Jdmswong (talk | contribs)
Jump to navigationJump to search
Widget Loading
Tool Loading

Lets add a blank tool to WormBase, I shall call you "lineage"

Add it to configuration

In wormbase.conf

  • Search for

 ######################################
 #
 # Tools.
 #
 ###################################### 

  • Add:

 <lineage>
 	title = Cell Lineage
 	display = both
 	display_in_dropdown yes
 </lineage>

under <tools>

Add it to the model

Still in wormbase.conf

  • Find Model::WormBaseAPI/args/tool
  • add lineage directly under tool

Create the controller

  • Create lineage.pm in lib/WormBase/API/Service/tree.pm

Create the view

  • Create lineage directory in root/templates/tools, create index.tt2 template inside.