Hi Mark

On Nov 3, 7:06 pm, mleden <[email protected]> wrote:
> Hi Rasmus,
>
> I'm not quite understanding the reference to .att_file.  What is the
> value of this in the JSON file?

Here:

"att_file":["IDL2morning_run.png","IDL2dayrun.png"]

> If it is a "single value" (e.g., 'IDL2morning_run.png') then you
> should be able to do something like:
> <a ex:href-subcontent="http://server/path/{{.att_file}}";>
> Link Label
> </a>

It is a list, as you can see. Meanwhile I finally figured out to do
something like:

<span ex:content=".att_file">
    <a ex:content="value" ex:href-subcontent="http://server/
{{value}}"></a><br>
</span>

which renders something like

<a href="http://server/IDL2morning_run.png";>IDL2morning_run.png</
a><br>
<a href="http://server/IDL2dayrun.png";>IDL2dayrun.png</a><br>

substituting the contents of .att_file both in the href and in the
link label.

Now, the path to a file is not the same as a readable label (I was
simplifying the example a little). If I have two lists:

"att_file":["IDL2morning_run.png","IDL2dayrun.png"]
"att_path":["path1","path2"]

how would I write something that renders to

<a href="http://server/path1/IDL2morning_run.png";>IDL2morning_run.png</
a><br>
<a href="http://server/path2/IDL2dayrun.png";>IDL2dayrun.png</a><br>

?

It seems to me that once I've specified ex:content=".att_file" for the
span, I can't access .att_path.

I am sure my question is stupid. I just can't figure out, how to do
this. I have tried a number of different approaches by now, and I am a
bit stuck.

Cheers,
/Rasmus :-)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SIMILE Widgets" 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/simile-widgets?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to