Hi Danielo On Thu, Oct 30, 2014 at 11:37 AM, Danielo Rodríguez <[email protected]> wrote:
> > <$fieldmangler tiddler="nabo"> > <$linkcatcher message="tm-add-field" param="otherField"> > <$linkcatcher set="nabo" setTo="Aquí iría el texto ese que todo el mundo > ama" > > <$button to="nabo" set="nabo!!comment" setTo="Texto from button" > > New field > </$button> > </$linkcatcher> > </$linkcatcher> > </$fieldmangler> > The problem here would appear to be that the inner linkcatcher isn't forwarding the navigate message to the outer linkcatcher. It looks like you're trying to set two fields on a tiddler in response to a click on a button. In 5.1.5 you'll be able to do this: <$button> <$action-setfield $tiddler="nabo" otherField="something" comment="Text from button"/> New field </$button> The result will set both "otherField" and "comment" of the specified tiddler. > I'm thinking why core widgets are so limited. Why is the link-catcher > limited to the text field? Why fieldmangler can not set a value to the > field it adds? > The core widgets evolved to support the user interface needs of TiddlyWiki itself, to bootstrap the project to get things working. There's been a gradual process of refinement since then to improve the generality and flexibility, not only of individual widgets but also supporting mechanisms like variables, messages, etc. The linkcatcher isn't limited to the text field. The "set" attribute can be a text reference such as "title!!field" or "title##index". The fieldmangler widget was created quite early on. Now I'd recommend using action-setfield instead. Best wishes Jeremy > -- > You received this message because you are subscribed to the Google Groups > "TiddlyWikiDev" 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/tiddlywikidev. > For more options, visit https://groups.google.com/d/optout. > -- Jeremy Ruston mailto:[email protected] -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" 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/tiddlywikidev. For more options, visit https://groups.google.com/d/optout.
