|
List Info
Thread: Passing current tiddler information while creating a new tiddler
|
|
| Passing current tiddler information
while creating a new tiddler |

|
2007-12-27 02:04:25 |
Hello,
I am trying to create a tiddler from another tiddler. This
is how I am
doing it. For eg,
<<newTiddler label:"new input"
title:"Input Title" tag:"input">>
This works fine. However, instead of hardcoding the title as
"Input
Title", I would like to prepend with current tiddler's
title.
How could I achieve that?
Thanks for your time.
Sanjib
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "TiddlyWiki" group.
To post to this group, send email to TiddlyWiki googlegroups.com
To unsubscribe from this group, send email to
TiddlyWiki-unsubscribe googlegroups.com
For more options, visit this group at http:
//groups.google.com/group/TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: Passing current tiddler information
while creating a new tiddler |
  Germany |
2007-12-27 02:45:55 |
> This works fine. However, instead of hardcoding the
title as "Input
> Title", I would like to prepend with current
tiddler's title.
The NewHerePlugin* kinda does this; it adds the originating
tiddler's
title as a tag to the new tiddler.
It's quite easy to change that from adding a tag to adding a
prefix to
the title - which is what I did, creating the
NewFromHereMacro:
http:/
/devpad.tiddlyspot.com/#NewFromHereMacro
In order to add this macro to the tiddler toolbar, find the
following
line in the (default) ViewTemplate shadow tiddler:
---------------
<div class='toolbar' macro='toolbar closeTiddler
closeOthers
+editTiddler > fields syncing permalink references
jump'></div>
---------------
Then add a new element to include this macro:
---------------
<div class='toolbar' macro='toolbar closeTiddler
closeOthers
+editTiddler > fields syncing permalink references
jump'>
<div style='float: right;'
macro='newFromHere'></div>
</div>
---------------
(Instead of using the style parameter there, you could also
add a class
using the respective parameter and style it via your
StyleSheet.)
HTH.
-- F.
* http://mptw
.tiddlyspot.com/#NewHerePlugin
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "TiddlyWiki" group.
To post to this group, send email to TiddlyWiki googlegroups.com
To unsubscribe from this group, send email to
TiddlyWiki-unsubscribe googlegroups.com
For more options, visit this group at http:
//groups.google.com/group/TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: Passing current tiddler information
while creating a new tiddler |
  Germany |
2007-12-27 02:54:02 |
> <div style='float: right;'
macro='newFromHere'></div>
I forgot; you can also add parameters to customize the
appearance and/or
behavior of the resulting button.
For example, the following line will give the newly-created
toolbar
button the label "foo":
---------------
<div style='float: right;' macro='newFromHere
label:"foo"'></div>
---------------
As described in the Usage section of the plugin's
documentation, you can
use any parameter of the core NewTiddlerMacro:
http://www
.tiddlywiki.com/#NewTiddlerMacro
-- F.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "TiddlyWiki" group.
To post to this group, send email to TiddlyWiki googlegroups.com
To unsubscribe from this group, send email to
TiddlyWiki-unsubscribe googlegroups.com
For more options, visit this group at http:
//groups.google.com/group/TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: Passing current tiddler information
while creating a new tiddler |

|
2007-12-28 08:17:19 |
Excellent! Thanks so much.
Sanjib
On Dec 27, 1:54 pm, FND <Ace_No... gmx.net> wrote:
> > <div style='float: right;'
macro='newFromHere'></div>
>
> I forgot; you can also add parameters to customize the
appearance and/or
> behavior of the resulting button.
> For example, the following line will give the
newly-created toolbar
> button the label "foo":
> ---------------
> <div style='float: right;' macro='newFromHere
label:"foo"'></div>
> ---------------
> As described in the Usage section of the plugin's
documentation, you can
> use any parameter of the core NewTiddlerMacro:
> http://www
.tiddlywiki.com/#NewTiddlerMacro
>
> -- F.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "TiddlyWiki" group.
To post to this group, send email to TiddlyWiki googlegroups.com
To unsubscribe from this group, send email to
TiddlyWiki-unsubscribe googlegroups.com
For more options, visit this group at http:
//groups.google.com/group/TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
[1-4]
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|