[tw5] Re: Question about changing filename for static exports

2019-06-16 Thread David Gifford
YES Thanks Mark!

On Saturday, June 15, 2019 at 8:08:01 AM UTC-5, Mark S. wrote:
>
> Maybe baseFilename={{!!caption}}  ??
>
> On Saturday, June 15, 2019 at 5:40:33 AM UTC-7, David Gifford wrote:
>>
>> This is all helpful, thank you Tony and Mark.
>>
>> Mark's snippet means changing the file name every time. What I am looking 
>> for is a way to set the filenames of each tiddler by entering it into its 
>> caption field upon creation of the tiddler. That way every time I update 
>> and export the tiddler I don't have to remember what filename I gave it. It 
>> just exports to that filename automatically. So I am looking at tweaking 
>> $:/core/ui/Buttons/export-tiddler from 
>>
>> baseFilename=<> 
>>
>> to something like 
>>
>> baseFilename=<> 
>>
>> but I don't know how to write it.
>>
>> Dave
>>
>>
>>
>> On Friday, June 14, 2019 at 6:34:46 PM UTC-5, Mark S. wrote:
>>>
>>> Using Tony's helpful research, you can create a tiddler with the 
>>> following contents:
>>>
>>> <$edit-text tiddler="baseFilename" tag="input" size="20"/>
>>> <$macrocall $name="exportButton" exportFilter={{$:/temp/advancedsearch}} 
>>> lingoBase="$:/language/Buttons/ExportTiddlers/" 
>>> baseFilename={{baseFilename}}/>
>>>
>>> This gives you an input where you can specify the name of your export 
>>> file.
>>>
>>> Whatever filter you have in the advanced search will be used for the 
>>> download/export.
>>>
>>>
>>>
>>> On Friday, June 14, 2019 at 4:02:11 PM UTC-7, TonyM wrote:

 Hi David,

 I do not have time for a full answer, but so you can keep moving


- The system tag $:/tags/Exporter marks the exporters so {{
$:/tags/Exporter||$:/core/ui/TagTemplate}} is a tag pill which you 
can use to see them all
- Then read these exporters, you will note each works differently 
but typically uses a macro or template to generate what is exported
- Follow the path to see how each works, you may need to create a 
new template or macro
- The json exporter refers to jsontiddlers macro but its not well 
documented but simply generates the json file.
- The Export Button is $:/core/ui/Buttons/export-tiddler which 
call's the macro "exportButton" and exportButtonFilename defined 
in $:/core/macros/export
- Ultimately this macro is called with $param containing current 
tiddler and see "filename=" this is where you could modify it

 <$action-sendmessage $message="tm-download-file" $param=<
 > exportFilter="""$exportFilter$""" filename=<
 >/>

 Perhaps you make your own version of the above inside a button that is 
 tagged $:/tags/ViewToolbar

 I am off to "the bush" have a nice weekend.

 Regards
 Tony


 On Friday, June 14, 2019 at 10:09:46 PM UTC+10, David Gifford wrote:
>
> Bump. Two days and not a peep.
>
> On Wednesday, June 12, 2019 at 9:06:52 AM UTC-5, David Gifford wrote:
>>
>> Hi all
>>
>> Is there a way to tweak TiddlyWiki so that when exporting a tiddler 
>> it grabs a different field, say, a 'filename' field, instead of the 
>> title 
>> field, for the name of the file that is created in the export process?
>>
>

-- 
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/c47e233f-a4e5-4503-8ce6-15b0e4b0c306%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Question about changing filename for static exports

2019-06-15 Thread 'Mark S.' via TiddlyWiki
Maybe baseFilename={{!!caption}}  ??

