Try ForEachTiddler (http://tiddlywiki.abego-software.de/
#ForEachTiddlerPlugin).

<<forEachTiddler where 'tiddler.tags.contains("Artist")' write
'"|"+tiddler.data("Name")+"|"+tiddler.data("Site")+"|\n"' begin '"|!
Artist|!URL|\n"'>>|

Result is a table:
Artist     URL
Andy     URL
John     URL

The URL contains a clickable link.

You might want to change the URL to actual site name or all links will
read as URL (though they will point to the correct URL). Or simply
generate the link directly, so that the Name data field will be the
text of the link (in which case you need to remove [[URL|  and ]] from
the Site data field.

So, if your source is:
<data>{
"Name":"Andy",
"Site": "http://www.licklibrary.com";
}</data>

The fET would be:

|<<forEachTiddler where 'tiddler.tags.contains("Artist")' write
'"[["+tiddler.data("Name")+"|"+tiddler.data("Site")+"]]\n"' begin '"|!
Artist|\n"'>>|

The table would them be simply:
Result is a table:
Artist
Andy
John

where Andy and John point directly to their site.

w

On Sep 20, 3:41 pm, Heller <[email protected]> wrote:
> Ok I have a tiddler named Andy
> The tiddler contains data (I am using the DataTiddlerPlugin)
>
> <data>{
> "Name":"Andy",
> "Site": "[[URL|http://www.licklibrary.com]]";
>
> }</data>
>
> The tiddler is tagged [[Artist]]
>
> Now I have some javascript (I am using the InlinejavascriptPlugin)
>
> NAME:
> <script>document.write(DataTiddler.getData(tiddler.title,"Name"));</
> script>
> URL:
> <script>wikify(DataTiddler.getData(tiddler.title,"Site"),place);</
> script>
>
> I would like to apply the script to every tiddler that has the tag
> [[Artist]]
>
> Are there any readily available plugins out there for doing this?
>
> I have looked at FormTiddlerPlugin and TaggedTemplateTweak but they do
> not do the above.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.

Reply via email to