Hi Mark

> Starting with the naming convention, why is this field called 
> "_canonical_uri" and not something friendlier and easier to type like 
> "imagepath" ? 

The field was first introduced in TiddlyWeb, and then adopted by TiddlyWiki5. 
It’s accidental that it has a unique naming convention, but not necessarily 
inappropriate in a way. The core logic to support the _canonical_uri field is 
much more deeply intertwined that any other field apart from the title and text 
fields.

> It seems to me that the _canonical_uri field and image works OK once you have 
> it set up. The problem for Windows people is figuring out how the browser 
> wants path to files that are not subdirectories of the TW.
> 
> The first actual problem is that node.js doesn't serve up images. Suddenly 
> everything gets messy and you end up with long paths to images on a different 
> server address that may have to change whenever the computer reboots.

I agree that some limited static file serving facilities would be useful. 
There’s a ticket here:

https://github.com/Jermolene/TiddlyWiki5/issues/1148

> The second problem is that there is no way to simply set a base address for 
> all _canonical_uri images. Instead, you have to overwrite the _canonical_uri 
> field of all the images every time you change servers, convert to 
> stand-alone, or move the images. If there was a way to set a base address, 
> then a user could simply change a configuration tiddler to point to the new 
> base, and all the images would be available without having to write new 
> paths. 

Tobias has made a proposal for one approach to doing this:

https://github.com/Jermolene/TiddlyWiki5/issues/2016

> Thinking about it more, it would be good if different sets of tiddlers could 
> reference different base paths. So the image tiddlers might have an 
> additional field "imageconfig" that would specify the name of the tiddler 
> containing the base path for the tiddler.

Yes, Tobias’ approach calls it a “route”.

> 
> This would solve another problem. Currently, if you want to use the 
> externalizing process, all the files will end up in one directory. But 
> someone like Edward, with 300 images, is likely to want to move them into 
> sub-directories. Currently each image in a subdirectory would  need the 
> relative path added to its title. So instead of "My_Little_Ponies", you end 
> up with "XYZ201510/My_Little_Ponies". Not quite as friendly. You could of 
> course have a _canonical_uri that points to a different place without 
> changing the tiddler title, but then you could never run the external process 
> without overwriting the custom _canonical_uri fields.

Good point,

Best wishes

Jeremy

> 
> Thanks!
> Mark
> 
> 
> 
> 
> On Tuesday, October 13, 2015 at 2:27:42 AM UTC-7, Jeremy Ruston wrote:
> Hi Tobias
> 
>> The current `_canonical_uri` method appears a bit problematic in more than 
>> one way,
>> starting with the naming convention for that field.
>> Perhaps it's not the worst idea to deprecate this field and how it works 
>> today.
> 
> Correct me if I’m wrong, but doesn't all of the confusion around the 
> _canonical_uri field stem from the limitations imposed by browsers? In all of 
> the discussion I don’t think there’s been any proposals for anything that we 
> could do differently that would meaningfully impact the limitations.
> 
> Best wishes
> 
> Jeremy.
> 
> 
>> 
>> Best wishes,
>> 
>> — tb
>> 
>> -- 
>> 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+...@ <>googlegroups.com <http://googlegroups.com/>.
>> To post to this group, send email to tiddl...@ <>googlegroups.com 
>> <http://googlegroups.com/>.
>> Visit this group at http://groups.google.com/group/tiddlywiki 
>> <http://groups.google.com/group/tiddlywiki>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/tiddlywiki/571e911c-023a-4783-ba16-be170d2986f2%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/tiddlywiki/571e911c-023a-4783-ba16-be170d2986f2%40googlegroups.com?utm_medium=email&utm_source=footer>.
>> For more options, visit https://groups.google.com/d/optout 
>> <https://groups.google.com/d/optout>.
> 
> 
> -- 
> 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 [email protected] 
> <mailto:[email protected]>.
> To post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at http://groups.google.com/group/tiddlywiki 
> <http://groups.google.com/group/tiddlywiki>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/d87c1e87-e221-4795-95e6-30e8e22f2d0b%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/tiddlywiki/d87c1e87-e221-4795-95e6-30e8e22f2d0b%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/D4184F40-801C-43A5-AFBB-23B1CB7F6E48%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to