<![CDATA[ Support/Comments for SIMPLX Widgeteer 0.5-Beta1 - My Forums]]> https://forums.modx.com/thread/?thread=39101 <![CDATA[Re: Support/Comments for SIMPLX Widgeteer 0.5-Beta1]]> https://forums.modx.com/thread/39101/support-comments-for-simplx-widgeteer-0-5-beta1?page=3#dis-post-546522
Here is what does NOT work

TEMPLATE
[[simplx_widgeteer?
  &dataSetUrl=`https://xxxxxxxx.de/visitor/events/?apikey=xxxxxxx`
  &useChunkMatching=`false`
  &staticChunkName=`persoo_eventlisting`        
]]


CHUNK
[[+imageURL:phpthumbof=`&w=500&h=500&zc=1`]
[[+endDate:strtotime:date=`%a %b %e, %Y`]]


JSON
"endDate":1483138800000,
"imageURL":"https://xxxxxxx.de/besucher/api/public-image/for-event/440cffe1-d68e-48e7-8a3d-c1238ff8e18f",
]]>
stefan79w Nov 19, 2016, 12:44 PM https://forums.modx.com/thread/39101/support-comments-for-simplx-widgeteer-0-5-beta1?page=3#dis-post-546522
<![CDATA[Re: Support/Comments for SIMPLX Widgeteer 0.5-Beta1]]> https://forums.modx.com/thread/39101/support-comments-for-simplx-widgeteer-0-5-beta1?page=3#dis-post-524838
I'm running 0.8.5-PL on Revo 2.3.3.

I've noticed the following problems.

A new simplx widgeteer category (possibly/hopefully with substructures)
I can find only simplx.widgeteer, no substructures.
Under Templates you will find one new template called Widgeteer examples which contains further info and samples.
OK
Under Chunks you find sample Chunks, all called widgeteer_*_* something. These are the templates and datasets.
OK
Under Snippets you find, of course, the simplx_widgeteer itself; you also find two preprocessor Snippets
I can find only simplx_widgeteer, no other snippets in this category.
In your assets/ folder you will have a new snippets folder in which you will find the xml2json folder/files. This makes it possible to get xml from a Web Service and easily convert it to json.
I can't find a simplx_widgeteer folder in assets/components but I can find xml2json.php in core/components/simplx/common/

I ran simplx_widgeteer against a xml feed.

[[!simplx_widgeteer? 
&dataSetUrl=`http://modxclub.com/rss-feed`
&useChunkMatching=`true`
&preprocessor=`xml2json`
&chunkPrefix=`modx.feed.tpl_`
&debugmode=`0`
]] 


No results were returned. I set debugmode to 1 and found this inside the manager log:


[2015-04-24 16:06:09] (DEBUG @ /index.php) Widgeteer: loadDataSource(), Fetching from URL "http://modxclub.com/rss-feed".
[2015-04-24 16:06:10] (DEBUG @ /index.php) Widgeteer: loadDataSource(), Got the following output "{omitted}".
[2015-04-24 16:06:13] (DEBUG @ /index.php) Widgeteer: preprocess(), Done processing. Dataset now contains "".
[2015-04-24 16:06:13] (ERROR @ /index.php) Widgeteer: loadDataSet(): Exception, Unable to decode the dataset.
[2015-04-24 16:06:13] (ERROR @ /index.php) Widgeteer: loadDataSource(): Exception, loadDataSet() returned "false". Aborting.
[2015-04-24 16:06:13] (DEBUG @ /index.php) Widgeteer: parse() Got no initial argument.
[2015-04-24 16:06:13] (ERROR @ /index.php) Widgeteer: parse(): Exception, Missing valid dataset. Aborting.

I have the idea, that preprocess() goes somehow mad here and simply returns "".

Is it possible, that some files are missing in the current package?

Cheers,

pepebe





]]>
pepebe Apr 24, 2015, 09:14 AM https://forums.modx.com/thread/39101/support-comments-for-simplx-widgeteer-0-5-beta1?page=3#dis-post-524838
<![CDATA[Re: Support/Comments for SIMPLX Widgeteer 0.5-Beta1]]> https://forums.modx.com/thread/39101/support-comments-for-simplx-widgeteer-0-5-beta1?page=2#dis-post-484692 I'll get you a beer now.

