Making Pages OEmbed Friendly for the Page List Block

Permalink Browser Info Environment
Hello,

I am a bit confused on how to make my pages support the included Page List block. Right now when I add the block ti only displays a list of links but no description or image is pulled into it like in your examples.

Type: Discussion
Status: New
ideasponge
View Replies:
hereNT replied on at Permalink Reply
hereNT
Do you have a link?

The URLs need to not be linked, just plain. Often when pasting into tinymce, they have a <span> around them that breaks it, as well.

Also, are you using the regular page list, or the oembed page list? For the regular page list, there are custom templates that need to be included...
ideasponge replied on at Permalink Reply
ideasponge
I am so freaking confused on how to use this addon with embed.ly. What I need to do is have a page list or content block that pulls in content from different websites like the way that Facebook does when we share a link. Am I mistaken in thinking that is what this does?

I have tested the urls with the try out pages of embedly,
http://embed.ly/docs/explore/extract?url=http%3A%2F%2Fbehindthethri...

So I am not sure if I need to load these into embed.ly somehow or or just add them to my site. This is the page I am trying to add it too.
http://gamenationparks.com/2013/company/press/...
ideasponge replied on at Permalink Reply
ideasponge
Ok I found the whole span thing, fixed that, but now the page gives me errors

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /var/www/vhosts/demandgamenation.com/httpdocs/packages/oembed/libraries/embedly/embedly.php on line 98

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /var/www/vhosts/demandgamenation.com/httpdocs/packages/oembed/libraries/embedly/embedly.php on line 209

Parse error: syntax error, unexpected ':' in /var/www/vhosts/demandgamenation.com/httpdocs/packages/oembed/libraries/embedly/embedly.php on line 225
ideasponge replied on at Permalink Reply
ideasponge
If I remove my embed.ly key I don't get any error but it doesn't display anything.
hereNT replied on at Permalink Reply
hereNT
When using embed.ly, you should just have to put the URL in, not do anything like putting your URL into that site and then copying that url. It would just be the URL to the site that you want to embed.

But it does not do every single website. Facebook uses a protocol called OpenGraph that allows people to specify the title, text, thumbnail, etc.

Oembed is also used by facebook, for when it embeds media. Like when you post in a URL to a youtube video and it displays the video and information about it in the post stream.

The service being used from embed.ly is also the embed one, not the extract. I'm not 100% sure what extract even does.

The providers that it works for are listed here:
http://embed.ly/embed/features/providers...

I'm planning on trying to work in a fallback to use OpenGraph when there is no Oembed info, but had not found a good library or a simple way to integrate them when I was working on this add on.

As far as not displaying anything, that's kind of intentional. If there is no information returned, then it strips out the URL so you don't have a weird URL that can't be clicked in your content.

Does that help? I'm not sure from looking at the URL you were trying to embed if it would actually do what you are trying to do, since it's using Oembed instead of OpenGraph...
ideasponge replied on at Permalink Reply
ideasponge
Ok thanks for clearing that up. I guess I will just have to use a custom
page_list template to get the desired effect. That Dashboard Page Manager
Addon is awesome btw.
hereNT replied on at Permalink Reply
hereNT
I'm really, really happy with that one. Saves so much time on so many projects. And blogging on my own site is way, way better.

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.