Jump to main content Jump to doc navigation

SocialSuiteis a collection of useful tools for integrating various social media into your MODX website.

getTwitter Profile is a snippet, part of SocialSuite, which returns all sorts of information about a user on Twitter.

getTwitterProfile seems to be broken right now.. will update once resolved

Snippet Properties

Property Default Description
user The username, ID or shortname of a user or page to look up information for.
cache 1 To cache or not to cache, that's the question. (set to 0 to disable caching)
cacheExpires 3600 Time in seconds for the cache to be valid.
showAvailableData 0 Enable this (by setting it to 1) to see a dump of all data available for the selected user. Helpful in choosing your placeholders.
toPlaceholders 0 Enable this (by setting it to 1) to set all data to placeholders so you can use them in existing markup. This will DISABLE parsing the chunk specified with &tpl.
toPlaceholdersPrefix tw A prefix to apply to placeholders when using toPlaceholders.
tpl Name of a chunk to parse with the placeholders (when toPlaceholders=0).

Example Usage

[[!getTwitterProfile? &user=`modx` &showAvailableData=`1` &toPlaceholders=`1`]]

returns the following:

<currently erroring>

And allows you to do something like this:

Twitter Name: [[!+tw.name]]<br />
Likes: [[!+tw.likes]]

which outputs something like this:

Twitter Name: MODX
Likes: 2348

Support the team building MODX with a monthly donation.

The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.

Backers

  • modmore
  • STERC
  • Digital Penguin
  • Jens Wittmann – Gestaltung & Entwicklung
  • Fabian Christen
  • Dannevang Digital
  • Sepia River Studios
  • CrewMark
  • Chris Fickling
  • deJaya
  • Lefthandmedia
  • Murray Wood
  • eydolan
  • Following Sea
  • Anton Tarasov
  • Stéphane Jäggi
  • Raffy
  • Snow Creative
  • A. Moreno
  • Nick Clark
  • JT Skaggs
  • Helen
  • YJ
  • krisznet
  • Richard
  • Yanni

Budget

$301 per month—let's make that $500!

Learn more