Seems like an obvious onebox but does not appear to be enabled at the moment.
Would generate the typical default trello view of a card inside a box representing the list the card is embedded in.
Seems like an obvious onebox but does not appear to be enabled at the moment.
Would generate the typical default trello view of a card inside a box representing the list the card is embedded in.
We are fine with a PR to add this if anyone wants to work on it.
Sorry I canât get it. Can you explain a bit your idea?
Also, keep in mind that in general, oneboxes are designed not to have dynamic content in them. Once they are âbakedâ they stay that way⌠So if you onebox a trello card, and then later change the title, that change wonât be reflected in the onebox.
Good point. Iâd wager that for a large majority of the times a person would include a link to a trello card, it would be unlikely that the text would materially change on the title of the card. It will in some cases. The list the card is associated with is likely to be much more volatile.
Alessio, are you familiar with Trello? If not, check it out http://trello.com
Yes, Iâm an huge fan of Trello but I canât get where do you want use
onebox on Discourse⌠can you make an example of this?
hi, so have you guys enabled oneboxing of trello cards in discourse?
i tried to add https://trello.com in whitelist for onebox settings
yet cant see the trello card being oneboxed.
can you tell, by when I can expect this feature, if not already present
no one on the core team is working on this, or is planning to work on this.
You have three options
Does Trello support OpenGraph or oEmbed yet? Can anyone with a Trello board check?
No, it doesnât.
I wanted to embed a trello board, and while they donât have any support for oembed, they do support iframes of content by changing a board url like
https://trello.com/b/nC8QJJoZ/trello-development-roadmap
into
https://trello.com/b/nC8QJJoZ.html
Iâve wrapped up that simple logic into a onebox and submitted a PR:
All merged in and working - thanks @eviltrout
This is looking pretty strange the whole scrolling thing is a bit weird.
Is there a way to get a less scrolly one going?
Agreed itâs not perfect - but with the way trello boards are used (lots of lists horizontally) I donât really see how it could be displayed without scrolling Even opening that board in a full screen browser requires a lot of scrolling.
Links to specific cards will onebox with minimal scrolling (depending on height of card):
I guess one option is to not bother show the content of the board itself, and just show some meta-data about it insteadâŚ
Yeah I agree that oneboxing the entire board isnât necessary. It ends up feeling like an iframe with trello.com inside it. Oneboxing individual cards looks great though!
Yeah this is really bad, on mobile there is no way to scroll it at all. We have been down this road with Google Docs and it is a trail of tears. Best to show a summary of the instance rather than heavy, ineffectual embedding.
Is it possible to make this work with private Trello boards (where obviously authentication or an API token would be required)?
Trello announced new support for embedding cards and boards, so maybe a better onebox is possible.
The embedding looks a lot nicer! But this bit worries me:
Now when the page loads, the script will find that card, and replace it with a fancy embedded version.
Sounds suspiciously like Twitterâs embedding, which we canât use on discourse because it modifies the height after the page loads⌠Maybe we can use the âprogrammatic card creationâ in a decorateCooked
method somehowâŚ
Edit:
Yep, their handily un-minified javascript has some iframe-resizing magic going on, so I donât think itâll work
var receiveMessage = function receiveMessage(event) {
if (!isAllowedOrigin(event.origin)) {
return;
}
if (event.data.command === 'resize' && event.data.secret) {
var card = _this.activeCards[event.data.secret];
if (!card || !card.el) {
return;
}
var newHeight = event.data.options.height;
if (newHeight !== undefined) {
card.el.height = newHeight;
}