On Saturday, June 15, 2019 at 5:40:33 AM UTC-7, David Gifford wrote:
>
> This is all helpful, thank you Tony and Mark.
>
> Mark's snippet means changing the file name every time. What I am looking 
> for is a way to set the filenames of each tiddler by entering it into its 
> caption field upon creation of the tiddler. That way every time I update 
> and export the tiddler I don't have to remember what filename I gave it. It 
> just exports to that filename automatically. So I am looking at tweaking 
> $:/core/ui/Buttons/export-tiddler from 
>
> baseFilename=<> 
>
> to something like 
>
> baseFilename=<> 
>
> but I don't know how to write it.
>
> Dave
>
>
>
> On Friday, June 14, 2019 at 6:34:46 PM UTC-5, Mark S. wrote:
>>
>> Using Tony's helpful research, you can create a tiddler with the 
>> following contents:
>>
>> <$edit-text tiddler="baseFilename" tag="input" size="20"/>
>> <$macrocall $name="exportButton" exportFilter={{$:/temp/advancedsearch}} 
>> lingoBase="$:/language/Buttons/ExportTiddlers/" 
>> baseFilename={{baseFilename}}/>
>>
>> This gives you an input where you can specify the name of your export 
>> file.
>>
>> Whatever filter you have in the advanced search will be used for the 
>> download/export.
>>
>>
>>
>> On Friday, June 14, 2019 at 4:02:11 PM UTC-7, TonyM wrote:
>>>
>>> Hi David,
>>>
>>> I do not have time for a full answer, but so you can keep moving
>>>
>>>
>>>- The system tag $:/tags/Exporter marks the exporters so {{
>>>$:/tags/Exporter||$:/core/ui/TagTemplate}} is a tag pill which you 
>>>can use to see them all
>>>- Then read these exporters, you will note each works differently 
>>>but typically uses a macro or template to generate what is exported
>>>- Follow the path to see how each works, you may need to create a 
>>>new template or macro
>>>- The json exporter refers to jsontiddlers macro but its not well 
>>>documented but simply generates the json file.
>>>- The Export Button is $:/core/ui/Buttons/export-tiddler which 
>>>call's the macro "exportButton" and exportButtonFilename defined 
>>>in $:/core/macros/export
>>>- Ultimately this macro is called with $param containing current 
>>>tiddler and see "filename=" this is where you could modify it
>>>
>>> <$action-sendmessage $message="tm-download-file" $param=<
>>> > exportFilter="""$exportFilter$""" filename=<
>>> >/>
>>>
>>> Perhaps you make your own version of the above inside a button that is 
>>> tagged $:/tags/ViewToolbar
>>>
>>> I am off to "the bush" have a nice weekend.
>>>
>>> Regards
>>> Tony
>>>
>>>
>>> On Friday, June 14, 2019 at 10:09:46 PM UTC+10, David Gifford wrote:

 Bump. Two days and not a peep.

 On Wednesday, June 12, 2019 at 9:06:52 AM UTC-5, David Gifford wrote:
>
> Hi all
>
> Is there a way to tweak TiddlyWiki so that when exporting a tiddler it 
> grabs a different field, say, a 'filename' field, instead of the title 
> field, for the name of the file that is created in the export process?
>


-- 
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/70d444a6-b5a6-4d3a-b82c-44aba38749f0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Question about changing filename for static exports

2019-06-15 Thread David Gifford
This is all helpful, thank you Tony and Mark.

Mark's snippet means changing the file name every time. What I am looking 
for is a way to set the filenames of each tiddler by entering it into its 
caption field upon creation of the tiddler. That way every time I update 
and export the tiddler I don't have to remember what filename I gave it. It 
just exports to that filename automatically. So I am looking at tweaking 
$:/core/ui/Buttons/export-tiddler from 

baseFilename=<> 

to something like 

baseFilename=<> 

but I don't know how to write it.

Dave



On Friday, June 14, 2019 at 6:34:46 PM UTC-5, Mark S. wrote:
>
> Using Tony's helpful research, you can create a tiddler with the following 
> contents:
>
> <$edit-text tiddler="baseFilename" tag="input" size="20"/>
> <$macrocall $name="exportButton" exportFilter={{$:/temp/advancedsearch}} 
> lingoBase="$:/language/Buttons/ExportTiddlers/" 
> baseFilename={{baseFilename}}/>
>
> This gives you an input where you can specify the name of your export file.
>
> Whatever filter you have in the advanced search will be used for the 
> download/export.
>
>
>
> On Friday, June 14, 2019 at 4:02:11 PM UTC-7, TonyM wrote:
>>
>> Hi David,
>>
>> I do not have time for a full answer, but so you can keep moving
>>
>>
>>- The system tag $:/tags/Exporter marks the exporters so {{
>>$:/tags/Exporter||$:/core/ui/TagTemplate}} is a tag pill which you 
>>can use to see them all
>>- Then read these exporters, you will note each works differently but 
>>typically uses a macro or template to generate what is exported
>>- Follow the path to see how each works, you may need to create a new 
>>template or macro
>>- The json exporter refers to jsontiddlers macro but its not well 
>>documented but simply generates the json file.
>>- The Export Button is $:/core/ui/Buttons/export-tiddler which call's 
>>the macro "exportButton" and exportButtonFilename defined 
>>in $:/core/macros/export
>>- Ultimately this macro is called with $param containing current 
>>tiddler and see "filename=" this is where you could modify it
>>
>> <$action-sendmessage $message="tm-download-file" $param=<> 
>> exportFilter="""$exportFilter$""" filename=<> """$baseFilename$""">>/>
>>
>> Perhaps you make your own version of the above inside a button that is 
>> tagged $:/tags/ViewToolbar
>>
>> I am off to "the bush" have a nice weekend.
>>
>> Regards
>> Tony
>>
>>
>> On Friday, June 14, 2019 at 10:09:46 PM UTC+10, David Gifford wrote:
>>>
>>> Bump. Two days and not a peep.
>>>
>>> On Wednesday, June 12, 2019 at 9:06:52 AM UTC-5, David Gifford wrote:

 Hi all

 Is there a way to tweak TiddlyWiki so that when exporting a tiddler it 
 grabs a different field, say, a 'filename' field, instead of the title 
 field, for the name of the file that is created in the export process?

