Hey guys,
Can I ask about the Json data render again..
{module_json json="/module_json/data.json" template="/module_json/template.tpl"}
1. I asked about {module_webapp json="" option to render the web app data as json and then run a template reading that data for all items or would you be able to do something like - {{webapp1 | json}} rather then just {{webapp1.items[0] | json}}.
2. Could you create a liquid variable of such json and render a layout based on it?
{% assign new_variable = {{webapp1.items[0] | json}} %}
{module_json json="{{new_variable}}" template="/module_json/template.tpl"}
This leads to two questions about with a couple of example use cases...
How far does {{webapp1 | json}} go? Will it work on all modules? {{subscriptions | json}} ?
Could you render that and then run a functional liquid layout through these to run some display options. An example would be to render the name of all the securezones as a class in the body for example.
Further to that, the subscriptions module has a json output version..
If you do not have any of the above, would you then look to be doing it like this:
{% capture subs %}{module_subscriptions,true,true,true,true}{% endcapture %}
{module_json json="{{subs}}" template="/module_json/template.tpl"}
I guess you also have this possibility?
{module_json json="mypage.html?json" template="/module_json/template.tpl"}
And module dropped on the page?
You then also have the tags for the product JSON you may want to run liquid operators or template layouts on based on that data. Basically - where you have inline data or JSON and how you would be utilising that.
I could try over the weekend, but I wanted to ask and also show you guys some of my thinking on uses in case they do or do not or you would like people doing it in a certain way and some things I have found to work but these are not expected results etc.