-
Notifications
You must be signed in to change notification settings - Fork 176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shariff not working w/o Backend? #65
Comments
What exactly are you using as data-services value? |
data-services="["facebook","twitter","googleplus","mail","info"]" |
|
This works for me: <div class="shariff" data-services="["facebook","twitter","googleplus","mail","info"]"></div> |
Still same. When I view the source-code, I can see the entities not printed as |
I assume the JS exception |
No, I was wrong. I inspected your html markup. Your shariff element doesn't contain the data-services value as described above: <h4>Weitersagen</h4>
<div class="shariff" data-services="[\/facebook,twitter,googleplus,mail,info]"></div> versus <h4>Weitersagen</h4>
<div class="shariff" data-services="["facebook","twitter","googleplus","mail","info"]"></div> |
If you cannot fix this behavior, you can initialize Shariff in your own JS code. var $shariff = $("<div>");
new Shariff($shariff, {services: ["twitter", "googleplus"]});
$shariff.appendTo("#share"); This code needs to run after your |
This worked. Thanks a lot Philipp. |
👍 |
Don't know which template engine you're using, but with TYPO3 Fluid you have to use this syntax:
(The example is using the viewhelper of the rx_shariff extension for TYPO3 CMS) |
Thx. Didn't know there is an extension for typo3. |
;-) Yep, comes with full shariff-backend integration. |
Hi,
I try to use Shariff w/o Backend which works with
<div class="shariff clear"></div>
.But as soon as I add the data-services tag to customize the buttons it disappears at the front-end. What might be the reason? Btw. I'm using shariff.min.js and shariff.complete.css.
The text was updated successfully, but these errors were encountered: