Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@studgeek
Created May 23, 2012 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save studgeek/2775504 to your computer and use it in GitHub Desktop.
Save studgeek/2775504 to your computer and use it in GitHub Desktop.
Natura Bonsai export template for InfoQube
[OPTIONS]
EXTENSION=txt
MARKUP=XML
[HEADER]
<?xml version="1.0" encoding="utf-8" ?>
<!--
Natura Bonsai export template for InfoQube
Author: David Rees (@studgeek)
See Gist for latest version: https://gist.github.com/2775504
It generates an XML file that can be pasted into InfoQube. It uses the paste XML format
because it supports dates and other aspects that InfoQube OPML/URp import does not.
-- INSTALL
Simply place file in Bonsai's program directory (e.g. C:\Program Files\Natara\Bonsai).
-- USAGE
- In Bonsai choose File>>Export>>InfoQubePaste
- Choose where you want to save the file
- Click Yes when asked if you want to save the file
- Copy all the text in the file
- In InfoQube choose the Grid you want the items in and paste
-- NOTES
If you want all the items in the grid don't forget to add the grid name to "Auto assign the following fields" in the settings of the grid you are pasting into.
Since InfoQube supports custom fields you may need to change the field mappings below or create the fields in InfoQube. Simply make sure that each FieldName attribute matches the field name in InfoQube.
To ask questions about this script or suggest changes see
http://www.sqlnotes.net/drupal5/index.php?q=node/2646
For more background on Bonsai templates and what fields you can export see
http://www.natara.com/bonsai/BonsaiUserManual.pdf
For more background on InfoQube's paste XML format (as I have reverse engineered it) see TBD.
To see an Bonsai export template for UltraRecall see https://gist.github.com/2220870
-->
<Root Source="InfoQube" Version="0.9.25" ItemCopyXML="1" XMLCopyVersion="1.00" >
<Items>
[ITEM_BEGIN]
<Item Name="#TEXT#" >
<Field FieldName="PriInt">#PRIORITY#</Field>
<Field FieldName="StartDate">#START_DATE#</Field>
<Field FieldName="DueDate">#DUE_DATE#</Field>
<Field FieldName="Done">#COMPLETED_DATE#</Field>
<Field FieldName="ItemHTML">#NOTE#</Field>
<Items>
[ITEM_END]
</Items>
</Item>
[FOOTER]
</Items>
</Root>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment