Discussions

Ask a Question
ANSWERED

Widget reload after onSave()

Hey, I'm struggling to understand under which conditions the widget is been reload after clicking the "Save" button inside my widget's custom config view. I usually call "done(true)" as indication that the changes has been stored on my plugin server side but the widget is not been reload. Sometimes is reload after "Saving" in COYO layout editor. Most of the time I need to reload the page where the widget is embedded to see the updated widget. My expectation is that the widget should reload as soon as I call onSave()'s "done(true)". Is my expectation wrong or am I doing something wrong? BR, Lars.
ANSWERED

User authentication and authorization in the plugin

In our plugin we need to know, if a user is permitted to access the plugins content. I went through the plugin tutorial and got a pretty good impression how to write a plugin for COYO. However, what is still a bit unclear to me is how the authentication and authorization works in the plugin. I saw in the tutorial that you get passed a JWT token from COYO with the plugin adapter. For me it looks like the authentication and authorization in the plugin can be done with this token and the email address of the user, because the JWT is signed with the COYO certificate. Am I right in assuming that I can use the signed JWT for authentication?
ANSWERED

Please "allow-downloads"

Hey, I'm preparing a plugin which triggers a file download but it get's blocked because the widget iframe's sandbox attribute it missing "allow-downloads". Did you leave it out intentionally or is there a chance you're adding it in some of the next versions? I'm receiving this error: Download is disallowed. The frame initiating or instantiating the download is sandboxed, but the flag ‘allow-downloads’ is not set. See https://www.chromestatus.com/feature/5706745674465280 for more details. BR, Lars.
ANSWERED

REST API question: finding out if a user has subscribed to a page

Hello, I'm about to write a little Browser Add-On that hooks into the COYO web frontend with a button and allows to collect all the comments of a blog post. We need this because we offer raffles for all employees via a blog post and the employees need to make a comment below that post to be able to win. However, to be eligable the commenting users also need to follow our page. So I want to test for every commenter if he/she follows/has subscribed to our page. In the REST API documentation I found this endpoint: `/users/<user ID>/subscriptions?targetId=<ID of page>` However, this only seems to work for my own user ID. If I use a commenter's user ID I always get a "404" result. Now, because I'm writing a Browser Add-On here I'm "only" authenticated via my own user account agains the API (I'm getting the neccessary token for each REST API call from the `/web/authorization/token` endpoint; this works fine). Is there any way in this constellation to check if a user follows a page? Or is it by design that I can only check for my own subscriptions when using the REST API this way? Thanks, Stefan.
ANSWERED

Detect user language preference

Is there any way using to get user environment language to set widget language accordingly ? (based on the twitter plugin there should be but I wasn't able to find it in the guides)
ANSWERED

Change Widget content with REST API

Hi, I worked my way through the REST API, but I found no way to change the content inside a Widget, e.g. RichText Wiget or HTML Widget. Can you guys help me out, is this possible? Best Manuel

How to catch all links (that are colored with link color)?

Hello, in addition to the link color, we would like to underline all links that are only colored with the link color. Unfortunately, all `<a>` elements will be colored with the link color, including blog titles, wiki titles, etc. But these are overwritten by new classes. The problem now is that there is no class with which we can underline all links without selecting all `<a>` elements. To exclude the classes individually is inefficient and could become incosistent in the future (with new features from coyo). How to solve this? Just looking at the future (EU plans to make accessible websites mandatory) this is a highly important issue. Best regards, Moritz
ANSWERED

Coyo Internal Storage

Greeting, Does Coyo has a internal storage (or cloud), where we can store plugin data? If it exists, could you please sent me a link to documentation? Best Regards!
ANSWERED

Plug-in Sizing & White padding problem

We are currently working on developing a plugin for COYO. As it should be addable to the different panels (e.g. small side panel, middle panel etc.) of the platform, we experienced some problems with sizing and padding. To give you the explicit problems: - When visualizing the plug-in on the side panel of the platform, there is white padding around the iframe. We would like the iframe to have the full width of the panel, or at least reduce the padding to a minimum - Also, we would like to change the height of the side panel block, since currently the content of the plugin is limited by the panel size. Could someone help us with this? Thanks a lot.
ANSWERED

Double src id

Hi there, I just noticed something strange. I've tried to implement the new configuration view in our plugin which worked pretty good. But I couldn't get the plugin adapter to connect to COYO. I only get ERR6. I tried to debug and found out, that the src query parameter holds 2 UUID's joined with another dash like symbol '-' in between. So it looked something like this: src param: ef956c74-XXXX-XXXX-XXXX-a4ed02c3d60d-5561ead0-YYYY-YYYY-YYYY-017907e2855c id 1: ef956c74-XXXX-XXXX-XXXX-a4ed02c3d60d id 2: 5561ead0-YYYY-YYYY-YYYY-017907e2855c ID 1 and 2 are valid UUID's while the src param isn't. It would be nice to know, if this is the new default behavior for the source ID and which ID I would need to init the plugin adapter with. Best regards Chief