Cheers.
Fabian]]>
achterbahn Dec 04, 2013, 10:14 PM https://forums.modx.com/thread/39101/support-comments-for-simplx-widgeteer-0-5-beta1?page=2#dis-post-484692
<![CDATA[Re: Support/Comments for SIMPLX Widgeteer 0.5-Beta1]]> https://forums.modx.com/thread/39101/support-comments-for-simplx-widgeteer-0-5-beta1?page=2#dis-post-484643 http://forums.modx.com/thread/88035/tutorial-parsing-nested-json-strings-with-getimagelist#dis-post-484642]]> Bruno17 Dec 04, 2013, 04:48 PM https://forums.modx.com/thread/39101/support-comments-for-simplx-widgeteer-0-5-beta1?page=2#dis-post-484643 <![CDATA[Re: Support/Comments for SIMPLX Widgeteer 0.5-Beta1]]> https://forums.modx.com/thread/39101/support-comments-for-simplx-widgeteer-0-5-beta1?page=2#dis-post-484638
https://github.com/Bruno17/MIGX/commit/7fed923f741a56b7cdf0166a4dec6224c3517021#diff-02f4fc20c3fb8a39c0a78fda75f1d1e2L199

I will post my setup on the MIGX-board]]>
Bruno17 Dec 04, 2013, 04:34 PM https://forums.modx.com/thread/39101/support-comments-for-simplx-widgeteer-0-5-beta1?page=2#dis-post-484638
<![CDATA[Re: Support/Comments for SIMPLX Widgeteer 0.5-Beta1]]> https://forums.modx.com/thread/39101/support-comments-for-simplx-widgeteer-0-5-beta1?page=2#dis-post-484626
Sounds great! Do you integrate the solution into the MIGX release or could you provide the lines you changed?

Thanks in advance.
Fabian]]>
achterbahn Dec 04, 2013, 03:30 PM https://forums.modx.com/thread/39101/support-comments-for-simplx-widgeteer-0-5-beta1?page=2#dis-post-484626
<![CDATA[Re: Support/Comments for SIMPLX Widgeteer 0.5-Beta1]]> https://forums.modx.com/thread/39101/support-comments-for-simplx-widgeteer-0-5-beta1?page=2#dis-post-484608 Needed to change one line within the getImageList - snippet.

The Result:
http://www.revo222.webcmsolutions.de/75/parse-recursive-json.html]]>
Bruno17 Dec 04, 2013, 02:10 PM https://forums.modx.com/thread/39101/support-comments-for-simplx-widgeteer-0-5-beta1?page=2#dis-post-484608
<![CDATA[Re: Support/Comments for SIMPLX Widgeteer 0.5-Beta1]]> https://forums.modx.com/thread/39101/support-comments-for-simplx-widgeteer-0-5-beta1?page=2#dis-post-484602 Bruno17 Dec 04, 2013, 01:24 PM https://forums.modx.com/thread/39101/support-comments-for-simplx-widgeteer-0-5-beta1?page=2#dis-post-484602 <![CDATA[Re: Support/Comments for SIMPLX Widgeteer 0.5-Beta1]]> https://forums.modx.com/thread/39101/support-comments-for-simplx-widgeteer-0-5-beta1?page=2#dis-post-484434 You're right, Jorgen,

Although I found a newer version of it (https://gist.github.com/larscwallin/1372956) it still is not doing what I expected it to do.
Unfortunately I'd like to have an Extra that could easily parse JSON.

Writing my own Snippet doing this would be a solution, but I'd prefer to ask, if someone could do a rewrite of it. And I am willing to pay for it (and would make it available at modx.com/extras, for sure).

So then: someone out there in the communitiy who has time and the skills to write an Extra that is able to:
a) parse JSON recursively
b) can be templated by chunks
c) well documented and has a debug switch

Please send me an PN with a quote or a suggestion how we achieve this goal.

Best wishes
Fabian]]>
achterbahn Dec 02, 2013, 08:44 PM https://forums.modx.com/thread/39101/support-comments-for-simplx-widgeteer-0-5-beta1?page=2#dis-post-484434
<![CDATA[Re: Support/Comments for SIMPLX Widgeteer 0.5-Beta1]]> https://forums.modx.com/thread/39101/support-comments-for-simplx-widgeteer-0-5-beta1?page=2#dis-post-484403
I never figured this one out, so i end up writing my own snippet for my particular use.
You might want to take a look at the modx.fromJson function: http://rtfm.modx.com/xpdo/2.x/class-reference/xpdoobject/field-accessors/fromjson
Or use the PHP function json_decode if available on your server.
]]>
jorgenh Dec 02, 2013, 03:24 PM https://forums.modx.com/thread/39101/support-comments-for-simplx-widgeteer-0-5-beta1?page=2#dis-post-484403