We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Bones with Wygwam?

Development and Programming

User l1NJX8FJ's avatar
User l1NJX8FJ
11 posts
3 months ago
User l1NJX8FJ's avatar User l1NJX8FJ

Has anybody been using the Bones API addon lately? We’ve been using our own custom JSON template implementation to allow Algolia/search engines to scrape an “endpoint.” We figured we might as well use Bones as that’s exactly what it does; output JSON with an API key and some query params. But unfortunately, I’m not getting it to present valid JSON. It appears to be breaking at the Wygwam field (“content”). To be honest, I’m not looking to invest a lot of time into fixing this as we already fixed the scraping feature with our own templates but it would be nice to have ALL the fields including some of the custom fields as described in the bones docs.

TLDR; Has anybody had good results with Bones + Wygwam? Wygwam appears to be causing “white spaces” that breaks the json

       
User iC5U2Ymh's avatar
User iC5U2Ymh
14 posts
3 months ago
User iC5U2Ymh's avatar User iC5U2Ymh

How can I help!

       
User iC5U2Ymh's avatar
User iC5U2Ymh
14 posts
3 months ago
User iC5U2Ymh's avatar User iC5U2Ymh

What are you seeing?

       
User iC5U2Ymh's avatar
User iC5U2Ymh
14 posts
3 months ago
User iC5U2Ymh's avatar User iC5U2Ymh

Bones supports a number of custom add-ons, but not all of them. A lot of the RTEs are the trouble makers. If you have some specifics, we may be able to add some support

       
User l1NJX8FJ's avatar
User l1NJX8FJ
11 posts
3 months ago
User l1NJX8FJ's avatar User l1NJX8FJ

Hi Doug, that’s quick. Just added a TLDR, wygwam is presenting white spaces, enters. This breaks the json

       
User l1NJX8FJ's avatar
User l1NJX8FJ
11 posts
3 months ago
User l1NJX8FJ's avatar User l1NJX8FJ
********* redacted json.

:null,"photo<em>filename":null,"photo</em>width":null,"photo<em>height":null,"site</em>id":1,"summary":"

The ECB will most likely cut 25bp, which is almost fully priced in by markets. W

<hr >

Redacted the json a bit (sorry, don’t wanne “spill” data) as you can see, the summary field has some white spaces, enters maybe?

       
User iC5U2Ymh's avatar
User iC5U2Ymh
14 posts
3 months ago
User iC5U2Ymh's avatar User iC5U2Ymh

Ok, can you do me a favor? Add an issue here. I’m in and out this week on a family emergency this week, but I can have a team member take a look and get a version out ASAP around this.

For the JSON and the channel info, go ahead and shoot that to [email protected], I’ll get Ashlie on our team a heads up it’s coming while I’m out. It’s a private channel, so you can send private info to that email. We’ll take care of this for you.

       
User iC5U2Ymh's avatar
User iC5U2Ymh
14 posts
3 months ago
User iC5U2Ymh's avatar User iC5U2Ymh

We’ve dealt with this on other RTEs too, so shouldn’t be terribly difficult. Thanks for calling this out!

       
User l1NJX8FJ's avatar
User l1NJX8FJ
11 posts
3 months ago
User l1NJX8FJ's avatar User l1NJX8FJ

Thanks for the quick reply, will do!

       
User l1NJX8FJ's avatar
User l1NJX8FJ
11 posts
3 months ago
User l1NJX8FJ's avatar User l1NJX8FJ

Pretty sure it’s the   within the wygwam field. Trying to reproduce it locally now

       
User l1NJX8FJ's avatar
User l1NJX8FJ
11 posts
3 months ago
User l1NJX8FJ's avatar User l1NJX8FJ

Ticket posted, example json sent.

       
User iC5U2Ymh's avatar
User iC5U2Ymh
14 posts
3 months ago
User iC5U2Ymh's avatar User iC5U2Ymh

Fixed this in 1.6.6! https://expressionengine.com/add-ons/bones

       
User l1NJX8FJ's avatar
User l1NJX8FJ
11 posts
3 months ago
User l1NJX8FJ's avatar User l1NJX8FJ

❤️ Will test it out today, thanks for the quick turnaround @dougblackjr and the team!

       
dougblackjr's avatar
dougblackjr
35 posts
5 hours ago
dougblackjr's avatar dougblackjr

To clarify, this is fully addressed with Bones now:

https://expressionengine.com/add-ons/bones http://docs.triplenerdscore.net/project/bones http://docs.triplenerdscore.net/project/bones

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.