Hi Danielo

"default-tiddlers-location" is currently only used for writing newly
created tiddlers; tiddlers aren't automatically read from it during
startup. Wikis imported via importWikis should get your modified title
handling though, are you sure that they are not?

Best wishes

Jeremy




On Wed, Jan 28, 2015 at 9:00 PM, Danielo Rodríguez <rdani...@gmail.com>
wrote:

>
>>> Tiddlers without a title are rejected here, deep in wiki.addTiddler:
>>
>> https://github.com/Jermolene/TiddlyWiki5/blob/master/boot/boot.js#L855
>>
>> OK, as I supposed. Thank you very much for confirming it.
>
>
>
>> I think the logical place to handle this is within loadTiddlersFromFile.
>>
>
>
> I succesfuly edited the boot to achieve this this way
>
> if(ext !== ".json" && tiddlers.length === 1 ) {
> metadata = fs.existsSync(metafile) ? fs.readFileSync(metafile,"utf8") :
> undefined ;
> if(metadata) {
> tiddlers = [$tw.utils.parseFields(metadata,tiddlers[0])];
> } else if( !tiddlers[0].title ){
> console.log("Tiddler without title: ",JSON.stringify(tiddlers), filepath );
> tiddlers[0].title = filepath.replace(/(.*[\/\\])+/,"");
> }
> }
>
>  But this does not seems to apply for the files that are located at
> "unnoficial folders" such as those specified by "default-tiddlers-location"
>  neither for files located at other wikis that you import via importWikis.
> Are those files managed in a different way?
>



-- 
Jeremy Ruston
mailto:jeremy.rus...@gmail.com

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to