Re: [ADDON] Titled / Descriptive Links
Reply #5 –
Looking at places where hooks can be added. I think the edit in Post.controller.php could be done with a hook. I think it would be integrate_post_after. Maybe the JS edit as well.
Re: [ADDON] Titled / Descriptive Links
Reply #9 –
Interesting ... could add that for sure! ... maybe an option for compact or extended descriptions.
What data did you pull from the page scrape, or is it some other data that you are getting. As you know the default is just the page title.
Re: [ADDON] Titled / Descriptive Links
Reply #10 –
I took inspiration from G+ and first analysed the og:* meta tag title, description, url and image. Then as fallback the title tag and the first image in the page. This last one in particular is very prone to errors and may require some "informed decision" (in the form of avoid images smaller than, avoid images with some particular name, etc.).
I was also thinking about a max-image-size (with either cropping or just scaling) and maybe a tag to better format the whole stuff (at the moment I'm encapsulating everything into a table and... well, the result is not really up to the expectations. lol
Re: [ADDON] Titled / Descriptive Links
Reply #11 –
Suppose one could also look for twitter:* but Google docs don't seem to mention those. They do talk about Schema.org data as well, but that looks like a lot to try and parse, but we would only look for it in the body tags I'd guess.
Seems just doing og: and then title as the fallback is a good choice. I don't think you would want all of that info for a normal post where you add a link. Maybe the option would be in the "additional" area where its something like use enhanced link snippet if available?
Re: [ADDON] Titled / Descriptive Links
Reply #13 –
Is there a way to run a script on the database to change all previously saved links in posts like the addon does? I installed it, but I wish all links till now could be changed.