Open in TheBrain

Embedding a Wiki

<p><b>Note</b>: This information is condensed from a forum topic of the <a href="http://forums.thebrain.com/post?id=2015054" rel="nofollow">same name</a>. All credit for this information goes to&nbsp;<b>JosefBetancourt</b>.</p>

<div>

</div>

<div>

<h3>Introduction</h3>

<div>Wikis can be powerful resources.&nbsp;&nbsp; As an experiment I wanted to test one method of embedding a wiki into PB4.&nbsp; Embedding here means having&nbsp; a thought open an editable wiki within the Brain (the wiki is in the Brain, not another server).</div>

<div><br />

Which wiki?&nbsp;&nbsp; There is a type of wiki that does not need a server.&nbsp; These fit into the category called "<a href="http://en.wikipedia.org/wiki/Single_page_application" rel="nofollow" >single page application</a>" (SPA).&nbsp;&nbsp; One of the best is called&nbsp;<a href="http://www.tiddlywiki.com/" rel="nofollow" >TiddlyWiki</a>.&nbsp; See its wikimedia entry&nbsp;<a href="http://en.wikipedia.org/wiki/Tiddlywiki" rel="nofollow" >here</a>. An alternative, for smaller size, is&nbsp;<a href="http://tinytiddly.lewcid.org/" rel="nofollow" >TinyTiddly</a>.<br />

<br />

<h4>Process</h4>

<ol>

<li>Download a blank version of TiddlyWiki page.&nbsp; I attached a wiki I'm starting on buying a used car, so its essentially blank, like my bank account.</li>

<li>Import it into Brain at a thought.&nbsp; I did this with a control-drag&drop.</li>

<li>Click on the thought to open the wiki.&nbsp; In options menu of wiki turn off "save backups", or the Brain's thought will start showing these as attachments.</li>

</ol>

Thats it.&nbsp;&nbsp; Now when you activate that thought the wiki opens.&nbsp; when you save the wiki changes, they go back into the Brain.

<h4>Advantages</h4>

Rich easy to learn wiki language for editing.&nbsp; Hypermedia within a page.&nbsp; This gives the Brain another degree of freedom or axis.&nbsp; An alternative to the built-in editor.</div>

<div><br />

</div>

<h3>Using as Content Template</h3>

<div>I had a another idea about this.&nbsp; Use wiki instance as a content Template.&nbsp; This would allow the ability to create wikis for/on any thought.&nbsp; Hard to describe so I attached a screen shot of the wiki opened in the browser after activating a wikified thought.<br />

<br />

I created another revision of the wiki template that has more info on how to use.&nbsp; Attached.<br />

<br />

<h4>Setup</h4>

<ol>

<li>Download the attached file.&nbsp; Rename it to have an html extension.</li>

<li>On a thought in the Brain, preferably you created a TiddlyWiki thought, but does not matter.</li>

<li>On the thought right click and open the 'Properties & Attachments' menu.</li>

<li>Click 'Add Attachment'</li>

<li>Click Templates button.</li>

<li>Now copy the file from step one above into the templates folder that is shown in step 5.&nbsp; Mine was 'C:\Documents and Settings\betancourtj\Application Data\PersonalBrain\templates'</li>

<li>Close the attachment dialoge.</li>

<li>Done.</li>

</ol>

<h4><b>How to use</b></h4>

When at a thought and the Attachment dialog is opened via right-click or thought activation, select the wiki template as content.&nbsp; The browser will open the wiki page.&nbsp; Be sure to save changes.</div>

<div><br />

</div>

<div><img brain="false" src="http://forums.thebrain.com/file?id=382091" alt="Name: wikiScreenShot.PNG, Views: 1624, Size: 92.95 KB" /></div>

<div><br />

</div>

<div><a href="http://forums.thebrain.com/file?id=382085" rel="nofollow">Tiddlywiki Template found here</a></div>

<div>

</div>

<h3>Linking from a Thought to a specific Tiddler</h3>

<div>In TiddlyWiki an entry or a "MicroContent" is called a Tiddler.&nbsp; So, this sounds like a Thought.&nbsp; It would be interesting to be able to link from a Thought to a specific Tiddler.&nbsp;&nbsp;<a href="http://groups.google.com/group/TiddlyWiki/browse_thread/thread/4cdbceae1f7f3613/a2a44389e3b61174?lnk=gst&q=url&rnum=2#a2a44389e3b61174" rel="nofollow" >There is</a>.

In a wiki page, on a specific Tiddler, you can click on the context menu's "more" and see more actions.&nbsp; One of these is 'permalink'.&nbsp; Click on this and in the browser address bar the url is updated with the url required, example:

<i>file:///C:/data/brains/brains4/TestBrain2_brain/Files/74231991-1325-8376-9F3B-B10B2EA33BAE/TestWikiTemplateUse.html#%5B%5BPersonalBrain%20Notes%5D%5D</i>

This url works in browser, pasting the above url into the browser will open the wiki page to that Tiddler. But, will not work when put as attachment into any Thought.</div>

</div>

<p>&nbsp;</p>