CoreCommunity ExtensionsIncubatorDistributionsTYPO3 4.5 ProjectsTYPO3 4.6 ProjectsTYPO3 4.7 ProjectsTYPO3 6.0 ProjectsTYPO3 6.1 ProjectsTYPO3 6.2 Projects (+)

PMK News Twitter

After installing the plugin, you need to insert configuration code like this on either Page- or User-TSConfig:

For Page-TSConfig, the code must be inserted like this:

tx_pmkttnewstwitter {

    # If set and twitteraccesstoken or twitteraccesstokensecret is empty,
    # then the Twitter authentication routine will be called inside Typo3 backend
    # on the first created (test) news record
    #doInitialTwitterOAuthOnTestNews = 1

    # Username of Twitter account
    twitterUser = TWITTER_USERNAME

    # Password of Twitter account
    twitterPassword = TWITTER_PASSWORD

    # twitter app consumer key and consumer secret
    twitterconsumerkey = CONSUMER_KEY
    twitterconsumersecret = CONSUMER_SECRET

    # twitter access token and token secret (for Twitter OAuth)
    twitteraccesstoken =
    twitteraccesstokensecret =

    # Comma separated list of fields to post on Twitter
    postField = title

    # Insert link back to singleView page on site
    linkBack = 1

    # If set, then the keywords field will be used as Hash tags when posting
    useKeywordsAsHashTags = 1

    # If PagePath extension is installed, and this is set,
    # then PagePath WILL NOT be used for generating the links back to the site
    noPagePath = 0

    # If set, "Don't post on Twitter"-flag of a news record is activated permanently
    # to avoid inadvertent retweeting (e.g. on changing of news record)
    setToNoTweet = 1

    # bitly short url service
    # bitlyLogin =
    # bitlyApiKey =

    # If set, debugging by silentDebug() is used
    #twitterdebug = 1
}

For User-TSConfig, the config option must be prepended with "page.", like this:

page.tx_pmkttnewstwitter {

    # Username of Twitter account
    twitterUser = TWITTER_USERNAME

    # Password of Twitter account
    twitterPassword = TWITTER_PASSWORD

    # [...]
}

Remember to change the username / password to that of your Twitter account.

The plugin first checks if a Category is attached to the news record. If it is, the plugin looks for a singlePid and uses that. If not it reads the TypoScript configuration of tt_news (plugin.tt_news.singlePid) to determine what page is used for singleView.

So it WILL NOT WORK if you only set the singleView mode in the tt_news plugin Flexform, as it's not possible to read the FlexForm settings form a BE extension.

(Frequently Asked Questions (FAQ)