>>>

-- 
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/813662b6-8c33-4fd6-b327-b458e368efd4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Question about changing filename for static exports

2019-06-14 Thread 'Mark S.' via TiddlyWiki
Using Tony's helpful research, you can create a tiddler with the following 
contents:

<$edit-text tiddler="baseFilename" tag="input" size="20"/>
<$macrocall $name="exportButton" exportFilter={{$:/temp/advancedsearch}} 
lingoBase="$:/language/Buttons/ExportTiddlers/" 
baseFilename={{baseFilename}}/>

This gives you an input where you can specify the name of your export file.

Whatever filter you have in the advanced search will be used for the 
download/export.



On Friday, June 14, 2019 at 4:02:11 PM UTC-7, TonyM wrote:
>
> Hi David,
>
> I do not have time for a full answer, but so you can keep moving
>
>
>- The system tag $:/tags/Exporter marks the exporters so {{
>$:/tags/Exporter||$:/core/ui/TagTemplate}} is a tag pill which you can 
>use to see them all
>- Then read these exporters, you will note each works differently but 
>typically uses a macro or template to generate what is exported
>- Follow the path to see how each works, you may need to create a new 
>template or macro
>- The json exporter refers to jsontiddlers macro but its not well 
>documented but simply generates the json file.
>- The Export Button is $:/core/ui/Buttons/export-tiddler which call's 
>the macro "exportButton" and exportButtonFilename defined 
>in $:/core/macros/export
>- Ultimately this macro is called with $param containing current 
>tiddler and see "filename=" this is where you could modify it
>
> <$action-sendmessage $message="tm-download-file" $param=<> 
> exportFilter="""$exportFilter$""" filename=< """$baseFilename$""">>/>
>
> Perhaps you make your own version of the above inside a button that is 
> tagged $:/tags/ViewToolbar
>
> I am off to "the bush" have a nice weekend.
>
> Regards
> Tony
>
>
> On Friday, June 14, 2019 at 10:09:46 PM UTC+10, David Gifford wrote:
>>
>> Bump. Two days and not a peep.
>>
>> On Wednesday, June 12, 2019 at 9:06:52 AM UTC-5, David Gifford wrote:
>>>
>>> Hi all
>>>
>>> Is there a way to tweak TiddlyWiki so that when exporting a tiddler it 
>>> grabs a different field, say, a 'filename' field, instead of the title 
>>> field, for the name of the file that is created in the export process?
>>>
>>

-- 
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/85b4ad10-b500-4824-bd63-a0a2b0dc52ee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Question about changing filename for static exports

2019-06-14 Thread TonyM
Hi David,

I do not have time for a full answer, but so you can keep moving


   - The system tag $:/tags/Exporter marks the exporters so {{
   $:/tags/Exporter||$:/core/ui/TagTemplate}} is a tag pill which you can 
   use to see them all
   - Then read these exporters, you will note each works differently but 
   typically uses a macro or template to generate what is exported
   - Follow the path to see how each works, you may need to create a new 
   template or macro
   - The json exporter refers to jsontiddlers macro but its not well 
   documented but simply generates the json file.
   - The Export Button is $:/core/ui/Buttons/export-tiddler which call's 
   the macro "exportButton" and exportButtonFilename defined 
   in $:/core/macros/export
   - Ultimately this macro is called with $param containing current tiddler 
   and see "filename=" this is where you could modify it

<$action-sendmessage $message="tm-download-file" $param=<> 
exportFilter="""$exportFilter$""" filename=<>/>

Perhaps you make your own version of the above inside a button that is 
tagged $:/tags/ViewToolbar

I am off to "the bush" have a nice weekend.

Regards
Tony


On Friday, June 14, 2019 at 10:09:46 PM UTC+10, David Gifford wrote:
>
> Bump. Two days and not a peep.
>
> On Wednesday, June 12, 2019 at 9:06:52 AM UTC-5, David Gifford wrote:
>>
>> Hi all
>>
>> Is there a way to tweak TiddlyWiki so that when exporting a tiddler it 
>> grabs a different field, say, a 'filename' field, instead of the title 
>> field, for the name of the file that is created in the export process?
>>
>

-- 
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/2753095b-dad4-432c-8564-09cc0a1184df%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Question about changing filename for static exports

2019-06-14 Thread David Gifford
Bump. Two days and not a peep.

On Wednesday, June 12, 2019 at 9:06:52 AM UTC-5, David Gifford wrote:
>
> Hi all
>
> Is there a way to tweak TiddlyWiki so that when exporting a tiddler it 
> grabs a different field, say, a 'filename' field, instead of the title 
> field, for the name of the file that is created in the export process?
>

-- 
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/c98a4da2-0582-4b85-b350-7778df97afa1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.