Re: [twdev] TW5 Plugin Startup Modules Not Loading?

2015-02-18 Thread Felix Küppers
But looking at your previous post it looks like you already had the field module-type correctly set to startup... On 18.02.2015 03:01, yun.zho...@gmail.com wrote: Ok, figured it out. In case anyone else runs into this issue, there needs to be a field called module-type in the tiddler... Should

Re: [twdev] TW5 Plugin Startup Modules Not Loading?

2015-02-18 Thread Tobias Beer
Actually in TW5 you don't need to add a tiddler field module-type, it is automatically recognized when module-type is added as a field in the comments and the plugin's shadow tiddlers are loaded. But if it works for you I guess it is fine then :) That really depends on if you buld it

Re: [twdev] TW5 Plugin Startup Modules Not Loading?

2015-02-18 Thread Felix Küppers
True On 18.02.2015 19:07, Tobias Beer wrote: Actually in TW5 you don't need to add a tiddler field module-type, it is automatically recognized when module-type is added as a field in the comments and the plugin's shadow tiddlers are loaded. But if it works for you I guess

Re: [twdev] TW5 Plugin Startup Modules Not Loading?

2015-02-18 Thread yun . zhou . a
Yes, I am more used to TWC where there is just a title and body area. I had added the 'module-type: startup' in manually as a comment above the main lines of the code but I didn't actually make it a field within the tiddler. On Wednesday, February 18, 2015 at 4:57:06 AM UTC-6, Felix Küppers

Re: [twdev] TW5 Plugin Startup Modules Not Loading?

2015-02-18 Thread Felix Küppers
Hi Yun, Actually in TW5 you don't need to add a tiddler field module-type, it is automatically recognized when module-type is added as a field in the comments and the plugin's shadow tiddlers are loaded. But if it works for you I guess it is fine then :) -Felix On 18.02.2015 15:17,

Re: [twdev] TW5 Plugin Startup Modules Not Loading?

2015-02-17 Thread yun . zhou . a
Ok, figured it out. In case anyone else runs into this issue, there needs to be a field called module-type in the tiddler... Should have guessed that. On Tuesday, February 17, 2015 at 5:09:27 PM UTC-6, yun.z...@gmail.com wrote: Hmmm... so I added it but I'm not seeing a change. Just to be

Re: [twdev] TW5 Plugin Startup Modules Not Loading?

2015-02-17 Thread Felix Küppers
Hi, I think you need to add some more instructions like exports.name = blabla; exports.platforms = [browser]; exports.after = [startup]; exports.before = [rootwidget]; exports.synchronous = true; -felix On 17.02.2015 23:38, yun.zho...@gmail.com wrote: Hello all, I am still very new to TW5

Re: [twdev] TW5 Plugin Startup Modules Not Loading?

2015-02-17 Thread yun . zhou . a
Hmmm... so I added it but I'm not seeing a change. Just to be clear, boot.js is supposed to execute the $tw.wiki.addTiddler on startup in this case right? I don't have to make a reference somewhere else? /*\ title: $:/plugins/name/defineuser/setusername.js type: application/javascript

[twdev] TW5 Plugin Startup Modules Not Loading?

2015-02-17 Thread yun . zhou . a
Hello all, I am still very new to TW5 so this might be an easy question. I am trying to write a plugin that will modify the $:/status/UserName tiddler based on credentials from a server but I can't seem to get the boot.js to load this module? Maybe I just don't understand how startup modules