[FLOW3-general] json, how do I do?

mario chiari m at mariochiari.net
Mon Jul 16 22:24:57 CEST 2012


Hello

still trying to understand FLOW3.
I am looking at the blog example and 
would like to be able to play around a little with it, in particolar to
connect it to a JS library. 

So, let us consider JQuery and
http://www.jeasyui.com/documentation/tree.php
as to show posts and comments as a tree. 
(subnodes of a node would be comments of a post)
I wish to feed data as a .json file.

Let me say that I am able to define a json.html template and a
jsonAction within the post controller. 

A first question is about '{' and '}'. Brackets can be used both as
fluid delimeters and as json's structural character. How do you sort out
things? \note

A second question is about the following.  Jseasui requires something
like  <ul id="tt" class="easyui-tree" url="tree_data.json">.

For a given .json file
<ul id="tt" class="easyui-tree" url="{f:uri.resource(path: 'my_path/json.json')}">  
works fine. But how do I link to the output of my jsonAction from within
my main FE template, say index.html?

I see f:format.json too, but I am not sure how to use it.
 

If I am on a complete wrong track, pleae let me know.

If you happen to have already developed something with Jquery and
Jseasui, I would enjoy very much to look at it and maybe to hack it :-)


Thanks, Cheers

mario




\note. Once Lienhart Woitok explained to me a way out to the '{}' issue
in order to develop a extbase extension.

The trick was to define

--- class Tx_MyExt_View_TexView extending Tx_Fluid_View_StandaloneView, and 
--- protected function buildParserConfiguration() {
    	$parserConfiguration = parent::buildParserConfiguration();
    	$parserConfiguration->setShortHandOpenSymbol('\\\\fluid{');
    	return $parserConfiguration;
}

Is there something similar for flow3? I failed to get a working example.





More information about the FLOW3-general mailing list