Twitter meta tags in course summary

Re: Twitter meta tags in course summary

by Carolyn McIntyre -
Number of replies: 4

That's so kind of you Matteo - thank you.

Yes, the image is the one added in the section 0 of each course.

Carolyn

In reply to Carolyn McIntyre

Re: Twitter meta tags in course summary

by Matteo Scaramuccia -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers

HI Carolyn,
find a first attempt in https://github.com/scara/moodle-local_twittercard: it requires Moodle 3.3+.

Please, try it in a test environment.

HTH,
Matteo

In reply to Matteo Scaramuccia

Re: Twitter meta tags in course summary

by Carolyn McIntyre -

Hi Matteo.

I apologise for my delayed reply, but thanks so much for this. I'll give it a try and let you know.

Thanks again.

Carolyn

In reply to Matteo Scaramuccia

Re: Twitter meta tags in course summary

by Carolyn McIntyre -

Hi Matteo,

I've just uploaded the Twitter Card plugin on my test site and it works perfectly.

I'm thrilled and can't thank you enough for creating the plugin.

Hopefully others will find it equally helpful.

Carolyn

In reply to Carolyn McIntyre

Re: Twitter meta tags in course summary

by Matteo Scaramuccia -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers

Hi Carolyn,
TNX for your kind words, appreciated Yes wink.

In the next week-end I'll update the code and publish it into the Moodle Directory: in the mean time, please follow the repo in GitHub.
Next planned changes:

  • added multi-language support
  • improved shortening title and description, when required
  • code refactoring to reduce code (cyclomatic) complexity

Future versions:

  • add automated (behat) tests to check for the presence of the meta tags (no changes in the features but tests)
  • review the dev specs due to the new change, doubling (280) permitted chars: not sure if this will have impacts in the lengths declared for the summary card too

HTH,
Matteo