AddThis to work at site/domain level rather than per page?

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
2/19/2013 3:31:40 AM
Gravatar
Total Posts 537
feet planted firmly on the ground

AddThis to work at site/domain level rather than per page?

I've put AddThis in my layout.master on www.gisquirrel.com but the sharing is working per page. i.e. the count shows how many people have shared that specific page rather than the site as a whole. I'd like it to work at site level. I think this is possible because it appears to work like this on www.mojoportal.com - the sharing count stays the same on each page.

Any tips gratefully received.

PS also a CKEditor glitch ? When I added hyperlinks above and clicked the "OK" button in the popup, I got the "do you really want to leave this page" prompt.

 

2/19/2013 10:00:41 AM
Gravatar
Total Posts 18439

Re: AddThis to work at site/domain level rather than per page?

Actually on this site that is not the AddThis control in the header, I'm using the older separate controls and for the FacebookLikeButton I do have the UrlToLike hard coded as the url for our facebook fan page. The other buttons are using the current page url as is the AddThisButton in the blog using the post url.

But the same principle applies, you can hard code a value for the UrlToShare property on the AddThisWidget.

Hope that helps,

Joe

2/19/2013 11:15:38 AM
Gravatar
Total Posts 537
feet planted firmly on the ground

Re: AddThis to work at site/domain level rather than per page?

Excellent, thanks Joe that has worked nicely.

Perhaps a wee note could be added to the documentation on  customizing the AddThis widget

that you can configure it like this...

<portal:AddThisWidget ID="adthis" runat="server" UrlToShare="www.mysite.com" />

 

PS in case it sent unnoticed before, here's noting again the incorrect CKEditor prompt after creating a hyperlink.

2/19/2013 11:54:17 AM
Gravatar
Total Posts 18439

Re: AddThis to work at site/domain level rather than per page?

I'm not seeing any problem with CKeditor when I add links but I'm using Chrome web browser, maybe it is browser specific, but if it is I don't think I could fix it. We are using the latest version of the onChangePlugin. Probably if the problem is browser specific something is trying to navigate away from the page when creating a link and the prompt is preventing that from happening which is a good thing. In other words it may look like a bug in the prompt but it may actually be a bug where it would navigate away from the page and lose what you were posting, the prompt is a symptom of the problem not the problem or the cause of the problem. It might be a bug in the link dialog that only affects a specific browser, if so hopefully it will be fixed in the next update to CKeditor, in the mean time at least the prompt prevents navigating away without completing a post which would be a worse problem.

2/19/2013 11:59:54 AM
Gravatar
Total Posts 537
feet planted firmly on the ground

Re: AddThis to work at site/domain level rather than per page?

Now testing in Chrome and it works fine. I'll edit in FF in a minute. Now editing in Firefox and also no prompt.

The prompt I see in IE9 is spurious - when I confirm I want to "leave the page" the link is saved correctly. 

2/19/2013 12:21:22 PM
Gravatar
Total Posts 18439

Re: AddThis to work at site/domain level rather than per page?

googling "window.onbeforeunload ie9" I find lots of info that this is a known problem. The possible solutions mentioned however seem both ugly and likely to break other things. Problem is IE fires that event even when links with href="#" are clicked which is not consistent with other browsers and lots of javascript links are like that including the ok button in the CKeditor dialog. The suggested solution of looping through all links and cancelling the click event would most likely break the dialog and other javascript links. At least it seems to be fixed in IE 10.

2/19/2013 12:23:26 PM
Gravatar
Total Posts 18439

Re: AddThis to work at site/domain level rather than per page?

please in the future, one question per thread.

This one got off track with 2 unrelated topics.

2/19/2013 12:45:53 PM
Gravatar
Total Posts 537
feet planted firmly on the ground

Re: AddThis to work at site/domain level rather than per page?

Agreed, and apologies for the leading the thread astray Joe! - I though I'd better note the issue immediately, as I noticed it while creating the original post.

You must sign in to post in the forums. This thread is closed to new posts.