Results 1 to 3 of 3

Thread: Contao and Sharethis widget

  1. #1
    User
    Join Date
    09-02-10.
    Location
    Banja Luka, Bosnia and Herzegovina
    Posts
    59

    Default Contao and Sharethis widget

    Hi,

    I have problem with integration of Sharethis widget inside the website (Contao 2.11.4/HTML5).

    Although, Sharethis code is just as simple as copy-paste, for some reason, it doesn't work properly with my Contao installation. To be more precise, counters are not working. Everything is put where it is supposed to be, but for some reason, counters are not working.

    This is code between <head> tags:

    Code:
    <script type="text/javascript">var switchTo5x=true;</script>
    <script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
    <script type="text/javascript">stLight.options({publisher: "xxxxxxx", doNotHash: false, doNotCopy: false, hashAddressBar: false});</script>
    which I added with insert-tag {{file:xxxx.php}}

    and this is code for <body> section:

    Code:
    <span class='st_facebook_hcount' displayText='Facebook'></span>
    <span class='st_twitter_hcount' displayText='Tweet'></span>
    <span class='st_googleplus_hcount' displayText='Google +'></span>
    <span class='st_email_hcount' displayText='Email'></span>
    <span class='st_sharethis_hcount' displayText='ShareThis'></span>
    So, as you can see, nothing special. But, for some reason, counters are not working. Support on Sharethis is not so helpful by now.

    Any advice?

    Thanks.

  2. #2
    User
    Join Date
    09-02-10.
    Location
    Banja Luka, Bosnia and Herzegovina
    Posts
    59

    Default Re: Contao and Sharethis widget

    I found it works on every page, but not on page where news items are?! Problem with url, or something else?

    Code:
    http://domain/index.php/news/items/article-url...

  3. #3
    User
    Join Date
    09-02-10.
    Location
    Banja Luka, Bosnia and Herzegovina
    Posts
    59

    Default Re: Contao and Sharethis widget

    Finally, (after several days of fierce battles)

    I have found the solution. For some reason, Contao "doesn't like" the letter "J", so it kick it every time when it is automatically inserted as a part of page alias. Therefore, every url link which contains that letter, has a problem with sharing even if it is manually added?!

    I have renamed the page, removing letter "j" from page-alias, and now everything works. At last!

    Could someone give me an explanation about that letter? I had noticed that unusual thing from the first days of Contao use, but I never found out why.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •